You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.5 KiB
Kotlin
50 lines
1.5 KiB
Kotlin
pluginManagement {
|
|
val flutterSdkPath = run {
|
|
val properties = java.util.Properties()
|
|
file("local.properties").inputStream().use { properties.load(it) }
|
|
val flutterSdkPath = properties.getProperty("flutter.sdk")
|
|
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
|
|
flutterSdkPath
|
|
}
|
|
|
|
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
dependencyResolutionManagement {
|
|
// repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
|
|
repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven {
|
|
url = uri("https://storage.googleapis.com/download.flutter.io")
|
|
}
|
|
// Huawei HMS repo
|
|
maven {
|
|
url = uri("https://developer.huawei.com/repo/")
|
|
}
|
|
// Mapbox repo
|
|
maven {
|
|
url = uri("https://api.mapbox.com/downloads/v2/releases/maven")
|
|
}
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
|
// id("com.android.application") version "8.9.3" apply false
|
|
// START: FlutterFire Configuration
|
|
id("com.google.gms.google-services") version("4.4.1") apply false
|
|
// END: FlutterFire Configuration
|
|
id("com.android.application") version "8.11.1" apply false
|
|
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
|
|
}
|
|
|
|
include(":app")
|