frp-Android/app/build.gradle

84 lines
2.5 KiB
Groovy
Raw Normal View History

2020-12-13 00:51:51 +08:00
plugins {
id 'com.android.application'
id 'kotlin-android'
}
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android {
2024-04-01 15:22:02 +08:00
buildFeatures {
buildConfig = true
}
2020-12-13 00:51:51 +08:00
signingConfigs {
AceKeystore {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
defaultConfig {
applicationId "io.github.acedroidx.frp"
2022-05-19 01:51:34 +08:00
minSdkVersion 23
2024-04-01 15:22:02 +08:00
targetSdkVersion 34
compileSdk 34
versionCode 4
versionName "1.0.3"
2020-12-13 00:51:51 +08:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
signingConfig signingConfigs.AceKeystore
2024-04-01 15:48:31 +08:00
buildConfigField("String", "FrpVersion", '"0.56.0"')
buildConfigField("String", "FrpcFileName", '"libfrpc.so"')
buildConfigField("String", "LogFileName", '"frpc.log"')
2024-04-01 16:33:11 +08:00
buildConfigField("String", "ConfigFileName", '"config.toml"')
2020-12-13 00:51:51 +08:00
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.AceKeystore
}
debug {
signingConfig signingConfigs.AceKeystore
}
}
compileOptions {
2024-04-01 15:22:02 +08:00
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
2020-12-13 00:51:51 +08:00
}
kotlinOptions {
2024-04-01 15:22:02 +08:00
jvmTarget = '17'
2020-12-13 00:51:51 +08:00
}
2022-05-19 01:51:34 +08:00
packagingOptions {
jniLibs {
useLegacyPackaging true
}
}
splits {
abi {
enable true
reset()
2024-04-01 15:22:02 +08:00
include "arm64-v8a", "x86_64", "armeabi-v7a"
2022-05-19 01:51:34 +08:00
universalApk true
}
}
2024-04-01 14:14:14 +08:00
namespace 'io.github.acedroidx.frp'
2020-12-13 00:51:51 +08:00
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
2024-04-01 15:22:02 +08:00
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'
2022-05-19 01:51:34 +08:00
testImplementation 'junit:junit:4.13.2'
2024-04-01 15:22:02 +08:00
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
2020-12-13 00:51:51 +08:00
}