Skip to content

Commit 63d4a2f

Browse files
authored
Finish release/v2.0.1
Finish release/v2.0.1
2 parents 18e2969 + 0def3ce commit 63d4a2f

3 files changed

Lines changed: 18 additions & 12 deletions

File tree

General/src/main/java/org/openimis/general/General.java

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public void ChangeLanguage(Context ctx,String Language){
6262
res.updateConfiguration(config, dm);
6363
}
6464

65-
public String getVersion(Context ctx, String PackageName){
65+
// ToDo: remove this method if published to Google Play
66+
/*public String getVersion(Context ctx, String PackageName){
6667
String VersionName = "";
6768
6869
PackageManager manager = ctx.getPackageManager();
@@ -77,9 +78,10 @@ public String getVersion(Context ctx, String PackageName){
7778
}
7879
return VersionName;
7980
80-
}
81+
}*/
8182

82-
public String getFromRestApi(final String functionName) {
83+
// ToDo: remove this method if published to Google Play
84+
/*public String getFromRestApi(final String functionName) {
8385
String uri = getDomain()+ "api/";
8486
8587
final String[] content = {null};
@@ -102,14 +104,16 @@ public String getFromRestApi(final String functionName) {
102104
}
103105
}
104106
return content[0];
105-
}
107+
}*/
106108

109+
// ToDo: depricate/remove this method if published to Google Play
107110
public boolean isNewVersionAvailable(String Field,Context ctx, String PackageName){
108-
String result = getFromRestApi("system/apkversion/" + Field);
109-
if(result.contains(",")) {
110-
result = result.replaceAll("(\\d+)\\,(\\d+)", "$1.$2");
111-
}
112-
return result == ""?false:Float.parseFloat(this.getVersion(ctx, PackageName).toString()) < Float.parseFloat(result);
111+
//String result = getFromRestApi("system/apkversion/" + Field);
112+
//if(result.contains(",")) {
113+
// result = result.replaceAll("(\\d+)\\,(\\d+)", "$1.$2");
114+
//}
115+
// return result == ""?false:Float.parseFloat(this.getVersion(ctx, PackageName)) < Float.parseFloat(result);
116+
return false;
113117
}
114118
}
115119

claimManagement/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ android {
55
defaultConfig {
66
applicationId "org.openimis.imisclaims"
77
minSdkVersion 21
8-
targetSdkVersion 28
9-
versionCode 2
10-
versionName "2.0"
8+
targetSdkVersion 27
9+
versionCode 3
10+
versionName "2.0.1"
1111
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12+
useLibrary 'org.apache.http.legacy'
1213
}
1314
buildTypes {
1415
release {

claimManagement/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
android:supportsRtl="true"
2222
android:theme="@style/AppTheme"
2323
tools:replace="android:icon">
24+
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
2425
<activity
2526
android:name="org.openimis.imisclaims.MainActivity"
2627
android:label="@string/app_name"

0 commit comments

Comments
 (0)