Skip to content

Commit a4170d1

Browse files
authored
Merge branch 'master' into togo_release
2 parents fc28f83 + 5df9da3 commit a4170d1

File tree

7 files changed

+20
-7
lines changed

7 files changed

+20
-7
lines changed

opensrp-chw-core/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/build
2+
/release

opensrp-chw-core/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ android {
5858
}
5959
}
6060

61+
lintOptions {
62+
checkReleaseBuilds false
63+
abortOnError false
64+
}
6165
}
6266

6367
dependencies {

opensrp-chw-hf/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/build
2+
/release

opensrp-chw-hf/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ android {
9494
}
9595
}
9696

97+
lintOptions {
98+
checkReleaseBuilds false
99+
abortOnError false
100+
}
101+
97102
}
98103

99104
dependencies {

opensrp-chw-hf/release/output.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.2.3","enabled":true,"outputFile":"opensrp-chw-hf-release.apk","fullName":"release","baseName":"release"},"path":"opensrp-chw-hf-release.apk","properties":{}}]

opensrp-chw-hf/src/main/java/org/smartregister/chw/hf/HealthFacilityApplication.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ public class HealthFacilityApplication extends CoreChwApplication implements Cor
6565
@Override
6666
public void onCreate() {
6767
super.onCreate();
68+
69+
mInstance = this;
70+
context = Context.getInstance();
71+
context.updateApplicationContext(getApplicationContext());
72+
context.updateCommonFtsObject(createCommonFtsObject());
73+
6874
//init Job Manager
6975
SyncStatusBroadcastReceiver.init(this);
7076
JobManager.create(this).addJobCreator(new HfJobCreator());
@@ -80,15 +86,9 @@ public void onCreate() {
8086
if (BuildConfig.DEBUG) {
8187
Timber.plant(new Timber.DebugTree());
8288
} else {
83-
Timber.plant(new CrashlyticsTree(HealthFacilityApplication.getInstance().getContext()
84-
.allSharedPreferences().fetchRegisteredANM()));
89+
Timber.plant(new CrashlyticsTree(this.context.allSharedPreferences().fetchRegisteredANM()));
8590
}
8691

87-
mInstance = this;
88-
context = Context.getInstance();
89-
context.updateApplicationContext(getApplicationContext());
90-
context.updateCommonFtsObject(createCommonFtsObject());
91-
9292
Fabric.with(this, new Crashlytics.Builder().core(new CrashlyticsCore.Builder()
9393
.disabled(BuildConfig.DEBUG).build()).build());
9494

opensrp-chw/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/build
2+
/release

0 commit comments

Comments
 (0)