style: clean up code

This commit is contained in:
PeanutMelonSeedBigAlmond
2024-05-24 22:59:30 +08:00
parent b4087d4bcb
commit 31d59faecb
3 changed files with 2 additions and 26 deletions

View File

@@ -37,7 +37,8 @@ android {
signingConfigs {
maybeCreate("release").apply {
val keystoreFile = File("keystore.jks").also { if (!it.exists()) return@apply }
val keystoreFile = File("keystore.jks")
if (!keystoreFile.exists()) return@apply
val keyAliasEnv = System.getenv("SIGNING_KEY_ALIAS") ?: return@apply
val keystorePasswordEnv = System.getenv("SIGNING_STORE_PASSWORD") ?: return@apply
val keyPasswordEnv = System.getenv("SIGNING_STORE_PASSWORD") ?: return@apply
@@ -65,7 +66,6 @@ flutter {
}
dependencies {
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10")
implementation("com.github.DylanCaiCoding:MMKV-KTX:1.2.16")
implementation("androidx.documentfile:documentfile:1.0.1")
implementation("org.greenrobot:eventbus:3.3.1")

View File

@@ -1,15 +1,3 @@
//buildscript {
// repositories {
// google()
// mavenCentral()
// }
//
// dependencies {
// classpath("com.android.tools.build:gradle:7.3.0")
// classpath ("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10")
// }
//}
allprojects {
repositories {
google()

View File

@@ -20,16 +20,4 @@ plugins {
id ("org.jetbrains.kotlin.android") version "1.7.10" apply false
}
//val localPropertiesFile = File(rootProject.projectDir, "local.properties")
//val properties = Properties()
//
//assert(localPropertiesFile.exists())
//localPropertiesFile.reader(Charset.forName("UTF-8")).use { reader -> properties.load(reader) }
//
//val flutterSdkPath = properties.getProperty("flutter.sdk")
//assert(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
//apply {
// from("$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle")
//}
include(":app")