Skip to content

Commit

Permalink
WD|Add v1 sync function #4
Browse files Browse the repository at this point in the history
  • Loading branch information
baksosapi committed Nov 22, 2017
1 parent 91a3826 commit f8bb966
Show file tree
Hide file tree
Showing 847 changed files with 76,485 additions and 48,468 deletions.
1 change: 0 additions & 1 deletion opensrp-bidan/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/build
/reports
198 changes: 67 additions & 131 deletions opensrp-bidan/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ buildscript {
classpath 'org.apache.commons:commons-lang3:3.3.2'
classpath 'org.robolectric:robolectric-gradle-plugin:1.1.0'
classpath 'io.fabric.tools:gradle:1.+'
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.4.0'
}
}

Expand All @@ -21,60 +20,88 @@ allprojects {

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'

repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://jitpack.io' }
}

dependencies {

compile fileTree(include: ['commons-validator-1.6.jar'], dir: 'libs')
compile('org.smartregister:opensrp-client-core:1.1.1-SNAPSHOT@aar') {
transitive = true
exclude group: 'com.github.bmelnychuk', module: 'atv'
}

// FORM
compile('org.smartregister:opensrp-client-enketo:1.0.0-SNAPSHOT@aar') {
transitive = true
exclude group: 'com.github.bmelnychuk', module: 'atv'
exclude group: 'com.google.guava', module: 'guava'
}
// compile('org.smartregister:opensrp-client-native-form:1.0.3-SNAPSHOT@aar') {
// transitive = true
// exclude group: 'com.android.support', module: 'recyclerview-v7'
// }


// compile('org.smartregister:opensrp-client-immunization:1.1.4-SNAPSHOT@aar') {
// transitive = true
// }
// compile('org.smartregister:opensrp-client-growth-monitoring:1.0.3-SNAPSHOT@aar') {
// transitive = true
// }


compile fileTree(include: ['*.jar'], dir: 'libs')
// compile project(':opensrp-app')
compile('com.crashlytics.sdk.android:crashlytics:2.5.3@aar') {
transitive = true;
}
compile files('libs/sd-sdk-facial-processing.jar')
compile 'com.loopj.android:android-async-http:1.4.9'
compile 'com.squareup.okhttp3:okhttp:3.8.1'
// compile 'com.fasterxml.jackson.core:2.7.5'

compile 'com.google.code.gson:gson:2.8.0'
compile 'com.jjoe64:graphview:4.0.1'
compile files('libs/FlurryAnalytics-6.0.0.jar')

// compile project(':sidlibrary')
// compile project(':opensrp-devices')
// compile 'com.android.support.constraint:constraint-layout:1.0.2'
// compile 'com.google.android.gms:play-services:8.4.0'

}

android {
compileSdkVersion 22
buildToolsVersion "26.0.1"
compileSdkVersion androidCompileSdkVersion
buildToolsVersion androidBuildToolsVersion

defaultConfig {
applicationId "org.smartregister.bidan"
applicationId "org.smartregister.bidan_cloudant"
minSdkVersion 18
targetSdkVersion 21
versionCode 10
versionName "1.3.1"
multiDexEnabled true
}

dexOptions {
incremental true
javaMaxHeapSize "4g"
}
versionCode 6
versionName "6.03"

lintOptions {
lintConfig file("lint.xml")
}
multiDexEnabled true

}
buildTypes {
release {
minifyEnabled false
zipAlignEnabled true
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'
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '1'
buildConfigField "int", "DATABASE_VERSION", '9'
buildConfigField "long", "MAX_SERVER_TIME_DIFFERENCE", "1800000l"
buildConfigField "boolean", "TIME_CHECK", "true"
}
buildConfigField "int", "DATABASE_VERSION", '1'

}
debug {
resValue "string", 'opensrp_url', '"http://192.168.1.253:8080/opensrp"'
resValue "string", 'debug_mode', '"ON"'
buildConfigField "int", "OPENMRS_UNIQUE_ID_INITIAL_BATCH_SIZE", '250'
buildConfigField "int", "OPENMRS_UNIQUE_ID_BATCH_SIZE", '100'
buildConfigField "int", "OPENMRS_UNIQUE_ID_SOURCE", '2'
buildConfigField "int", "DATABASE_VERSION", '9'
buildConfigField "long", "MAX_SERVER_TIME_DIFFERENCE", "1800000l"
buildConfigField "boolean", "TIME_CHECK", "false"
testCoverageEnabled true
resValue "string", 'opensrp_url', '"http://118.91.130.18:9090/opensrp"'
resValue "string", 'uname', '"demo_test"'
resValue "string", 'pwd', '"Demo@123"'
buildConfigField "int", "DATABASE_VERSION", '1'

}
}
packagingOptions {
Expand All @@ -88,105 +115,14 @@ android {
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
exclude 'LICENSE.txt'
}


testOptions {
unitTests.returnDefaultValues = true
}
}

