79 lines
2.6 KiB
Plaintext
79 lines
2.6 KiB
Plaintext
import java.util.Date
|
|
import java.text.SimpleDateFormat
|
|
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("io.objectbox")
|
|
// id("com.google.gms.google-services")
|
|
// id("com.google.firebase.crashlytics")
|
|
}
|
|
val timestamp = SimpleDateFormat("MM_dd_HH_mm").format(Date())
|
|
android {
|
|
namespace = "com.free.video.wallpaper"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
//com.free.video.wallpaper
|
|
applicationId = "com.free.video.wallpaper"
|
|
minSdk = 23
|
|
targetSdk = 34
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
setProperty(
|
|
"archivesBaseName",
|
|
"Video 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_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
buildFeatures {
|
|
viewBinding = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation("androidx.appcompat:appcompat:1.7.0")
|
|
implementation("com.google.android.material:material:1.12.0")
|
|
implementation("androidx.constraintlayout:constraintlayout:2.2.0")
|
|
testImplementation("junit:junit:4.13.2")
|
|
androidTestImplementation("androidx.test.ext:junit:1.2.1")
|
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1")
|
|
|
|
implementation ("androidx.paging:paging-runtime:3.3.5")
|
|
implementation ("androidx.paging:paging-runtime-ktx:3.3.5") // 包含 Kotlin 扩展
|
|
implementation ("androidx.lifecycle:lifecycle-livedata-ktx:2.6.0") // LiveData 相关
|
|
implementation ("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.0")
|
|
|
|
implementation ("com.google.code.gson:gson:2.10.1")
|
|
implementation("com.github.bumptech.glide:glide:4.16.0")
|
|
|
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
|
implementation("io.reactivex.rxjava2:rxjava:2.2.21")
|
|
implementation("io.reactivex.rxjava2:rxandroid:2.1.1")
|
|
implementation("com.squareup.retrofit2:adapter-rxjava2:2.9.0")
|
|
implementation("com.squareup.okhttp3:logging-interceptor:4.11.0")
|
|
|
|
// implementation ("com.google.android.exoplayer:exoplayer:2.19.1")
|
|
implementation("androidx.media3:media3-exoplayer:1.4.1")
|
|
implementation ("androidx.media3:media3-ui:1.4.1")
|
|
implementation ("androidx.media3:media3-exoplayer-dash:1.4.1")
|
|
|
|
|
|
} |