Skip to content

Commit

Permalink
Merge pull request #51 from Balcan/master
Browse files Browse the repository at this point in the history
Release 1.0.0
  • Loading branch information
Balcan authored Sep 7, 2018
2 parents 1113278 + feb8612 commit 2f5c5d1
Show file tree
Hide file tree
Showing 816 changed files with 55,716 additions and 80 deletions.
60 changes: 7 additions & 53 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,55 +1,9 @@
# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# Intellij
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/dictionaries
.idea/libraries

# Keystore files
*.jks

# External native build folder generated in Android Studio 2.2 and later
.gradle
/local.properties
/.idea
.DS_Store
/build
/captures
.externalNativeBuild

# Google Services (e.g. APIs or Firebase)
google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json
/app/dhis_keystore.jks
25 changes: 0 additions & 25 deletions LICENSE

This file was deleted.

9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# dhis2-android-capture-app
DHIS 2 data and tracker capture app for Android
# README #

This README would normally document whatever steps are necessary to get your application up and running.

### What is this repository for? ###

DHIS2 Android application.
2 changes: 2 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/build
/dhis_keystore.jks
261 changes: 261 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'io.fabric'
//apply from: rootProject.file("plugins/android-paperwork.gradle")

def libraries = rootProject.ext.libraries

repositories {
// required by crashlytics
maven {
url("https://maven.fabric.io/public")
}

// used by sdk
maven {
url("https://oss.sonatype.org/content/repositories/snapshots")
}
mavenCentral()
}

android {

lintOptions {
checkReleaseBuilds false
abortOnError false
}

compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.dhis2"
minSdkVersion 19
targetSdkVersion 27
versionCode 30
versionName "1.0.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true

buildConfigField "String", "SDK_VERSION", "\"" + libraries.dhis2sdk + "\""
}

configurations.all*.exclude module: 'jsr305'


packagingOptions {
// excluding duplicate license files
// from jackson modules
exclude "META-INF/LICENSE"

// excluding duplicate rxjava properties file
// see https://github.com/ReactiveX/RxJava/issues/4445#issuecomment-243591879
exclude 'META-INF/rxjava.properties'
}

signingConfigs {
release {
storeFile file('dhis_keystore.jks')
storePassword KEYSTORE_PASSWORD
keyAlias KEY_ALIAS
keyPassword KEYSTORE_PASSWORD
}
}

buildTypes {
debug {
// custom application suffix which allows to
// install debug and release builds at the same time
applicationIdSuffix = ".debug"

// jacoco test coverage reports both for
// androidTest and test source sets
testCoverageEnabled = false

// Disable fabric build ID generation for debug builds
// ext.enableCrashlytics = false

// Using dataentry.jks to sign debug build type.
signingConfig = signingConfigs.debug
}
alpha {
// custom application suffix which allows to
// install debug and release builds at the same time
applicationIdSuffix = ".alpha"

// Disable fabric build ID generation for debug builds
ext.enableCrashlytics = false

// Using dataentry.jks to sign debug build type.
signingConfig = signingConfigs.debug
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
ext.enableCrashlytics = true
signingConfig signingConfigs.release
}
}

compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
}

dataBinding {
enabled = true
}

packagingOptions {
exclude 'LICENSE.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/ASL2.0'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/rxjava.properties'
}

dexOptions {
javaMaxHeapSize "4g"
}

configurations.all {
resolutionStrategy.force 'junit:junit:4.12'
}
}

dependencies {


implementation "hu.supercluster:paperwork:${libraries.paperwork}"

//Support libraries
/* implementation "com.android.support:appcompat-v7:${libraries.support}"
implementation "com.android.support:support-annotations:${libraries.support}"
implementation "com.android.support:cardview-v7:${libraries.support}"
implementation "com.android.support:design:${libraries.support}"*/
implementation "com.android.support:appcompat-v7:27.1.1"
implementation "com.android.support:support-annotations:27.1.1"
implementation "com.android.support:cardview-v7:27.1.1"
implementation "com.android.support:design:27.1.1"
//implementation "com.android.support:multidex:${libraries.multidex}"
implementation "com.android.support:multidex:1.0.3"
implementation 'com.android.support.constraint:constraint-layout:1.1.2'

// Core module of the DHIS 2 Android SDK
implementation("org.hisp.dhis:android-core:${libraries.dhis2sdk}") {
exclude group: "org.hisp.dhis", module: "core-rules"
}
// RuleEngine module of the DHIS 2 Android SDK
/*implementation("org.hisp.dhis:core-rules:${libraries.dhis2sdk}") {
exclude group: "com.google.code.findbugs", module: "jsr305"
}*/
implementation("org.hisp.dhis:android-rules:${libraries.dhis2sdk}") {
exclude group: "com.google.code.findbugs", module: "jsr305"
// exclude group: "org.hisp.dhis", module: "core-rules"
}

// implementation"org.hisp.dhis.rules:rule-engine:2.30-SNAPSHOT"

//TreeView
implementation 'com.github.bmelnychuk:atv:1.2.9'
implementation 'com.android.support:support-v4:27.1.1'

// ReactiveX
implementation "io.reactivex.rxjava2:rxandroid:${libraries.rxandroid}"
implementation "io.reactivex.rxjava2:rxjava:${libraries.rxjava}"
implementation "com.github.akarnokd:rxjava2-interop:${libraries.rxjavainteroperop}"

// Google dagger
implementation 'com.google.dagger:dagger:2.14.1'
annotationProcessor 'com.google.dagger:dagger-compiler:2.14.1'

// Google's auto-value. Annotations are used only during compilation time, as well as
// annotation processor which hoops up into compilation process
compileOnly "com.google.auto.value:auto-value:${libraries.autovalue}"
annotationProcessor "com.google.auto.value:auto-value:${libraries.autovalue}"

// Extension which generates mappers for work with cursors
annotationProcessor "com.gabrielittner.auto.value:auto-value-cursor:${libraries.autovaluecursor}"
annotationProcessor "com.ryanharter.auto.value:auto-value-parcel:${libraries.autovalueparcel}"

//square
implementation "com.squareup.sqlbrite3:sqlbrite:${libraries.sqlbrite}"
// implementation "com.squareup.sqlbrite2:sqlbrite-interop:${libraries.sqlbrite}"
implementation "com.github.lykmapipo:sqlbrite-migrations:v1.0.1"

// Jake Wharton libraries
//timber
implementation "com.jakewharton.timber:timber:${libraries.timber}"
//rxbinding
implementation "com.jakewharton.rxbinding2:rxbinding:${libraries.rxbindings}"
implementation "com.jakewharton.rxbinding2:rxbinding-appcompat-v7:${libraries.rxbindings}"

//FAB
implementation 'com.github.dekoservidoni:omfm:1.0.3'
implementation 'com.google.android:flexbox:0.3.1'

//TABLEVIEW
implementation 'com.evrencoskun.library:tableview:0.8.8'

//PIN LOCK
implementation 'com.andrognito.pinlockview:pinlockview:2.1.0'

//VISION (QR SCANNER)
implementation("com.google.android.gms:play-services-vision:${libraries.gmsVersion}") {
force = true
}

//LOCATION15.0.1
implementation("com.google.android.gms:play-services-location:15.0.1")
implementation("com.google.android.gms:play-services-maps:15.0.1")

//GSON
implementation 'com.google.code.gson:gson:2.8.2'

//FIREBASE
implementation 'com.firebase:firebase-jobdispatcher:0.8.5'

//CRASHLYTICS
implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
transitive = true
}

//Test

implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.google.code.findbugs'

})

testImplementation 'junit:junit:4.12'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation 'com.facebook.stetho:stetho:1.5.0'
implementation 'com.facebook.stetho:stetho-okhttp3:1.5.0'

//RXLint
implementation 'nl.littlerobots.rxlint:rxlint:1.6'

//JODA-TIME
implementation 'joda-time:joda-time:2.9.9'

// Zxing library
implementation 'com.google.zxing:core:3.3.0'
implementation 'me.dm7.barcodescanner:zxing:1.9.8'
implementation 'com.journeyapps:zxing-android-embedded:3.2.0@aar'

//FancyShowCase
implementation 'com.github.faruktoptas:FancyShowCaseView:1.0.0'

//Lottie animations
implementation 'com.airbnb.android:lottie:2.5.4'

//Glide load images
implementation 'com.github.bumptech.glide:glide:4.7.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
}

apply plugin: 'kotlin-android-extensions'
3 changes: 3 additions & 0 deletions app/fabric.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Contains API Secret used to validate your application. Commit to internal source control; avoid making secret public.
#Mon Jun 11 18:43:35 CEST 2018
apiSecret=989160e9e12be69d75ecbbf110f1b768e5909ce910ae926a63d046d47133b9ab
25 changes: 25 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Users\ppajuelo\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Loading

0 comments on commit 2f5c5d1

Please sign in to comment.