diff --git a/TMessagesProj/build.gradle b/TMessagesProj/build.gradle index c1412d276..7bf55e4d4 100644 --- a/TMessagesProj/build.gradle +++ b/TMessagesProj/build.gradle @@ -7,34 +7,40 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' +def verName = "6.2.0.3-preview-2" +def verCode = 57 + def serviceAccountCredentialsFile = rootProject.file("service_account_credentials.json") +def beta = verName.contains("preview") + if (serviceAccountCredentialsFile.isFile()) { - setupPlay() + setupPlay(beta) play.serviceAccountCredentials = serviceAccountCredentialsFile } else if (System.getenv().containsKey("ANDROID_PUBLISHER_CREDENTIALS")) { - setupPlay() + setupPlay(beta) } -void setupPlay() { +void setupPlay(boolean beta) { apply plugin: 'com.github.triplet.play' play { - track = "production" - + track = beta ? "beta" : "production" + defaultToAppBundles = true userFraction = 1 } + } @@ -56,7 +62,7 @@ buildscript { } dependencies { - classpath "cn.hutool:hutool-all:5.3.8" + classpath 'cn.hutool:hutool-all:5.3.9' } } @@ -70,8 +76,8 @@ repositories { dependencies { - implementation 'androidx.core:core:1.5.0-alpha01' - implementation 'androidx.palette:palette:1.0.0' + implementation 'androidx.core:core-ktx:1.5.0-alpha01' + implementation 'androidx.palette:palette-ktx:1.0.0' implementation 'androidx.viewpager:viewpager:1.0.0' implementation 'androidx.exifinterface:exifinterface:1.2.0' implementation "androidx.interpolator:interpolator:1.0.0" @@ -91,7 +97,7 @@ dependencies { implementation 'com.stripe:stripe-android:2.0.2' implementation 'com.google.code.gson:gson:2.8.6' - implementation 'org.osmdroid:osmdroid-android:6.1.6' + implementation 'org.osmdroid:osmdroid-android:6.1.7' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72" implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.8' @@ -124,9 +130,6 @@ dependencies { } -def verName = "6.2.0.3-rc03" -def verCode = 56 - task writeUpdateInfo { def info = new JSONObject()