Last active
December 11, 2016 17:39
-
-
Save kyanro/12dbf514a3dc916c5cf0 to your computer and use it in GitHub Desktop.
standard android library settings (for me)
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: 'kotlin-android' | |
android { | |
compileSdkVersion 25 | |
buildToolsVersion "24.0.2" | |
dataBinding { | |
enabled true | |
} | |
defaultConfig { | |
applicationId "com.kyanro" | |
minSdkVersion 16 | |
targetSdkVersion 25 | |
versionCode 1 | |
versionName "1.0" | |
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
} | |
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
sourceSets { | |
main.java.srcDirs += 'src/main/kotlin' | |
} | |
} | |
kapt { | |
generateStubs = true | |
} | |
dependencies { | |
// android studioの機能でライブラリを最新にするといいよ | |
// http://stackoverflow.com/a/28683488/4335583 | |
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" | |
kapt 'com.android.databinding:compiler:2.2.0' | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
compile 'com.android.support:appcompat-v7:25.0.1' | |
compile 'com.android.support:design:25.0.1' | |
compile 'com.google.dagger:dagger:2.8' | |
kapt 'com.google.dagger:dagger-compiler:2.8' | |
// compile 'com.google.firebase:firebase-messaging:9.6.0' | |
// compile 'com.google.firebase:firebase-crash:9.6.0' | |
compile 'com.squareup.retrofit2:retrofit:2.1.0' | |
compile 'com.squareup.retrofit2:converter-gson:2.1.0' | |
compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0' | |
compile 'com.squareup.picasso:picasso:2.5.2' | |
compile 'com.google.code.gson:gson:2.8.0' | |
compile 'com.squareup.okhttp3:okhttp:3.5.0' | |
compile 'com.squareup.okhttp3:logging-interceptor:3.5.0' | |
compile 'io.reactivex:rxjava:1.2.3' | |
compile 'io.reactivex:rxandroid:1.2.1' | |
compile 'com.trello:rxlifecycle:1.0' | |
compile 'com.trello:rxlifecycle-components:1.0' | |
compile 'com.trello:rxlifecycle-kotlin:1.0' | |
compile 'com.jakewharton.rxbinding:rxbinding:1.0.0' | |
testCompile 'junit:junit:4.12' | |
androidTestCompile('com.android.support.test.espresso:espresso-core:2.3-alpha', { | |
exclude group: 'com.android.support', module: 'support-annotations' | |
}) | |
androidTestCompile 'com.google.code.findbugs:jsr305:3.0.1' | |
} | |
repositories { | |
mavenCentral() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment