diff --git a/.gitignore b/.gitignore
index 39fb081a..b7707c2d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,9 @@
/build
/captures
.externalNativeBuild
+.idea
+/*.iml
+
+/app/app-release.apk
+app/app.iml
+app/manifest-merger-release-report.txt
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
deleted file mode 100644
index 7ac24c77..00000000
--- a/.idea/gradle.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index ba7052b8..00000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index 1026e73f..00000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
deleted file mode 100644
index 7f68460d..00000000
--- a/.idea/runConfigurations.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 2940d667..4b6deb9d 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -3,12 +3,13 @@ apply plugin: 'com.neenbedankt.android-apt'
android {
- compileSdkVersion 25
- buildToolsVersion "25.0.2"
+ compileSdkVersion rootProject.ext.compileSdkVersion
+ buildToolsVersion rootProject.ext.buildToolsVersion
+
defaultConfig {
applicationId "org.mifos.mobilewallet"
- minSdkVersion 15
- targetSdkVersion 25
+ minSdkVersion rootProject.ext.minSdkVersion
+ targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -27,16 +28,29 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
- compile 'com.android.support:appcompat-v7:25.3.1'
- compile 'com.jakewharton:butterknife:8.6.0'
- apt 'com.jakewharton:butterknife-compiler:8.6.0'
- annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
+ compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
+ compile "com.android.support:design:$rootProject.supportLibraryVersion"
+ compile "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
+ compile "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion"
+
+ compile "com.jakewharton:butterknife:$rootProject.butterKnifeVersion"
+ apt "com.jakewharton:butterknife-compiler:$rootProject.butterKnifeVersion"
+ annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.butterKnifeVersion"
compile 'com.google.dagger:dagger:2.11'
annotationProcessor 'com.google.dagger:dagger-compiler:2.11'
apt 'com.google.dagger:dagger-compiler:2.11'
+ compile ("com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion") {
+ // exclude Retrofit’s OkHttp peer-dependency module and define your own module import
+ exclude module: 'okhttp'
+ }
+ compile "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
+ compile "com.squareup.retrofit2:adapter-rxjava:$rootProject.retrofitVersion"
+ compile "com.squareup.okhttp3:okhttp:$rootProject.okHttp3Version"
+ compile "com.squareup.okhttp3:logging-interceptor:$rootProject.okHttp3Version"
+
testCompile 'junit:junit:4.12'
}
diff --git a/build.gradle b/build.gradle
index 9ce45e89..b14285f1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -26,3 +26,18 @@ allprojects {
task clean(type: Delete) {
delete rootProject.buildDir
}
+
+ext {
+ // Sdk and tools
+ minSdkVersion = 15
+ targetSdkVersion = 25
+ compileSdkVersion = 25
+ buildToolsVersion = '25.0.2'
+
+ // App dependencies
+ supportLibraryVersion = '25.3.1'
+ daggerVersion = '2.11'
+ retrofitVersion = '2.2.0'
+ okHttp3Version = '3.6.0'
+ butterKnifeVersion = '8.6.0'
+}