2022-01-22 17:54:06 +00:00
|
|
|
buildscript {
|
2022-08-11 02:53:02 +03:00
|
|
|
Properties localProperties = new Properties()
|
|
|
|
|
if (rootProject.file('local.properties').canRead()) {
|
|
|
|
|
localProperties.load(rootProject.file("local.properties").newDataInputStream())
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-16 12:49:47 +00:00
|
|
|
ext {
|
2022-08-11 02:53:02 +03:00
|
|
|
compose_version = localProperties['compose_version'] ?: '1.2.0-beta02'
|
|
|
|
|
kotlin_version = localProperties['kotlin_version'] ?: '1.6.21'
|
|
|
|
|
gradle_plugin_version = localProperties['gradle_plugin_version'] ?: '7.2.0'
|
|
|
|
|
|
|
|
|
|
// Name that will be shown for debug build. By default it is from strings
|
|
|
|
|
app_name = localProperties['app_name'] ?: "@string/app_name"
|
|
|
|
|
// Whether the app is debuggable or not. Specify `false` if you want good performance in debug builds
|
|
|
|
|
enable_debuggable = localProperties['debuggable'] ?: true
|
|
|
|
|
// Ending part of package name.
|
|
|
|
|
// Provide, for example, `application_id_suffix=.debug` in local.properties
|
|
|
|
|
// to allow debug & release versions to coexist
|
|
|
|
|
application_id_suffix = localProperties['application_id_suffix'] ?: ''
|
|
|
|
|
|
2022-08-19 19:16:52 +03:00
|
|
|
// Compression level for debug AND release apk. 0 = disable compression. Max is 9
|
|
|
|
|
compression_level = localProperties['compression_level'] ?: '0'
|
|
|
|
|
|
2022-08-11 02:53:02 +03:00
|
|
|
// NOTE: If you need a different version of something, provide it in `local.properties`
|
|
|
|
|
// like so: compose_version=123, or gradle_plugin_version=1.2.3, etc
|
2022-02-16 12:49:47 +00:00
|
|
|
}
|
2022-01-22 17:54:06 +00:00
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
dependencies {
|
2022-08-11 02:53:02 +03:00
|
|
|
classpath "com.android.tools.build:gradle:$gradle_plugin_version"
|
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2022-02-16 12:49:47 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-serialization:1.3.2"
|
2022-01-22 17:54:06 +00:00
|
|
|
|
|
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
|
|
|
// in the individual module build.gradle files
|
|
|
|
|
}
|
2022-02-16 12:49:47 +00:00
|
|
|
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
plugins {
|
2022-08-11 02:53:02 +03:00
|
|
|
id 'com.android.application' version "$gradle_plugin_version" apply false
|
|
|
|
|
id 'com.android.library' version "$gradle_plugin_version" apply false
|
|
|
|
|
id 'org.jetbrains.kotlin.android' version "$kotlin_version" apply false
|
|
|
|
|
id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlin_version"
|
2022-01-22 17:54:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
task clean(type: Delete) {
|
|
|
|
|
delete rootProject.buildDir
|
|
|
|
|
}
|