68 lines
1.9 KiB
Plaintext
68 lines
1.9 KiB
Plaintext
import java.util.Date
|
|
import java.text.SimpleDateFormat
|
|
plugins {
|
|
alias(libs.plugins.android.application)
|
|
id ("org.jetbrains.kotlin.android")
|
|
kotlin("kapt")
|
|
|
|
}
|
|
val timestamp = SimpleDateFormat("MM_dd_HH_mm").format(Date())
|
|
android {
|
|
namespace = "com.haven.wallpapers"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "com.haven.photo.wallpapers"
|
|
minSdk = 23
|
|
//noinspection OldTargetApi
|
|
targetSdk = 34
|
|
versionCode = 2
|
|
versionName = "1.0.1"
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
setProperty("archivesBaseName", "Haven Wallpapers_V" + versionName + "(${versionCode})_$timestamp")
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
buildFeatures {
|
|
viewBinding = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
//noinspection UseTomlInstead
|
|
kapt( "androidx.room:room-compiler:2.6.1")
|
|
implementation("androidx.room:room-ktx:2.6.1")
|
|
androidTestImplementation("androidx.room:room-testing:2.6.1")
|
|
//noinspection GradleDependency
|
|
implementation("androidx.viewpager2:viewpager2:1.0.0")
|
|
implementation("com.github.bumptech.glide:glide:4.16.0")
|
|
implementation("com.google.code.gson:gson:2.10.1")
|
|
implementation(libs.appcompat)
|
|
implementation(libs.material)
|
|
implementation(libs.activity)
|
|
implementation(libs.constraintlayout)
|
|
testImplementation(libs.junit)
|
|
androidTestImplementation(libs.ext.junit)
|
|
androidTestImplementation(libs.espresso.core)
|
|
implementation ("jp.wasabeef:glide-transformations:4.3.0")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |