upgraded the sdk to 35
						commit
						e50d1f70b2
					
				| @ -1,4 +1,4 @@ | |||||||
| package com.mohem_flutter_app | package hmg.cloudSolutions.mohem | ||||||
| 
 | 
 | ||||||
| //import io.flutter.embedding.android.FlutterActivity | //import io.flutter.embedding.android.FlutterActivity | ||||||
| // | // | ||||||
| @ -1,6 +1,6 @@ | |||||||
| #Thu Mar 06 11:40:30 AST 2025 | #Wed Jul 09 13:30:59 AST 2025 | ||||||
| distributionBase=GRADLE_USER_HOME | distributionBase=GRADLE_USER_HOME | ||||||
| distributionPath=wrapper/dists | distributionPath=wrapper/dists | ||||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip | distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||||||
| zipStoreBase=GRADLE_USER_HOME | zipStoreBase=GRADLE_USER_HOME | ||||||
| zipStorePath=wrapper/dists | zipStorePath=wrapper/dists | ||||||
|  | |||||||
| @ -1,11 +1,40 @@ | |||||||
| include ':app' | 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 | ||||||
|  |     }() | ||||||
| 
 | 
 | ||||||
| def localPropertiesFile = new File(rootProject.projectDir, "local.properties") |     includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") | ||||||
| def properties = new Properties() |  | ||||||
| 
 | 
 | ||||||
| assert localPropertiesFile.exists() |     repositories { | ||||||
| localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } |         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") | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| def flutterSdkPath = properties.getProperty("flutter.sdk") | plugins { | ||||||
| assert flutterSdkPath != null, "flutter.sdk not set in local.properties" |     id 'com.android.application' version "8.3.2" apply false | ||||||
| apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" |     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" | ||||||
					Loading…
					
					
				
		Reference in New Issue