2024-11-06 16:47:13 +09:00
|
|
|
import java.text.SimpleDateFormat
|
|
|
|
|
import java.util.Date
|
2024-08-23 11:39:16 +09:00
|
|
|
|
2024-08-12 17:02:52 +09:00
|
|
|
plugins {
|
|
|
|
|
id ("com.android.application")
|
|
|
|
|
id ("kotlin-android")
|
2024-08-23 16:03:43 +09:00
|
|
|
id ("io.realm.kotlin")
|
2024-08-12 17:02:52 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
2024-10-18 16:16:41 +09:00
|
|
|
namespace = "bums.lunatic.launcher"
|
2024-11-13 17:41:40 +09:00
|
|
|
compileSdk = 35
|
2024-08-12 17:02:52 +09:00
|
|
|
|
|
|
|
|
defaultConfig {
|
2024-10-18 16:16:41 +09:00
|
|
|
applicationId = "bums.lunatic.launcher"
|
2024-08-12 17:02:52 +09:00
|
|
|
minSdk = 26
|
|
|
|
|
targetSdk = 34
|
|
|
|
|
versionCode = 38
|
|
|
|
|
versionName = "2.8.2"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
getByName("debug") {
|
|
|
|
|
isMinifyEnabled = false
|
|
|
|
|
isShrinkResources = false
|
|
|
|
|
isDebuggable = true
|
|
|
|
|
applicationIdSuffix = ".debug"
|
|
|
|
|
versionNameSuffix = "-debug"
|
2024-11-06 16:47:13 +09:00
|
|
|
buildConfigField("Long","BuildDateTime", getDateTime().toString().plus("L"))
|
2024-08-23 11:39:16 +09:00
|
|
|
resValue ("string", "app_name", "Bums Launcher Debug")
|
2024-08-12 17:02:52 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getByName("release") {
|
|
|
|
|
isMinifyEnabled = true
|
|
|
|
|
isShrinkResources = true
|
2024-11-06 16:47:13 +09:00
|
|
|
buildConfigField("Long","BuildDateTime", getDateTime().toString().plus("L"))
|
2024-08-12 17:02:52 +09:00
|
|
|
proguardFiles (getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
2024-08-23 11:39:16 +09:00
|
|
|
resValue ("string", "app_name", "Bums Launcher")
|
2024-08-12 17:02:52 +09:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-08-23 11:39:16 +09:00
|
|
|
signingConfigs {
|
|
|
|
|
|
|
|
|
|
getByName("debug") {
|
|
|
|
|
storeFile = file("./bs_debug.keystore")
|
|
|
|
|
storePassword = "android"
|
|
|
|
|
keyAlias = "androiddebugkey"
|
|
|
|
|
keyPassword = "android"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2024-08-12 17:02:52 +09:00
|
|
|
applicationVariants.all {
|
|
|
|
|
if (buildType.name == "release") {
|
|
|
|
|
outputs.all {
|
|
|
|
|
val output = this as? com.android.build.gradle.internal.api.BaseVariantOutputImpl
|
|
|
|
|
if (output?.outputFileName?.endsWith(".apk") == true) {
|
|
|
|
|
output.outputFileName = "${defaultConfig.applicationId}_v${defaultConfig.versionName}.apk"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
|
viewBinding = true
|
2024-10-11 09:34:04 +09:00
|
|
|
dataBinding = true
|
2024-08-12 17:02:52 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
val kotlinVersion: String? by extra
|
2024-08-23 11:39:16 +09:00
|
|
|
implementation ("androidx.appcompat:appcompat:1.7.0")
|
2024-08-12 17:02:52 +09:00
|
|
|
implementation ("androidx.biometric:biometric-ktx:1.2.0-alpha05")
|
|
|
|
|
implementation ("androidx.browser:browser:1.8.0")
|
2024-11-13 17:41:40 +09:00
|
|
|
implementation ("androidx.core:core-ktx:1.15.0")
|
2024-08-12 17:02:52 +09:00
|
|
|
implementation ("androidx.core:core-splashscreen:1.0.1")
|
2024-11-13 17:41:40 +09:00
|
|
|
implementation ("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
|
2024-08-23 11:39:16 +09:00
|
|
|
implementation ("com.google.android.material:material:1.12.0")
|
2024-11-15 16:06:08 +09:00
|
|
|
|
2024-08-12 17:02:52 +09:00
|
|
|
implementation (kotlin("stdlib", version = kotlinVersion))
|
|
|
|
|
implementation ("com.github.cachapa:ExpandableLayout:2.9.2")
|
2024-08-23 11:39:16 +09:00
|
|
|
implementation ("com.squareup.picasso:picasso:2.71828")
|
2024-11-13 17:41:40 +09:00
|
|
|
implementation ("androidx.work:work-runtime:2.10.0")
|
2024-08-23 11:39:16 +09:00
|
|
|
implementation ("com.google.code.gson:gson:2.11.0")
|
2024-08-23 16:03:43 +09:00
|
|
|
implementation ("io.realm.kotlin:library-base:2.1.0")
|
2024-08-27 19:00:43 +09:00
|
|
|
implementation ("org.jsoup:jsoup:1.18.1")
|
2024-09-04 18:18:36 +09:00
|
|
|
implementation ("org.apache.commons:commons-text:1.12.0")
|
2024-09-06 01:04:53 +09:00
|
|
|
implementation("com.squareup.okhttp:okhttp:2.7.5")
|
2024-11-13 17:41:40 +09:00
|
|
|
implementation("com.google.android.gms:play-services-location:21.3.0")
|
2024-09-19 18:08:07 +09:00
|
|
|
implementation("com.google.android.gms:play-services-tasks:18.2.0")
|
2024-09-20 13:55:04 +09:00
|
|
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
2024-11-15 16:06:08 +09:00
|
|
|
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
|
2024-09-20 13:55:04 +09:00
|
|
|
implementation("com.squareup.retrofit2:converter-scalars:2.6.4")
|
2024-11-15 16:06:08 +09:00
|
|
|
implementation("androidx.viewpager2:viewpager2:1.1.0")
|
2024-10-15 18:16:32 +09:00
|
|
|
implementation("com.squareup.picasso:picasso:2.71828")
|
2024-11-11 18:12:06 +09:00
|
|
|
implementation("com.github.delight-im:Android-AdvancedWebView:v3.2.1")
|
|
|
|
|
implementation(project(":library"))
|
2024-11-15 16:06:08 +09:00
|
|
|
implementation(project(":utils"))
|
2024-11-18 17:35:40 +09:00
|
|
|
implementation ("androidx.media:media:1.7.0")
|
2024-10-08 17:58:37 +09:00
|
|
|
// implementation ("me.everything:providers-android:1.0.1")
|
|
|
|
|
// implementation ("me.everything:providers-core:1.0.1")
|
2024-09-11 18:09:16 +09:00
|
|
|
// implementation ("androidx.window:window:1.0.0")
|
|
|
|
|
// implementation("io.github.vaneproject:hanguleditor:1.0.0")
|
2024-08-12 17:02:52 +09:00
|
|
|
}
|
2024-11-06 16:47:13 +09:00
|
|
|
fun getDateTime() = SimpleDateFormat("yyyyMMddHHmm").format(Date()).toLong()
|