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.
		
		
		
		
		
			
		
			
				
	
	
		
			40 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Groovy
		
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.5 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()
 | |
|         maven { url 'https://developer.huawei.com/repo/' }
 | |
|     }
 | |
|     resolutionStrategy {
 | |
|         eachPlugin {
 | |
|             if (requested.id.id == "com.huawei.agconnect") {
 | |
|                 //https://flutter.dev/go/flutter-gradle-plugin-apply
 | |
|                 //https://forums.developer.huawei.com/forumPortal/en/topic/0201148914110187023
 | |
|                 //https://stackoverflow.com/questions/78339717/huawei-agcp-plugin-cannot-be-applied
 | |
|                 useModule("com.huawei.agconnect:agcp:1.9.1.304")
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 | |
| 
 | |
| plugins {
 | |
|     id 'com.android.application' version "8.3.2" apply false
 | |
|     id 'dev.flutter.flutter-plugin-loader' version "1.0.0" // apply true
 | |
|     id "org.jetbrains.kotlin.android" version "2.0.0" apply false
 | |
|     id "com.google.gms.google-services" version "4.4.0" apply false
 | |
| //    id "com.google.gms.google-services" version "4.4.0" apply false
 | |
|      id "com.huawei.agconnect" version "1.9.1.304" apply false
 | |
| //     classpath 'com.huawei.agconnect:agcp:1.8.0.300'
 | |
| }
 | |
| 
 | |
| include ":app" |