0
0
mirror of https://github.com/florisboard/florisboard.git synced 2024-09-19 19:42:20 +02:00

Move project version/buildtool meta to gradle.properties

This commit is contained in:
Patrick Goldinger 2023-12-09 04:47:19 +01:00
parent e66bcc124f
commit a4f6c0326f
No known key found for this signature in database
GPG Key ID: 533467C3DC7B9262
2 changed files with 30 additions and 11 deletions

View File

@ -29,11 +29,20 @@ plugins {
alias(libs.plugins.mikepenz.aboutlibraries)
}
val projectMinSdk: String by project
val projectTargetSdk: String by project
val projectCompileSdk: String by project
val projectBuildToolsVersion: String by project
val projectNdkVersion: String by project
val projectVersionCode: String by project
val projectVersionName: String by project
val projectVersionNameSuffix: String by project
android {
namespace = "dev.patrickgold.florisboard"
compileSdk = 33
buildToolsVersion = "33.0.2"
ndkVersion = "26.1.10909125"
compileSdk = projectCompileSdk.toInt()
buildToolsVersion = projectBuildToolsVersion
ndkVersion = projectNdkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
@ -51,10 +60,10 @@ android {
defaultConfig {
applicationId = "dev.patrickgold.florisboard"
minSdk = 24
targetSdk = 33
versionCode = 90
versionName = "0.4.0"
minSdk = projectMinSdk.toInt()
targetSdk = projectTargetSdk.toInt()
versionCode = projectVersionCode.toInt()
versionName = projectVersionName
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
@ -139,7 +148,7 @@ android {
create("beta") {
applicationIdSuffix = ".beta"
versionNameSuffix = "-alpha04"
versionNameSuffix = projectVersionNameSuffix
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
isMinifyEnabled = true
@ -152,6 +161,8 @@ android {
}
named("release") {
versionNameSuffix = projectVersionNameSuffix
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
isMinifyEnabled = true
isShrinkResources = true

View File

@ -1,11 +1,19 @@
# Use AndroidX package structure - https://developer.android.com/topic/libraries/support-library/androidx-rn
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
# Set max Gradle JVM memory to 4 Gigabytes
org.gradle.jvmargs=-Xmx4096m
org.gradle.parallel=true
org.gradle.warning.mode=all
### FlorisBoard-specific flags ###
projectMinSdk=24
projectTargetSdk=33
projectCompileSdk=33
projectBuildToolsVersion=33.0.2
projectNdkVersion=26.1.10909125
projectVersionCode=90
projectVersionName=0.4.0
projectVersionNameSuffix=-alpha04