2024-06-22 04:25:20 +08:00
|
|
|
|
plugins {
|
|
|
|
|
|
alias(libs.plugins.android.application)
|
|
|
|
|
|
alias(libs.plugins.jetbrains.kotlin.android)
|
2024-08-11 17:15:17 +08:00
|
|
|
|
id("com.google.gms.google-services")
|
2024-09-01 16:59:11 +08:00
|
|
|
|
id("com.google.firebase.crashlytics")
|
|
|
|
|
|
id("com.google.firebase.firebase-perf")
|
|
|
|
|
|
|
2024-06-22 04:25:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
android {
|
|
|
|
|
|
namespace = "com.aiosman.riderpro"
|
|
|
|
|
|
compileSdk = 34
|
|
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
|
applicationId = "com.aiosman.riderpro"
|
|
|
|
|
|
minSdk = 24
|
|
|
|
|
|
targetSdk = 34
|
2024-09-22 18:14:07 +08:00
|
|
|
|
versionCode = 100001
|
|
|
|
|
|
versionName = "1.0.000.1"
|
2024-06-22 04:25:20 +08:00
|
|
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
|
vectorDrawables {
|
|
|
|
|
|
useSupportLibrary = true
|
|
|
|
|
|
}
|
2024-09-18 17:03:26 +08:00
|
|
|
|
addManifestPlaceholders(
|
|
|
|
|
|
mapOf(
|
|
|
|
|
|
"JPUSH_PKGNAME " to applicationId!!,
|
|
|
|
|
|
"JPUSH_APPKEY" to "ad805ee9f2760376f4f47178",
|
|
|
|
|
|
"JPUSH_CHANNEL" to "developer-default",
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
)
|
2024-06-22 04:25:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
|
release {
|
|
|
|
|
|
isMinifyEnabled = false
|
|
|
|
|
|
proguardFiles(
|
|
|
|
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
|
|
|
"proguard-rules.pro"
|
|
|
|
|
|
)
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
compileOptions {
|
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
|
|
}
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
|
|
}
|
|
|
|
|
|
buildFeatures {
|
|
|
|
|
|
compose = true
|
|
|
|
|
|
}
|
|
|
|
|
|
composeOptions {
|
|
|
|
|
|
kotlinCompilerExtensionVersion = "1.5.1"
|
|
|
|
|
|
}
|
|
|
|
|
|
packaging {
|
|
|
|
|
|
resources {
|
|
|
|
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-09-18 17:03:26 +08:00
|
|
|
|
|
2024-06-22 04:25:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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.android)
|
|
|
|
|
|
implementation(libs.androidx.navigation.compose)
|
2024-08-11 17:15:17 +08:00
|
|
|
|
implementation(libs.androidx.paging.compose)
|
2024-06-22 04:25:20 +08:00
|
|
|
|
implementation(libs.androidx.paging.runtime)
|
2024-07-12 01:36:59 +08:00
|
|
|
|
implementation(libs.maps.compose)
|
|
|
|
|
|
implementation(libs.accompanist.systemuicontroller)
|
|
|
|
|
|
implementation(libs.androidx.media3.exoplayer) // 核心播放器
|
|
|
|
|
|
implementation(libs.androidx.media3.ui) // UI组件(可选)
|
|
|
|
|
|
implementation(libs.androidx.media3.session)
|
2024-07-12 04:36:03 +08:00
|
|
|
|
implementation(libs.androidx.activity.ktx)
|
2024-08-23 18:31:14 +08:00
|
|
|
|
implementation(libs.androidx.lifecycle.common.jvm)
|
|
|
|
|
|
implementation(libs.googleid)
|
2024-09-05 22:04:41 +08:00
|
|
|
|
implementation(libs.identity.credential)
|
|
|
|
|
|
implementation(libs.androidx.lifecycle.process)
|
2024-06-22 04:25:20 +08:00
|
|
|
|
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)
|
2024-08-11 17:15:17 +08:00
|
|
|
|
implementation(libs.places)
|
2024-07-20 16:06:37 +08:00
|
|
|
|
implementation(libs.androidx.animation)
|
2024-07-28 15:07:08 +08:00
|
|
|
|
implementation("io.coil-kt:coil-compose:2.7.0")
|
|
|
|
|
|
implementation("io.coil-kt:coil:2.7.0")
|
2024-07-29 00:01:09 +08:00
|
|
|
|
implementation("com.google.android.gms:play-services-auth:21.2.0")
|
|
|
|
|
|
implementation("io.github.serpro69:kotlin-faker:2.0.0-rc.5")
|
2024-07-30 15:49:59 +08:00
|
|
|
|
implementation("androidx.compose.material:material:1.6.8")
|
2024-08-11 17:15:17 +08:00
|
|
|
|
implementation("net.engawapg.lib:zoomable:1.6.1")
|
|
|
|
|
|
implementation("com.squareup.retrofit2:retrofit:2.11.0")
|
|
|
|
|
|
implementation("com.squareup.retrofit2:converter-gson:2.11.0")
|
2024-08-23 18:31:14 +08:00
|
|
|
|
implementation("androidx.credentials:credentials:1.2.2")
|
|
|
|
|
|
implementation("androidx.credentials:credentials-play-services-auth:1.2.2")
|
2024-08-31 23:49:15 +08:00
|
|
|
|
implementation("com.auth0.android:jwtdecode:2.0.2")
|
2024-09-01 16:59:11 +08:00
|
|
|
|
|
|
|
|
|
|
implementation(platform("com.google.firebase:firebase-bom:33.2.0"))
|
|
|
|
|
|
implementation("com.google.firebase:firebase-crashlytics")
|
|
|
|
|
|
implementation("com.google.firebase:firebase-analytics")
|
|
|
|
|
|
implementation("com.google.firebase:firebase-perf")
|
2024-09-05 22:04:41 +08:00
|
|
|
|
implementation("com.google.firebase:firebase-messaging-ktx")
|
2024-09-18 17:03:26 +08:00
|
|
|
|
implementation ("cn.jiguang.sdk:jpush:5.4.0") // 必选,此处以JPush 5.4.0 版本为例,注意:5.0.0 版本
|
2024-08-11 17:15:17 +08:00
|
|
|
|
}
|
2024-07-20 16:06:37 +08:00
|
|
|
|
|