chore: migrate build script from groovy to kts

- using SweetDependency, SweetProperty
- change support min sdk to 24
- merge singing key file configs to properties
- update gradle and dependencies
This commit is contained in:
2023-09-16 00:55:45 +08:00
parent f520983d32
commit 5b4da6df45
10 changed files with 204 additions and 161 deletions

View File

@@ -1,23 +1,18 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-XX:+UseParallelGC
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app"s APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
# Compiler Configuration
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
android.nonTransitiveRClass=true
kotlin.code.style=official
# Incremental
kotlin.incremental.useClasspathSnapshot=true
kotlin.incremental.useClasspathSnapshot=true
# Project Configuration
project.name=TSBattery
project.android.compileSdk=34
project.android.minSdk=24
project.android.targetSdk=33
project.app.packageName=com.fankes.tsbattery
project.app.versionName="4.3"
project.app.versionCode=29
project.app.signing.keyAlias=public
project.app.signing.keyPassword="123456"
project.app.signing.storePassword="123456"
project.app.signing.storeFilePath=.secret/universal.p12