mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
chore: migrate build script to kts
This commit is contained in:
35
android/settings.gradle.kts
Normal file
35
android/settings.gradle.kts
Normal file
@@ -0,0 +1,35 @@
|
||||
pluginManagement {
|
||||
val properties1 =java.util.Properties()
|
||||
java.io.FileInputStream("local.properties").use {
|
||||
properties1.load(it)
|
||||
}
|
||||
val flutterSdkPath = properties1.getProperty("flutter.sdk")
|
||||
assert(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
|
||||
|
||||
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id ("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
||||
id ("com.android.application") version "7.3.0" apply false
|
||||
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")
|
||||
Reference in New Issue
Block a user