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.kotlin_version = '1.2.61'
|
|
|
|
ext.kotlin_coroutines_version = '0.25.3'
|
2018-08-04 21:50:54 +02:00
|
|
|
ext.anko_version='0.10.5'
|
2018-04-05 22:47:25 +02:00
|
|
|
ext.asl_version='27.1.1'
|
2018-09-12 07:55:15 +02:00
|
|
|
ext.target_sdk_version = 27
|
|
|
|
ext.min_sdk_version = 21
|
2017-11-04 15:51:15 +01:00
|
|
|
|
2017-04-20 18:23:59 +02:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
2017-04-23 07:42:09 +02:00
|
|
|
mavenCentral()
|
2017-11-30 15:15:47 +01:00
|
|
|
google()
|
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-08-07 20:00:43 +02:00
|
|
|
classpath 'com.android.tools.build:gradle:3.1.4'
|
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 {
|
|
|
|
jcenter()
|
2017-08-24 13:44:06 +02:00
|
|
|
maven { url 'https://maven.google.com' }
|
|
|
|
maven { url 'https://jitpack.io' }
|
2017-11-30 15:15:47 +01:00
|
|
|
google()
|
2017-04-20 18:23:59 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task clean(type: Delete) {
|
|
|
|
delete rootProject.buildDir
|
|
|
|
}
|