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.
62 lines
1.9 KiB
Groovy
62 lines
1.9 KiB
Groovy
pluginManagement {
|
|
def flutterSdkPath = {
|
|
def properties = new Properties()
|
|
file("local.properties").withInputStream { properties.load(it) }
|
|
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
|
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
|
return flutterSdkPath
|
|
}()
|
|
|
|
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
// Add Huawei's Maven repo for plugins
|
|
maven { url 'https://developer.huawei.com/repo/' }
|
|
}
|
|
|
|
dependencyResolutionManagement {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
maven { url 'https://developer.huawei.com/repo/' }
|
|
|
|
}
|
|
}
|
|
|
|
resolutionStrategy {
|
|
eachPlugin {
|
|
if (it.requested.id.getNamespace() == 'com.huawei.agconnect') {
|
|
println ">> ${it.requested.id.id}"
|
|
if (it.requested.id.id == 'com.huawei.agconnect.agcp') {
|
|
it.useModule('com.huawei.agconnect:agcp:1.7.3.302')
|
|
}
|
|
if (it.requested.id.id == 'com.huawei.agconnect.apms') {
|
|
it.useModule('com.huawei.agconnect:agconnect-apms-plugin:1.6.1.300')
|
|
}
|
|
println ">> ${it.target}"
|
|
} else {
|
|
println "> ${it.target}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
|
id "com.android.application" version '8.10.1' apply false
|
|
id("org.jetbrains.kotlin.android") version "2.1.10" apply false
|
|
id("com.google.gms.google-services") version "4.4.2" apply false
|
|
id("com.google.firebase.crashlytics") version "3.0.4" apply false
|
|
|
|
id ("com.huawei.agconnect.agcp") version "1.7.3.302" apply false
|
|
id ("com.huawei.agconnect.apms") version "1.6.1.300" apply false
|
|
}
|
|
|
|
|
|
|
|
include ":app"
|