Created
July 25, 2017 11:33
-
-
Save romtsn/22987e079dbdaab55e9ef05dab5ac34b to your computer and use it in GitHub Desktop.
Stream + Retrolambda sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
apply plugin: 'me.tatarka.retrolambda' | |
apply plugin: 'com.neenbedankt.android-apt' | |
android { | |
compileSdkVersion 26 | |
buildToolsVersion "25.0.3" | |
defaultConfig { | |
applicationId "rom4ek.com.sparktestapp" | |
minSdkVersion 14 | |
targetSdkVersion 26 | |
versionCode 1 | |
versionName "1.0" | |
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
} | |
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 | |
} | |
productFlavors { | |
production { | |
versionCode 1 | |
versionName "v1.0.0" | |
buildConfigField 'String', 'API_ENDPOINT', '"https://w.qiwi.com/"' | |
} | |
development { | |
versionCode 1 | |
versionName "v0.1" | |
buildConfigField 'String', 'API_ENDPOINT', '"https://w.qiwi.com/"' | |
} | |
} | |
} | |
def support_version = "26.0.0-beta2" | |
def butterknife_version = "8.6.0" | |
def retrofit_version = "2.3.0" | |
def dagger_version = "2.7" | |
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
testCompile('com.android.support.test:runner:0.5', { | |
exclude group: 'com.android.support', module: 'support-annotations' | |
}) | |
testCompile('com.android.support.test:rules:0.5', { | |
exclude group: 'com.android.support', module: 'support-annotations' | |
}) | |
compile "com.android.support:appcompat-v7:${support_version}" | |
compile "com.android.support:design:${support_version}" | |
compile "com.squareup.retrofit2:retrofit:${retrofit_version}" | |
compile "com.squareup.retrofit2:converter-gson:${retrofit_version}" | |
compile "com.squareup.retrofit2:adapter-rxjava2:${retrofit_version}" | |
compile "com.jakewharton:butterknife:${butterknife_version}" | |
annotationProcessor "com.jakewharton:butterknife-compiler:${butterknife_version}" | |
apt "com.jakewharton:butterknife-compiler:${butterknife_version}" | |
compile "com.google.dagger:dagger:${dagger_version}" | |
apt "com.google.dagger:dagger-compiler:${dagger_version}" | |
compile 'com.squareup.sqlbrite2:sqlbrite:2.0.0-SNAPSHOT' | |
compile 'io.reactivex.rxjava2:rxandroid:2.0.1' | |
compile 'io.reactivex.rxjava2:rxjava:2.1.0' | |
compile 'com.google.code.gson:gson:2.8.1' | |
compile 'com.squareup.okhttp3:logging-interceptor:3.8.1' | |
compile 'org.greenrobot:eventbus:3.0.0' | |
compile 'com.annimon:stream:1.1.2' | |
compile 'com.jakewharton.timber:timber:4.5.1' | |
provided 'org.glassfish:javax.annotation:10.0-b28' | |
testCompile 'junit:junit:4.12' | |
testCompile 'org.mockito:mockito-core:2.0.17-beta' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:2.3.3' | |
classpath 'me.tatarka:gradle-retrolambda:3.4.0' | |
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' | |
// NOTE: Do not place your application dependencies here; they belong | |
// in the individual module build.gradle files | |
} | |
} | |
allprojects { | |
repositories { | |
jcenter() | |
maven { url 'https://maven.google.com' } | |
maven { url "https://oss.sonatype.org/content/repositories/snapshots" } | |
} | |
} | |
task clean(type: Delete) { | |
delete rootProject.buildDir | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment