Skip to content

Commit

Permalink
Merge pull request #1204 from EyeSeeTea/merge_v1.0_mm_to_master
Browse files Browse the repository at this point in the history
Merge v1.0 mm to master
  • Loading branch information
ifoche authored May 12, 2017
2 parents b664d6c + b7fcbf1 commit 372bb44
Show file tree
Hide file tree
Showing 918 changed files with 41,351 additions and 18,387 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
path = sdk
url = https://github.com/EyeSeeTea/dhis2-android-sdk.git
branch = 2.22_EyeSeeTea
[submodule "EyeSeeTea-sdk"]
path = EyeSeeTea-sdk
url = https://github.com/EyeSeeTea/sdk.git
1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

22 changes: 0 additions & 22 deletions .idea/compiler.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/copyright/profiles_settings.xml

This file was deleted.

18 changes: 0 additions & 18 deletions .idea/gradle.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

1 change: 1 addition & 0 deletions EyeSeeTea-sdk
Submodule EyeSeeTea-sdk added at 1afb12
173 changes: 124 additions & 49 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,42 +1,45 @@
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://maven.fabric.io/public' }
mavenCentral()
mavenLocal()
}

dependencies {
classpath 'io.fabric.tools:gradle:1.+'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'io.fabric'

def cfg = rootProject.ext.configuration
def libs = rootProject.ext.libraries

repositories {
maven { url 'https://maven.fabric.io/public' }
}
//apply plugin: 'com.neenbedankt.android-apt'

android {

signingConfigs {
config {}
}

compileSdkVersion 23
buildToolsVersion "23.0.3"
compileSdkVersion cfg.compileSdkVersion
buildToolsVersion cfg.buildToolsVersion

defaultConfig {
applicationId 'org.eyeseetea.surveillance_kh'
minSdkVersion 15
targetSdkVersion 23
versionCode 11
applicationId 'org.eyeseetea.surveillance'
minSdkVersion cfg.minSdkVersion
targetSdkVersion cfg.targetSdkVersion
versionCode cfg.versionCode
versionName cfg.versionName
multiDexEnabled true
dexOptions {
javaMaxHeapSize "6g"
}

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
signingConfig signingConfigs.config
}
Expand All @@ -45,78 +48,150 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug{
debug {
debuggable true
}
}
//TODO This config is related to a known issue: http://stackoverflow.com/questions/20827885/android-studio-0-4-duplicate-files-copied-in-apk-meta-inf-license-txt
packagingOptions {
// gradle requires to exclude these files both
// with .txt extension and without.
exclude 'META-INF/NOTICE.txt'
exclude 'LICENSE.txt'
//FIXME: This has been automatically suggested by AndroidStudio while sdk integration
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'

// without .txt
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
productFlavors {
cambodia {
applicationId 'org.eyeseetea.surveillance_kh'
versionName "1.2.7"
versionName "1.2.11"
buildConfigField "boolean", "reviewScreen", "false"
buildConfigField "boolean", "activeSwipeNavigator", "true"
buildConfigField "boolean", "activeButtonNavigator", "false"
buildConfigField "boolean", "loginDataDownloadPeriod", "true"
buildConfigField "boolean", "translations", "false"
buildConfigField "boolean", "developerOptions", "false"
buildConfigField "boolean", "multiuser", "false"
buildConfigField "boolean", "activeStockFragment", "false"
buildConfigField "boolean", "patientTestedByDefault", "false"
buildConfigField "String", "AuthoritiesProvider", "\"org.eyeseetea.malariacare.data.database.utils.KHDBProvider\""
}
laos {
applicationId 'org.eyeseetea.surveillance_la'
versionName "1.0.5"
buildConfigField "boolean","reviewScreen", "true"
versionName "1.0.9"
buildConfigField "boolean", "reviewScreen", "true"
buildConfigField "boolean", "activeSwipeNavigator", "true"
buildConfigField "boolean", "activeButtonNavigator", "false"
buildConfigField "boolean", "loginDataDownloadPeriod", "false"
buildConfigField "boolean", "translations", "true"
buildConfigField "boolean", "developerOptions", "false"
buildConfigField "boolean", "multiuser", "false"
buildConfigField "boolean", "activeStockFragment", "false"
buildConfigField "boolean", "patientTestedByDefault", "false"
buildConfigField "String", "AuthoritiesProvider", "\"org.eyeseetea.malariacare.data.database.utils.LADBProvider\""
}
myanmar {
applicationId 'org.eyeseetea.surveillance_mm'
versionName "1.0.0"
buildConfigField "boolean","reviewScreen", "true"
versionName "1.0.3"
buildConfigField "boolean", "reviewScreen", "true"
buildConfigField "boolean", "activeSwipeNavigator", "false"
buildConfigField "boolean", "activeButtonNavigator", "true"
buildConfigField "boolean", "loginDataDownloadPeriod", "true"
buildConfigField "boolean", "translations", "true"
buildConfigField "boolean", "developerOptions", "true"
buildConfigField "boolean", "multiuser", "true"
buildConfigField "boolean", "activeStockFragment", "true"
buildConfigField "boolean", "patientTestedByDefault", "true"
buildConfigField "String", "AuthoritiesProvider", "\"org.eyeseetea.malariacare.data.database.utils.SCMMDBProvider\""
}
}

lintOptions {
disable 'RtlSymmetry', 'RtlHardcoded'
}
checkReleaseBuilds false
}
apt {
arguments {
targetModuleName 'EyeSeeTea'
}
}
buildToolsVersion '24.0.3'
}

configurations {
all*.exclude group: 'com.google.guava', module: 'guava-jdk5'
}

dependencies {
// SDK submodules
compile project(":core-rules")
compile project(":ui-bindings")
compile project(":EyeSeeTea-sdk")

// App dependencies
compile fileTree(include: ['*.jar'], dir: 'libs')

apply plugin: 'android-apt'
apply plugin: 'com.github.dcendents.android-maven'

//Android support
compile "com.android.support:support-v4:${libs.supportVersion}"
compile "com.android.support:appcompat-v7:${libs.supportVersion}"
compile "com.android.support:support-annotations:${libs.supportVersion}"
compile "com.android.support:multidex:${libs.multidex}"
compile 'com.android.support:recyclerview-v7:25.1.0'
//3rd party dependencies
compile "com.opencsv:opencsv:${libs.opencsvVersion}"
compile "com.google.android.gms:play-services:${libs.gmsPlayVersion}"
compile "com.google.guava:guava:${libs.guavaVersion}"
compile "com.squareup.okhttp:okhttp:$rootProject.okhttpVersion"
compile "com.googlecode.libphonenumber:libphonenumber:${libs.libphonenumberVersion}"

compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-annotations:23.4.0'

// App dependencies
compile 'com.opencsv:opencsv:3.3'
compile 'com.google.android.gms:play-services:9.4.0'
compile 'com.google.guava:guava:18.0'
compile 'com.squareup.okhttp:okhttp:2.2.0'
compile 'com.googlecode.libphonenumber:libphonenumber:7.0.9'
compile 'com.android.support:multidex:1.0.1'
// apt 'com.raizlabs.android:DBFlow-Compiler:2.2.1'
// compile 'com.raizlabs.android:DBFlow-Core:2.2.1'
// compile 'com.raizlabs.android:DBFlow:2.2.1'
apt project(':DBFlowORM:DBFlow-Compiler')
compile project(':DBFlowORM:DBFlow-Core')
compile project(':DBFlowORM:DBFlow')
compile project(':sdk:app')

compile('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
transitive = true;
//Drive dependencies
compile "com.google.android.gms:play-services-identity:${libs.gmsPlayVersion}"
compile("com.google.api-client:google-api-client-android:${libs.googleApiClientAndroidVersion}") {
exclude group: 'org.apache.httpcomponents'
exclude group: 'com.google.code.findbugs'
}
compile("com.google.apis:google-api-services-drive:${libs.googleApiServicesDriveVersion}") {
exclude group: 'org.apache.httpcomponents'
}

compile "com.google.code.findbugs:jsr305:${libs.jsr305Version}"

// Unit testing dependencies
testCompile 'junit:junit:4.12'
testCompile "junit:junit:${libs.jUnitVersion}"

// Instrumented tests dependencies
androidTestCompile 'com.android.support.test:runner:0.4.1'
androidTestCompile 'com.android.support.test:rules:0.4.1'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2.1'
// Android Testing Support Library's runner and rules

androidTestCompile "com.android.support.test:runner:${libs.runnerVersion}"
androidTestCompile "com.android.support.test:rules:${libs.runnerVersion}"

// Espresso UI Testing dependencies.
androidTestCompile "com.android.support.test.espresso:espresso-core:${libs.espressoVersion}"
androidTestCompile "com.android.support.test.espresso:espresso-intents:${libs.espressoVersion}"
// Espresso-idling-resource for synchronization with background jobs
androidTestCompile "com.android.support.test.espresso:espresso-idling-resource:${libs.espressoVersion}"
// Espresso-web for WebView support
androidTestCompile "com.android.support.test.espresso:espresso-web:${libs.espressoVersion}"

//Tracking crashes
compile("com.crashlytics.sdk.android:crashlytics:${libs.crashlyticsVersion}") {
transitive = true;
}

// JavaPoet (sucessor to JavaWriter)
compile "com.squareup:javapoet:${libs.javapoetVersion}"

//DBFlow
apt "com.github.Raizlabs.DBFlow:dbflow-processor:${libs.dbFlowVersion}"
compile "com.github.Raizlabs.DBFlow:dbflow:${libs.dbFlowVersion}"
compile "com.github.Raizlabs.DBFlow:dbflow-core:${libs.dbFlowVersion}"
compile "com.github.Raizlabs.DBFlow:dbflow-sqlcipher:${libs.dbFlowVersion}"
}
1 change: 1 addition & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
-keep class * extends com.raizlabs.android.dbflow.config.DatabaseHolder { *; }
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
//
//import org.eyeseetea.malariacare.CreateSurveyActivity;
//import org.eyeseetea.malariacare.R;
//import org.eyeseetea.malariacare.database.utils.Session;
//import org.eyeseetea.malariacare.data.database.utils.Session;
//import org.junit.Before;
//import org.junit.BeforeClass;
//import org.junit.Rule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
// Log.i(TAG,"---BEFORE---");
// super.setup();
// Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
// idlingResource = new IntentServiceIdlingResource(instrumentation.getTargetContext(), SurveyService.class);
// idlingResource = new IntentServiceIdlingResource(instrumentation.getTargetContext(),
// SurveyService.class);
// Espresso.registerIdlingResources(idlingResource);
// }
//
Expand Down Expand Up @@ -138,7 +139,8 @@
// withChild(allOf(withId(R.id.survey_type), withText("- " + program)))))))
// .perform(swipeRight());
//
// //Espresso is NOT waiting for the SwipeListener to finish, thus some forced waiting is required
// //Espresso is NOT waiting for the SwipeListener to finish, thus some forced waiting is
// required
// try {
// Thread.sleep(1000);
// onView(withText(android.R.string.ok)).perform(click());
Expand All @@ -164,15 +166,17 @@
// onView(allOf(withId(R.id.assessment_row),
// withChild(allOf(
// withChild(allOf(withId(R.id.facility), withText(orgUnit))),
// withChild(allOf(withId(R.id.survey_type), withText("- " + program))))))).check(doesNotExist());
// withChild(allOf(withId(R.id.survey_type), withText("- " + program))))))
// ).check(doesNotExist());
// }
//
//
// private void unregisterSurveyReceiver(){
// try{
// DashboardActivity dashboardActivity =(DashboardActivity)getActivityInstance();
// DashboardUnsentFragment dashboardUnsentFragment =(DashboardUnsentFragment) dashboardActivity.getFragmentManager().findFragmentById(R.id.dashboard_details_fragment);
// dashboardUnsentFragment.unregisterSurveysReceiver();
// DashboardUnsentFragment dashboardUnsentFragment =(DashboardUnsentFragment)
// dashboardActivity.getFragmentManager().findFragmentById(R.id.dashboard_details_fragment);
// dashboardUnsentFragment.unregisterFragmentReceiver();
// }catch(Exception ex){
// Log.e(TAG,"unregisterSurveyReceiver(): "+ex.getMessage());
// }
Expand Down
Loading

0 comments on commit 372bb44

Please sign in to comment.