You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.5 KiB
Groovy
84 lines
2.5 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 25
|
|
targetSdkVersion 30
|
|
compileSdk 31
|
|
versionCode 4
|
|
versionName "1.0.3"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
// signingConfig signingConfigs.AceKeystore
|
|
|
|
buildConfigField("String", "FrpVersion", '"0.56.0"')
|
|
buildConfigField("String", "FrpcFileName", '"libfrpc.so"')
|
|
buildConfigField("String", "LogFileName", '"frpc.log"')
|
|
buildConfigField("String", "ConfigFileName", '"config.toml"')
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
// signingConfig signingConfigs.AceKeystore
|
|
}
|
|
debug {
|
|
// signingConfig signingConfigs.AceKeystore
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
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.6.0'
|
|
implementation 'androidx.appcompat:appcompat:1.3.0'
|
|
implementation 'com.google.android.material:material:1.4.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
} |