2017-04-20 18:23:59 +02:00
|
|
|
buildscript {
|
2017-11-04 15:51:15 +01:00
|
|
|
|
2018-09-12 07:55:15 +02:00
|
|
|
ext.min_sdk_version = 21
|
2018-09-27 16:21:37 +02:00
|
|
|
ext.target_sdk_version = 28
|
|
|
|
ext.asl_version='28.0.0'
|
|
|
|
|
|
|
|
ext.kotlin_version = '1.2.71'
|
|
|
|
ext.kotlinx_coroutines_version = '0.27.0'
|
|
|
|
ext.anko_version='0.10.5'
|
2017-11-04 15:51:15 +01:00
|
|
|
|
2017-04-20 18:23:59 +02:00
|
|
|
repositories {
|
2018-09-27 16:21:37 +02:00
|
|
|
google()
|
2017-04-20 18:23:59 +02:00
|
|
|
jcenter()
|
2017-04-23 07:42:09 +02:00
|
|
|
mavenCentral()
|
2017-04-20 18:23:59 +02:00
|
|
|
}
|
2018-09-12 07:55:15 +02:00
|
|
|
|
2017-04-20 18:23:59 +02:00
|
|
|
dependencies {
|
2018-09-27 16:21:37 +02:00
|
|
|
classpath 'com.android.tools.build:gradle:3.2.0'
|
2018-09-12 07:55:15 +02:00
|
|
|
classpath 'com.google.gms:google-services:4.1.0'
|
2018-05-06 10:09:18 +02:00
|
|
|
// https://android-developers.googleblog.com/2018/05/announcing-new-sdk-versioning.html では
|
|
|
|
// com.google.gms:google-services:3.3.0 以降を使うように書いてあるんだけど、3.3.0にするとGradle sync に失敗する。
|
|
|
|
// エラーメッセージに特徴的な部分がなく原因はよく分からなかった。
|
|
|
|
// https://developers.google.com/android/guides/google-services-plugin のドキュメントだと3.2.1と書かれてるし、暫く待つかなあ…
|
|
|
|
// 関連
|
|
|
|
// https://stackoverflow.com/questions/50166102/gradle-project-sync-failing-after-google-announced-the-new-sdk-versioning-system
|
|
|
|
// https://issuetracker.google.com/issues/79122163
|
|
|
|
|
2017-11-04 15:51:15 +01:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2017-04-20 18:23:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
2018-09-27 16:21:37 +02:00
|
|
|
google()
|
2017-04-20 18:23:59 +02:00
|
|
|
jcenter()
|
2017-08-24 13:44:06 +02:00
|
|
|
maven { url 'https://maven.google.com' }
|
|
|
|
maven { url 'https://jitpack.io' }
|
2017-04-20 18:23:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task clean(type: Delete) {
|
|
|
|
delete rootProject.buildDir
|
|
|
|
}
|