Skip to content

Commit

Permalink
merge build
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmud6390 committed Sep 1, 2020
1 parent 9b2254f commit c8bc0d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
15 changes: 9 additions & 6 deletions opensrp-brac-hnpp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ android {
applicationId "org.smartregister.brac.hnpp"
minSdkVersion 18
targetSdkVersion 28
versionCode 27
versionName "1.3.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true

Expand All @@ -62,7 +60,6 @@ android {
//keystore pass mhealth2019
minifyEnabled false
zipAlignEnabled true
buildConfigField "boolean", 'IS_TRAINING', 'false'
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '250'
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '100'
Expand All @@ -80,7 +77,7 @@ android {
}

debug {
buildConfigField "boolean", 'IS_TRAINING', 'false'

buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '250'
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '15'
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2'
Expand All @@ -92,8 +89,6 @@ android {
buildConfigField "int", "PULL_SSLOCATION", '180'
buildConfigField "int", "REPORT_INDICATOR_GENERATION_MINUTES", '15'
buildConfigField "int", "HOME_VISIT_MINUTES", '10'
buildConfigField "String", 'opensrp_url_training', '"http://hnpptest.mpower-social.com:8080/opensrp/"'
buildConfigField "String", 'opensrp_url_live', '"http://hnpptest.mpower-social.com:8080/opensrp/"'
testCoverageEnabled true
}
}
Expand All @@ -112,14 +107,22 @@ android {
productFlavors {

training{
versionCode 27
versionName "3.0.1"
dimension = 'baseDimension'
applicationIdSuffix ".training"
buildConfigField "boolean", 'IS_TRAINING', 'true'
buildConfigField "String", 'opensrp_url_training', '"http://mhealthtest.brac.net:8080/opensrp/"'
buildConfigField "String", 'opensrp_url_live', '"http://mhealthtest.brac.net:8080/opensrp/"'
}
normal{
versionCode 27
versionName "1.3.1"
dimension = 'baseDimension'
buildConfigField "boolean", 'IS_TRAINING', 'false'
buildConfigField "String", 'opensrp_url_training', '"http://hnpptest.mpower-social.com:8080/opensrp/"'
buildConfigField "String", 'opensrp_url_live', '"http://hnpptest.mpower-social.com:8080/opensrp/"'

}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ protected Object doInBackground(Object[] objects) {
}else{
moduleId = HnppConstants.MODULE_ID_TRAINING;
}
Log.v("MODULE_ID","module id:"+moduleId);

HouseholdIdRepository householdIdRepo = HnppApplication.getHNPPInstance().getHouseholdIdRepository();
village_id = String.valueOf(ssLocations.village.id);
Expand Down

0 comments on commit c8bc0d2

Please sign in to comment.