dependencies {
compile fileTree(include: ['commons-validator-1.6.jar'], dir: 'libs')
compile('org.smartregister:opensrp-client-native-form:1.0.2-SNAPSHOT@aar') {
transitive = true
exclude group: 'com.android.support', module: 'recyclerview-v7'
}
compile('org.smartregister:opensrp-client-core:1.1.1-SNAPSHOT@aar') {
transitive = true
exclude group: 'com.github.bmelnychuk', module: 'atv'
}

compile('org.smartregister:opensrp-client-immunization:1.1.4-SNAPSHOT@aar') {
transitive = true
}
compile('org.smartregister:opensrp-client-growth-monitoring:1.0.3-SNAPSHOT@aar') {
transitive = true
}

compile('com.android.support:design:22.2.1') {
exclude group: 'com.android.support', module: 'recyclerview-v7'

}
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.android.support:cardview-v7:22.2.1'
compile 'com.android.support:leanback-v17:22.2.1'
compile('com.crashlytics.sdk.android:crashlytics:2.6.5@aar') {
transitive = true;
}
compile 'com.jjoe64:graphview:4.2.1'
compile 'com.android.support:support-v4:22.2.1'
compile 'id.zelory:compressor:1.0.4'
compile 'com.twotoasters.SectionCursorAdapter:library:1.0.+'
compile 'com.github.ybq:Android-SpinKit:1.1.0'
compile 'junit:junit:4.12'

testCompile('org.robolectric:robolectric:3.4.2') {

exclude group: 'com.google.guava', module: 'guava'
exclude group: 'org.apache.maven', module: 'maven-model'
exclude group: 'org.apache.maven', module: 'maven-ant-tasks'
exclude group: 'com.android.support'
}

testCompile("org.robolectric:shadows-multidex:3.4-rc2") {
exclude group: 'com.google.guava', module: 'guava'
}

androidTestCompile('com.android.support.test.espresso:espresso-core:2.+') {

exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'junit', module: 'junit'
}
// PowerMock
def powerMockVersion = '1.7.1'
testCompile "org.powermock:powermock-module-junit4:$powerMockVersion"
testCompile "org.powermock:powermock-module-junit4-rule:$powerMockVersion"
testCompile "org.powermock:powermock-api-mockito2:$powerMockVersion"
testCompile("org.powermock:powermock-classloading-xstream:$powerMockVersion") {

exclude group: 'com.thoughtworks.xstream', module: 'xstream'
lintOptions {
checkReleaseBuilds false
disable 'MissingTranslation'
checkReleaseBuilds false
abortOnError false
}

testCompile 'org.apache.maven:maven-ant-tasks:2.1.3'
}

//Testing and coveralls

coveralls {
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoRootReport/merged.xml"
}

task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebug']) {

reports {
xml.enabled = true
html.enabled = true
}

getReports().getXml().setDestination(file("${buildDir}/reports/jacoco/jacocoRootReport/merged.xml"))
getReports().getHtml().setDestination(file("${buildDir}/reports/jacoco/jacocoRootReport/html"))

def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*', '**/*$ViewBinder*.*']
def debugTree = fileTree(dir: "$project.buildDir/intermediates/classes/debug", excludes: fileFilter)
def mainSrc = "$project.projectDir/src/main/java"

sourceDirectories = files([mainSrc])
classDirectories = files([debugTree])
executionData = fileTree(dir: project.buildDir, includes: [
'jacoco/testDebug.exec', 'outputs/code-coverage/connected/*coverage.ec'
])
}

//End testing and coveralls
5 changes: 0 additions & 5 deletions opensrp-bidan/fabric.properties.template

This file was deleted.

Binary file added opensrp-bidan/libs/FlurryAnalytics-6.0.0.jar
Binary file not shown.
Binary file added opensrp-bidan/libs/d2xx.jar
Binary file not shown.
Binary file added opensrp-bidan/libs/iHealthLibrary_2.3.2.jar
Binary file not shown.
Binary file added opensrp-bidan/libs/pl2303driver.jar
Binary file not shown.
Binary file added opensrp-bidan/libs/sd-sdk-facial-processing.jar
Binary file not shown.
Binary file added opensrp-bidan/libs/smartlinklib3.6.4_product.jar
Binary file not shown.
4 changes: 0 additions & 4 deletions opensrp-bidan/lint.xml

This file was deleted.

30 changes: 0 additions & 30 deletions opensrp-bidan/pom.xml

This file was deleted.

2 changes: 1 addition & 1 deletion opensrp-bidan/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in D:\adt-bundle-windows-x86_64-20130514\sdk/tools/proguard/proguard-android.txt
# in /home/soran/tools/android-sdk-linux/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.smartregister.path;
package org.smartregister.bidan_cloudant;

import android.app.Application;
import android.test.ApplicationTestCase;
Expand Down
Loading

0 comments on commit f8bb966

Please sign in to comment.