frp-Android/app/build.gradle
2024-04-01 15:22:02 +08:00

79 lines
2.2 KiB
Groovy

plugins {
id 'com.android.application'
id 'kotlin-android'
}
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android {
buildFeatures {
buildConfig = true
}
signingConfigs {
AceKeystore {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
defaultConfig {
applicationId "io.github.acedroidx.frp"
minSdkVersion 23
targetSdkVersion 34
compileSdk 34
versionCode 4
versionName "1.0.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
signingConfig signingConfigs.AceKeystore
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.AceKeystore
}
debug {
signingConfig signingConfigs.AceKeystore
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
packagingOptions {
jniLibs {
useLegacyPackaging true
}
}
splits {
abi {
enable true
reset()
include "arm64-v8a", "x86_64", "armeabi-v7a"
universalApk true
}
}
namespace 'io.github.acedroidx.frp'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.11.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}