79 lines
2.4 KiB
Plaintext
79 lines
2.4 KiB
Plaintext
import java.util.Date
|
||
import java.text.SimpleDateFormat
|
||
val timestamp = SimpleDateFormat("MM_dd_HH_mm").format(Date())
|
||
plugins {
|
||
alias(libs.plugins.android.application)
|
||
alias(libs.plugins.kotlin.android)
|
||
id ("kotlin-parcelize")
|
||
id("io.objectbox")
|
||
}
|
||
|
||
android {
|
||
namespace = "com.video.mobile.wallpaper"
|
||
compileSdk = 35
|
||
|
||
defaultConfig {
|
||
applicationId = "com.video.mobile.wallpaper"
|
||
minSdk = 24
|
||
targetSdk = 35
|
||
versionCode = 1
|
||
versionName = "1.0"
|
||
setProperty(
|
||
"archivesBaseName",
|
||
"Dynamic Cartoon Wallpaper_V" + versionName + "(${versionCode})_$timestamp"
|
||
)
|
||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||
}
|
||
|
||
buildTypes {
|
||
release {
|
||
isMinifyEnabled = true
|
||
proguardFiles(
|
||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||
"proguard-rules.pro"
|
||
)
|
||
}
|
||
}
|
||
compileOptions {
|
||
sourceCompatibility = JavaVersion.VERSION_11
|
||
targetCompatibility = JavaVersion.VERSION_11
|
||
}
|
||
kotlinOptions {
|
||
jvmTarget = "11"
|
||
}
|
||
buildFeatures{
|
||
viewBinding = true
|
||
buildConfig = true
|
||
}
|
||
}
|
||
|
||
dependencies {
|
||
|
||
implementation(libs.androidx.core.ktx)
|
||
implementation(libs.androidx.appcompat)
|
||
implementation(libs.material)
|
||
implementation(libs.androidx.activity)
|
||
implementation(libs.androidx.constraintlayout)
|
||
testImplementation(libs.junit)
|
||
androidTestImplementation(libs.androidx.junit)
|
||
androidTestImplementation(libs.androidx.espresso.core)
|
||
|
||
|
||
implementation ("androidx.paging:paging-runtime-ktx:3.3.6")
|
||
|
||
implementation ("com.google.code.gson:gson:2.12.1")
|
||
implementation("com.github.bumptech.glide:glide:4.16.0")
|
||
|
||
// ViewModel + LiveData KTX
|
||
// implementation ("androidx.lifecycle:lifecycle-viewmodel-ktx:2.9.2")
|
||
// implementation ("androidx.lifecycle:lifecycle-livedata-ktx:2.9.2")
|
||
// Fragment KTX(提供 viewModels 扩展)
|
||
implementation ("androidx.fragment:fragment-ktx:1.8.9")
|
||
|
||
implementation("androidx.media3:media3-exoplayer:1.8.0")
|
||
implementation ("androidx.media3:media3-ui:1.8.0")
|
||
|
||
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
||
implementation("com.squareup.retrofit2:adapter-rxjava2:2.9.0")
|
||
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
|
||
} |