mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 05:25:08 +01:00
remove shortcuts.xml plugin since shortcuts arent used anymore (#463)
updated gradle to 6.1.1 update android gradle to 4.0 add buildSrc to use kotlin for versions didnt convert them all
This commit is contained in:
parent
07999b0c2d
commit
7d5fa5a603
@ -4,14 +4,13 @@ import java.time.ZoneOffset
|
|||||||
import java.time.format.DateTimeFormatter
|
import java.time.format.DateTimeFormatter
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.android.application")
|
id("com.android.application") version BuildPluginsVersion.AGP
|
||||||
id("com.google.android.gms.oss-licenses-plugin")
|
id("com.google.android.gms.oss-licenses-plugin") version BuildPluginsVersion.OSS_LICENSE
|
||||||
kotlin("android")
|
kotlin("android") version BuildPluginsVersion.KOTLIN
|
||||||
kotlin("android.extensions")
|
kotlin("android.extensions") version BuildPluginsVersion.KOTLIN
|
||||||
kotlin("kapt")
|
kotlin("kapt") version BuildPluginsVersion.KOTLIN
|
||||||
id("org.jmailen.kotlinter") version "2.3.1"
|
id("com.google.gms.google-services") version BuildPluginsVersion.GOOGLE_SERVICES apply false
|
||||||
id("com.github.zellius.shortcut-helper")
|
id("org.jmailen.kotlinter") version BuildPluginsVersion.KOTLINTER
|
||||||
id("com.google.gms.google-services") apply false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getBuildTime() = DateTimeFormatter.ISO_DATE_TIME.format(LocalDateTime.now(ZoneOffset.UTC))
|
fun getBuildTime() = DateTimeFormatter.ISO_DATE_TIME.format(LocalDateTime.now(ZoneOffset.UTC))
|
||||||
@ -28,15 +27,15 @@ fun runCommand(command: String): String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion(29)
|
compileSdkVersion(AndroidVersions.COMPILE_SDK)
|
||||||
buildToolsVersion("29.0.3")
|
buildToolsVersion(AndroidVersions.BUILD_TOOL)
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion(23)
|
minSdkVersion(AndroidVersions.MIN_SDK)
|
||||||
targetSdkVersion(29)
|
targetSdkVersion(AndroidVersions.TARGET_SDK)
|
||||||
applicationId = "eu.kanade.tachiyomi"
|
applicationId = "eu.kanade.tachiyomi"
|
||||||
versionCode = 66
|
versionCode = AndroidVersions.VERSION_CODE
|
||||||
versionName = "1.0.7"
|
versionName = AndroidVersions.VERSION_NAME
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
multiDexEnabled = true
|
multiDexEnabled = true
|
||||||
|
|
||||||
@ -45,7 +44,6 @@ android {
|
|||||||
buildConfigField("String", "BUILD_TIME", "\"${getBuildTime()}\"")
|
buildConfigField("String", "BUILD_TIME", "\"${getBuildTime()}\"")
|
||||||
buildConfigField("Boolean", "INCLUDE_UPDATER", "false")
|
buildConfigField("Boolean", "INCLUDE_UPDATER", "false")
|
||||||
|
|
||||||
|
|
||||||
ndk {
|
ndk {
|
||||||
abiFilters("armeabi-v7a", "arm64-v8a", "x86")
|
abiFilters("armeabi-v7a", "arm64-v8a", "x86")
|
||||||
}
|
}
|
||||||
@ -87,10 +85,6 @@ androidExtensions {
|
|||||||
isExperimental = true
|
isExperimental = true
|
||||||
}
|
}
|
||||||
|
|
||||||
shortcutHelper {
|
|
||||||
setFilePath("./shortcuts.xml")
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// Modified dependencies
|
// Modified dependencies
|
||||||
implementation("com.github.inorichi:subsampling-scale-image-view:ac0dae7")
|
implementation("com.github.inorichi:subsampling-scale-image-view:ac0dae7")
|
||||||
@ -107,7 +101,6 @@ dependencies {
|
|||||||
implementation("androidx.biometric:biometric:1.0.1")
|
implementation("androidx.biometric:biometric:1.0.1")
|
||||||
implementation("androidx.palette:palette:1.0.0")
|
implementation("androidx.palette:palette:1.0.0")
|
||||||
|
|
||||||
|
|
||||||
implementation("androidx.constraintlayout:constraintlayout:1.1.3")
|
implementation("androidx.constraintlayout:constraintlayout:1.1.3")
|
||||||
|
|
||||||
implementation("androidx.multidex:multidex:2.0.1")
|
implementation("androidx.multidex:multidex:2.0.1")
|
||||||
@ -119,7 +112,6 @@ dependencies {
|
|||||||
implementation("androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion")
|
implementation("androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion")
|
||||||
implementation("androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion")
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion")
|
||||||
|
|
||||||
|
|
||||||
// ReactiveX
|
// ReactiveX
|
||||||
implementation("io.reactivex:rxandroid:1.2.1")
|
implementation("io.reactivex:rxandroid:1.2.1")
|
||||||
implementation("io.reactivex:rxjava:1.3.8")
|
implementation("io.reactivex:rxjava:1.3.8")
|
||||||
@ -131,35 +123,32 @@ dependencies {
|
|||||||
implementation("com.github.tfcporciuncula:flow-preferences:1.1.1")
|
implementation("com.github.tfcporciuncula:flow-preferences:1.1.1")
|
||||||
|
|
||||||
// Network client
|
// Network client
|
||||||
val okhttpVersion = "4.5.0"
|
implementation("com.squareup.okhttp3:okhttp:${Versions.OKHTTP}")
|
||||||
implementation("com.squareup.okhttp3:okhttp:$okhttpVersion")
|
implementation("com.squareup.okhttp3:logging-interceptor:${Versions.OKHTTP}")
|
||||||
implementation("com.squareup.okhttp3:logging-interceptor:$okhttpVersion")
|
|
||||||
implementation("com.squareup.okio:okio:2.6.0")
|
implementation("com.squareup.okio:okio:2.6.0")
|
||||||
|
|
||||||
//Chucker
|
// Chucker
|
||||||
val chuckerVersion = "3.2.0"
|
val chuckerVersion = "3.2.0"
|
||||||
debugImplementation ("com.github.ChuckerTeam.Chucker:library:$chuckerVersion")
|
debugImplementation("com.github.ChuckerTeam.Chucker:library:${Versions.CHUCKER}")
|
||||||
releaseImplementation ("com.github.ChuckerTeam.Chucker:library-no-op:$chuckerVersion")
|
releaseImplementation("com.github.ChuckerTeam.Chucker:library-no-op:${Versions.CHUCKER}")
|
||||||
|
|
||||||
//hyperion
|
// hyperion
|
||||||
val hyperionVersion = "0.9.27"
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-core:${Versions.HYPERION}")
|
||||||
debugImplementation("com.willowtreeapps.hyperion:hyperion-core:$hyperionVersion")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-timber:${Versions.HYPERION}")
|
||||||
debugImplementation("com.willowtreeapps.hyperion:hyperion-timber:$hyperionVersion")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-core:${Versions.HYPERION}")
|
||||||
debugImplementation("com.willowtreeapps.hyperion:hyperion-core:$hyperionVersion")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-attr:${Versions.HYPERION}")
|
||||||
debugImplementation("com.willowtreeapps.hyperion:hyperion-attr:$hyperionVersion")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-build-config:${Versions.HYPERION}")
|
||||||
debugImplementation("com.willowtreeapps.hyperion:hyperion-build-config:$hyperionVersion")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-crash:${Versions.HYPERION}")
|
||||||
debugImplementation("com.willowtreeapps.hyperion:hyperion-crash:$hyperionVersion")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-disk:${Versions.HYPERION}")
|
||||||
debugImplementation("com.willowtreeapps.hyperion:hyperion-disk:$hyperionVersion")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-geiger-counter:${Versions.HYPERION}")
|
||||||
debugImplementation("com.willowtreeapps.hyperion:hyperion-geiger-counter:$hyperionVersion")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-measurement:${Versions.HYPERION}")
|
||||||
debugImplementation("com.willowtreeapps.hyperion:hyperion-measurement:$hyperionVersion")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-phoenix:${Versions.HYPERION}")
|
||||||
debugImplementation("com.willowtreeapps.hyperion:hyperion-phoenix:$hyperionVersion")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-recorder:${Versions.HYPERION}")
|
||||||
debugImplementation("com.willowtreeapps.hyperion:hyperion-recorder:$hyperionVersion")
|
debugImplementation("com.willowtreeapps.hyperion:hyperion-shared-preferences:${Versions.HYPERION}")
|
||||||
debugImplementation("com.willowtreeapps.hyperion:hyperion-shared-preferences:$hyperionVersion")
|
|
||||||
|
|
||||||
// REST
|
// REST
|
||||||
val retrofitVersion = "2.7.2"
|
implementation("com.squareup.retrofit2:retrofit:${Versions.RETROFIT}")
|
||||||
implementation("com.squareup.retrofit2:retrofit:$retrofitVersion")
|
implementation("com.squareup.retrofit2:converter-gson:${Versions.RETROFIT}")
|
||||||
implementation("com.squareup.retrofit2:converter-gson:$retrofitVersion")
|
|
||||||
|
|
||||||
// JSON
|
// JSON
|
||||||
implementation("com.google.code.gson:gson:2.8.6")
|
implementation("com.google.code.gson:gson:2.8.6")
|
||||||
@ -176,9 +165,8 @@ dependencies {
|
|||||||
implementation("org.jsoup:jsoup:1.13.1")
|
implementation("org.jsoup:jsoup:1.13.1")
|
||||||
|
|
||||||
// Job scheduling
|
// Job scheduling
|
||||||
val workManagerVersion = "2.3.3"
|
implementation("android.arch.work:work-runtime:${Versions.WORKMANAGER}")
|
||||||
implementation("android.arch.work:work-runtime:$workManagerVersion")
|
implementation("android.arch.work:work-runtime-ktx:${Versions.WORKMANAGER}")
|
||||||
implementation("android.arch.work:work-runtime-ktx:$workManagerVersion")
|
|
||||||
implementation("com.google.android.gms:play-services-gcm:17.0.0")
|
implementation("com.google.android.gms:play-services-gcm:17.0.0")
|
||||||
|
|
||||||
// Changelog
|
// Changelog
|
||||||
@ -191,28 +179,26 @@ dependencies {
|
|||||||
implementation("io.requery:sqlite-android:3.31.0")
|
implementation("io.requery:sqlite-android:3.31.0")
|
||||||
|
|
||||||
// Model View Presenter
|
// Model View Presenter
|
||||||
val nucleusVersion = "3.0.0"
|
implementation("info.android15.nucleus:nucleus:${Versions.NUCLEUS}")
|
||||||
implementation("info.android15.nucleus:nucleus:$nucleusVersion")
|
implementation("info.android15.nucleus:nucleus-support-v7:${Versions.NUCLEUS}")
|
||||||
implementation("info.android15.nucleus:nucleus-support-v7:$nucleusVersion")
|
|
||||||
|
|
||||||
// Dependency injection
|
// Dependency injection
|
||||||
implementation("com.github.inorichi.injekt:injekt-core:65b0440")
|
implementation("com.github.inorichi.injekt:injekt-core:65b0440")
|
||||||
|
|
||||||
// Image library
|
// Image library
|
||||||
val coilVersion = "0.10.1"
|
val coilVersion = "0.10.1"
|
||||||
implementation("io.coil-kt:coil:$coilVersion")
|
implementation("io.coil-kt:coil:${Versions.COIL}")
|
||||||
implementation("io.coil-kt:coil-gif:$coilVersion")
|
implementation("io.coil-kt:coil-gif:${Versions.COIL}")
|
||||||
implementation("io.coil-kt:coil-svg:$coilVersion")
|
implementation("io.coil-kt:coil-svg:${Versions.COIL}")
|
||||||
|
|
||||||
// Logging
|
// Logging
|
||||||
implementation("com.jakewharton.timber:timber:4.7.1")
|
implementation("com.jakewharton.timber:timber:${Versions.TIMBER}")
|
||||||
|
|
||||||
// UI
|
// UI
|
||||||
implementation("com.dmitrymalkovich.android:material-design-dimens:1.4")
|
implementation("com.dmitrymalkovich.android:material-design-dimens:1.4")
|
||||||
implementation("com.github.dmytrodanylyk.android-process-button:library:1.0.4")
|
implementation("com.github.dmytrodanylyk.android-process-button:library:1.0.4")
|
||||||
val latestFastAdapterRelease = "5.0.0"
|
implementation("com.mikepenz:fastadapter:${Versions.FASTADAPTER}")
|
||||||
implementation("com.mikepenz:fastadapter:${latestFastAdapterRelease}")
|
implementation("com.mikepenz:fastadapter-extensions-binding:${Versions.FASTADAPTER}")
|
||||||
implementation("com.mikepenz:fastadapter-extensions-binding:${latestFastAdapterRelease}")
|
|
||||||
implementation("eu.davidea:flexible-adapter:5.1.0")
|
implementation("eu.davidea:flexible-adapter:5.1.0")
|
||||||
implementation("eu.davidea:flexible-adapter-ui:1.0.0")
|
implementation("eu.davidea:flexible-adapter-ui:1.0.0")
|
||||||
implementation("com.nononsenseapps:filepicker:2.5.2")
|
implementation("com.nononsenseapps:filepicker:2.5.2")
|
||||||
@ -236,39 +222,35 @@ dependencies {
|
|||||||
implementation("com.github.inorichi:conductor-support-preference:a32c357")
|
implementation("com.github.inorichi:conductor-support-preference:a32c357")
|
||||||
|
|
||||||
// RxBindings
|
// RxBindings
|
||||||
val rxbindingsVersion = "1.0.1"
|
implementation("com.jakewharton.rxbinding:rxbinding-kotlin:${Versions.RX_BINDING}")
|
||||||
implementation("com.jakewharton.rxbinding:rxbinding-kotlin:$rxbindingsVersion")
|
implementation("com.jakewharton.rxbinding:rxbinding-appcompat-v7-kotlin:${Versions.RX_BINDING}")
|
||||||
implementation("com.jakewharton.rxbinding:rxbinding-appcompat-v7-kotlin:$rxbindingsVersion")
|
implementation("com.jakewharton.rxbinding:rxbinding-support-v4-kotlin:${Versions.RX_BINDING}")
|
||||||
implementation("com.jakewharton.rxbinding:rxbinding-support-v4-kotlin:$rxbindingsVersion")
|
implementation("com.jakewharton.rxbinding:rxbinding-recyclerview-v7-kotlin:${Versions.RX_BINDING}")
|
||||||
implementation("com.jakewharton.rxbinding:rxbinding-recyclerview-v7-kotlin:$rxbindingsVersion")
|
|
||||||
|
|
||||||
// Tests
|
// Tests
|
||||||
testImplementation("junit:junit:4.13")
|
testImplementation("junit:junit:4.13")
|
||||||
testImplementation("org.assertj:assertj-core:3.12.2")
|
testImplementation("org.assertj:assertj-core:3.12.2")
|
||||||
testImplementation("org.mockito:mockito-core:1.10.19")
|
testImplementation("org.mockito:mockito-core:1.10.19")
|
||||||
|
|
||||||
val robolectricVersion = "3.1.4"
|
testImplementation("org.robolectric:robolectric:${Versions.ROBO_ELECTRIC}")
|
||||||
testImplementation("org.robolectric:robolectric:$robolectricVersion")
|
testImplementation("org.robolectric:shadows-multidex:${Versions.ROBO_ELECTRIC}")
|
||||||
testImplementation("org.robolectric:shadows-multidex:$robolectricVersion")
|
testImplementation("org.robolectric:shadows-play-services:${Versions.ROBO_ELECTRIC}")
|
||||||
testImplementation("org.robolectric:shadows-play-services:$robolectricVersion")
|
|
||||||
|
|
||||||
|
|
||||||
implementation(kotlin("stdlib", org.jetbrains.kotlin.config.KotlinCompilerVersion.VERSION))
|
implementation(kotlin("stdlib", org.jetbrains.kotlin.config.KotlinCompilerVersion.VERSION))
|
||||||
|
|
||||||
val coroutinesVersion = "1.3.5"
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.COROUTINES}")
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:${Versions.COROUTINES}")
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion")
|
|
||||||
|
|
||||||
//Crash reports
|
// Crash reports
|
||||||
val acraVersion = "4.9.2"
|
implementation("ch.acra:acra:${Versions.ACRA}")
|
||||||
implementation("ch.acra:acra:$acraVersion")
|
|
||||||
|
|
||||||
// Text distance
|
// Text distance
|
||||||
implementation("info.debatty:java-string-similarity:1.2.1")
|
implementation("info.debatty:java-string-similarity:1.2.1")
|
||||||
|
|
||||||
implementation("com.google.android.gms:play-services-oss-licenses:17.0.0")
|
implementation("com.google.android.gms:play-services-oss-licenses:${Versions.OSS_LICENSE}")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tasks.preBuild {
|
tasks.preBuild {
|
||||||
dependsOn(tasks.lintKotlin)
|
dependsOn(tasks.lintKotlin)
|
||||||
}
|
}
|
||||||
|
@ -1,39 +0,0 @@
|
|||||||
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
|
|
||||||
<shortcut
|
|
||||||
android:enabled="true"
|
|
||||||
android:icon="@drawable/sc_update_48dp"
|
|
||||||
android:shortcutDisabledMessage="@string/app_not_available"
|
|
||||||
android:shortcutId="show_recently_updated"
|
|
||||||
android:shortcutLongLabel="@string/recent_updates"
|
|
||||||
android:shortcutShortLabel="@string/updates">
|
|
||||||
<intent
|
|
||||||
android:action="eu.kanade.tachiyomi.SHOW_RECENTLY_UPDATED"
|
|
||||||
android:targetPackage="${applicationId}"
|
|
||||||
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
|
||||||
</shortcut>
|
|
||||||
<shortcut
|
|
||||||
android:enabled="true"
|
|
||||||
android:icon="@drawable/sc_glasses_48dp"
|
|
||||||
android:shortcutDisabledMessage="@string/app_not_available"
|
|
||||||
android:shortcutId="show_recently_read"
|
|
||||||
android:shortcutLongLabel="@string/history"
|
|
||||||
android:shortcutShortLabel="@string/history">
|
|
||||||
<intent
|
|
||||||
android:action="eu.kanade.tachiyomi.SHOW_RECENTLY_READ"
|
|
||||||
android:targetPackage="${applicationId}"
|
|
||||||
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
|
||||||
</shortcut>
|
|
||||||
<shortcut
|
|
||||||
android:enabled="true"
|
|
||||||
android:icon="@drawable/sc_extensions_48dp"
|
|
||||||
android:shortcutDisabledMessage="@string/app_not_available"
|
|
||||||
android:shortcutId="show_extensions"
|
|
||||||
android:shortcutLongLabel="@string/extensions"
|
|
||||||
android:shortcutShortLabel="@string/extensions">
|
|
||||||
<intent
|
|
||||||
android:action="eu.kanade.tachiyomi.EXTENSIONS"
|
|
||||||
android:targetPackage="${applicationId}"
|
|
||||||
android:targetClass="eu.kanade.tachiyomi.ui.main.MainActivity" />
|
|
||||||
</shortcut>
|
|
||||||
</shortcuts>
|
|
@ -39,8 +39,6 @@
|
|||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
<meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/>
|
<meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/>
|
||||||
<!--suppress AndroidDomInspection -->
|
|
||||||
<meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts"/>
|
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.main.SearchActivity"
|
android:name=".ui.main.SearchActivity"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
plugins{
|
plugins{
|
||||||
id("com.github.ben-manes.versions") version "0.28.0"
|
id("com.github.ben-manes.versions") version BuildPluginsVersion.VERSIONS_PLUGIN
|
||||||
}
|
}
|
||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
allprojects {
|
allprojects {
|
||||||
@ -8,10 +8,12 @@ allprojects {
|
|||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven { setUrl("https://jitpack.io") }
|
maven { setUrl("https://jitpack.io") }
|
||||||
|
maven { setUrl("https://plugins.gradle.org/m2/") }
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tasks.register("clean", Delete::class) {
|
tasks.register("clean", Delete::class) {
|
||||||
delete(rootProject.buildDir)
|
delete(rootProject.buildDir)
|
||||||
}
|
}
|
1
buildSrc/.gitignore
vendored
Normal file
1
buildSrc/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/build
|
6
buildSrc/build.gradle.kts
Normal file
6
buildSrc/build.gradle.kts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
plugins {
|
||||||
|
`kotlin-dsl`
|
||||||
|
}
|
||||||
|
repositories {
|
||||||
|
jcenter()
|
||||||
|
}
|
34
buildSrc/src/main/kotlin/Dependencies.kt
Normal file
34
buildSrc/src/main/kotlin/Dependencies.kt
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
object Versions {
|
||||||
|
const val ACRA = "4.9.2"
|
||||||
|
const val CHUCKER = "3.2.0"
|
||||||
|
const val COIL = "0.10.1"
|
||||||
|
const val COROUTINES = "1.3.5"
|
||||||
|
const val FASTADAPTER = "5.0.0"
|
||||||
|
const val HYPERION = "0.9.27"
|
||||||
|
const val NUCLEUS = "3.0.0"
|
||||||
|
const val OKHTTP = "4.5.0"
|
||||||
|
const val OSS_LICENSE = "17.0.0"
|
||||||
|
const val RETROFIT = "2.7.2"
|
||||||
|
const val ROBO_ELECTRIC = "3.1.4"
|
||||||
|
const val RX_BINDING ="1.0.1"
|
||||||
|
const val TIMBER = "4.7.1"
|
||||||
|
const val WORKMANAGER = "2.3.3"
|
||||||
|
}
|
||||||
|
|
||||||
|
object AndroidVersions {
|
||||||
|
const val BUILD_TOOL = "29.0.3"
|
||||||
|
const val COMPILE_SDK = 29
|
||||||
|
const val MIN_SDK = 23
|
||||||
|
const val TARGET_SDK = 29
|
||||||
|
const val VERSION_CODE = 66
|
||||||
|
const val VERSION_NAME = "1.0.7"
|
||||||
|
}
|
||||||
|
|
||||||
|
object BuildPluginsVersion {
|
||||||
|
const val AGP = "4.0.0"
|
||||||
|
const val GOOGLE_SERVICES = "4.3.3"
|
||||||
|
const val KOTLIN = "1.3.72"
|
||||||
|
const val KOTLINTER = "2.3.1"
|
||||||
|
const val OSS_LICENSE = "0.10.2"
|
||||||
|
const val VERSIONS_PLUGIN = "0.28.0"
|
||||||
|
}
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
|||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
|
||||||
|
@ -6,20 +6,18 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
resolutionStrategy {
|
resolutionStrategy {
|
||||||
eachPlugin {
|
eachPlugin {
|
||||||
if (requested.id.id.startsWith("org.jetbrains.kotlin")) {
|
if (requested.id.id == "com.android.library") {
|
||||||
useVersion("1.3.70")
|
useModule("com.android.tools.build:gradle:${requested.version}")
|
||||||
} else if (requested.id.id.equals("com.android.application")) {
|
}
|
||||||
useModule("com.android.tools.build:gradle:3.6.0")
|
else if (requested.id.id == "com.android.application") {
|
||||||
} else if (requested.id.id.equals("com.google.gms.google-services")) {
|
useModule("com.android.tools.build:gradle:${requested.version}")
|
||||||
useModule("com.google.gms:google-services:4.3.3")
|
}
|
||||||
}else if (requested.id.id.equals("com.google.gms.google-services")) {
|
else if (requested.id.id.equals("com.google.gms.google-services")) {
|
||||||
useModule("com.google.gms:google-services:4.3.3")
|
useModule("com.google.gms:google-services:${requested.version}")
|
||||||
}else if(requested.id.id.equals("com.github.zellius.shortcut-helper")){
|
}
|
||||||
useModule("com.github.zellius:android-shortcut-gradle-plugin:0.1.2")
|
else if (requested.id.id.equals("com.google.android.gms.oss-licenses-plugin")) {
|
||||||
}else if(requested.id.id.equals("com.google.android.gms.oss-licenses-plugin")){
|
useModule("com.google.android.gms:oss-licenses-plugin:${requested.version}")
|
||||||
useModule("com.google.android.gms:oss-licenses-plugin:0.10.2")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user