|
buildscript { |
|
repositories { |
|
mavenCentral() |
|
} |
|
} |
|
|
|
apply plugin: 'com.android.application' |
|
|
|
android { |
|
compileSdkVersion 25 |
|
buildToolsVersion "24.0.2" |
|
defaultConfig { |
|
applicationId "com.myapp" |
|
minSdkVersion 19 |
|
targetSdkVersion 25 |
|
versionCode 1 |
|
versionName "0.1" |
|
jackOptions { |
|
enabled true |
|
} |
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
|
} |
|
compileOptions { |
|
sourceCompatibility JavaVersion.VERSION_1_8 |
|
targetCompatibility JavaVersion.VERSION_1_8 |
|
} |
|
buildTypes { |
|
release { |
|
minifyEnabled false |
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
|
} |
|
} |
|
productFlavors { |
|
dev { |
|
// dev utilizes minSDKVersion = 21 to allow the Android gradle plugin |
|
// to pre-dex each module and produce an APK that can be tested on |
|
// Android Lollipop without time consuming dex merging processes. |
|
minSdkVersion 21 |
|
applicationIdSuffix ".dev" |
|
} |
|
staging { |
|
// staging utilizes minSDKVersion = 21 to allow the Android gradle plugin |
|
// to pre-dex each module and produce an APK that can be tested on |
|
// Android Lollipop without time consuming dex merging processes. |
|
minSdkVersion 21 |
|
applicationIdSuffix ".staging" |
|
} |
|
production { |
|
minSdkVersion 15 |
|
} |
|
} |
|
|
|
packagingOptions { |
|
exclude 'LICENSE.txt' |
|
} |
|
} |
|
|
|
dependencies { |
|
compile fileTree(include: ['*.jar'], dir: 'libs') |
|
|
|
// Testing framework |
|
testCompile 'junit:junit:4.12' |
|
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { |
|
exclude group: 'com.android.support', module: 'support-annotations' |
|
}) |
|
testCompile 'org.mockito:mockito-core:2.2.8' |
|
androidTestCompile 'org.mockito:mockito-core:2.2.8' |
|
|
|
// Dagger dependency injection library |
|
provided 'javax.annotation:jsr250-api:1.0' |
|
compile 'com.google.dagger:dagger:2.7' |
|
annotationProcessor "com.google.dagger:dagger-compiler:2.7" |
|
|
|
// Support libraries |
|
compile 'com.android.support:appcompat-v7:25.0.0' |
|
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha4' |
|
|
|
// Retrofit and OKHTTP |
|
compile 'com.squareup.retrofit2:retrofit:2.1.0' |
|
compile 'com.squareup.retrofit2:converter-gson:2.1.0' |
|
compile 'com.squareup.retrofit2:converter-scalars:2.1.0' |
|
compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0' |
|
compile 'com.squareup.okhttp3:okhttp:3.3.0' |
|
compile 'com.squareup.okhttp3:logging-interceptor:3.3.0' |
|
|
|
// RxJava |
|
compile 'io.reactivex:rxjava:1.0' |
|
|
|
// Jodatime |
|
compile 'joda-time:joda-time:2.9.3' |
|
|
|
// Lombok |
|
provided 'org.projectlombok:lombok:1.16.10' |
|
} |
Same for
@AllArgsConstructor