初始化项目
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Date
|
||||
import java.util.Locale
|
||||
|
||||
plugins {
|
||||
alias(libs.plugins.android.application)
|
||||
alias(libs.plugins.jetbrains.kotlin.android)
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.bbitcn.bbit_frp2"
|
||||
compileSdk = 34
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "com.bbitcn.bbit_frp2"
|
||||
minSdk = 25
|
||||
//noinspection ExpiredTargetSdkVersion
|
||||
targetSdk = 32
|
||||
versionCode = 15
|
||||
versionName = "1.15"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
useSupportLibrary = true
|
||||
}
|
||||
ndk {
|
||||
abiFilters.addAll(listOf("armeabi", "armeabi-v7a", "x86"))
|
||||
}
|
||||
buildConfigField("String", "FrpVersion", "\"0.56.0\"")
|
||||
buildConfigField("String", "FrpcFileName", "\"libfrpc.so\"")
|
||||
buildConfigField("String", "LogFileName", "\"frpc.log\"")
|
||||
buildConfigField("String", "ConfigFileName", "\"config.toml\"")
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
jniLibs {
|
||||
useLegacyPackaging = true
|
||||
}
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
}
|
||||
buildFeatures {
|
||||
compose = true
|
||||
buildConfig = true
|
||||
}
|
||||
composeOptions {
|
||||
kotlinCompilerExtensionVersion = "1.5.1"
|
||||
}
|
||||
packaging {
|
||||
resources {
|
||||
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
||||
}
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
// create("config") {
|
||||
// keyAlias = "key0"
|
||||
// keyPassword = "123456"
|
||||
// storeFile = file("../key/key.jks")
|
||||
// storePassword = "123456"
|
||||
// }
|
||||
getByName("debug") {
|
||||
keyAlias = "key0"
|
||||
keyPassword = "123456"
|
||||
storeFile = file("../key/store.jks")
|
||||
storeType = "jks"
|
||||
storePassword = "123456"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.androidx.core.ktx)
|
||||
implementation(libs.androidx.lifecycle.runtime.ktx)
|
||||
implementation(libs.androidx.activity.compose)
|
||||
implementation(platform(libs.androidx.compose.bom))
|
||||
implementation(libs.androidx.ui)
|
||||
implementation(libs.androidx.ui.graphics)
|
||||
implementation(libs.androidx.ui.tooling.preview)
|
||||
implementation(libs.androidx.material3)
|
||||
testImplementation(libs.junit)
|
||||
androidTestImplementation(libs.androidx.junit)
|
||||
androidTestImplementation(libs.androidx.espresso.core)
|
||||
androidTestImplementation(platform(libs.androidx.compose.bom))
|
||||
androidTestImplementation(libs.androidx.ui.test.junit4)
|
||||
debugImplementation(libs.androidx.ui.tooling)
|
||||
debugImplementation(libs.androidx.ui.test.manifest)
|
||||
//GSON
|
||||
implementation(libs.com.google.code.gson.gson2)
|
||||
//util
|
||||
implementation("com.blankj:utilcodex:1.31.1")
|
||||
//网络请求库
|
||||
implementation("org.xutils:xutils:3.9.0")
|
||||
//RxJava
|
||||
implementation("io.reactivex.rxjava2:rxjava:2.2.20")
|
||||
implementation("io.reactivex.rxjava2:rxandroid:2.1.1")
|
||||
implementation("com.jakewharton.rxbinding2:rxbinding:2.2.0")
|
||||
implementation("com.github.xuexiangjys:RxUtil2:1.2.1")
|
||||
//lifecycle-viewmodel-compose
|
||||
implementation(libs.androidx.lifecycle.viewmodel.compose)
|
||||
//权限库
|
||||
// implementation ("com.github.getActivity:XXPermissions:18.5")
|
||||
}
|
||||
Reference in New Issue
Block a user