@@ -55,13 +55,13 @@ abstract class CargoKitBuildTask extends DefaultTask {
5555 def manifestDir = Paths . get(project. buildscript. sourceFile. parent, project. cargokit. manifestDir)
5656
5757 def rootProjectDir = project. rootProject. projectDir
58-
58+
5959 if (! Os . isFamily(Os . FAMILY_WINDOWS )) {
6060 project. exec {
6161 commandLine ' chmod' , ' +x' , path
6262 }
6363 }
64-
64+
6565 project. exec {
6666 executable path
6767 args " build-gradle"
@@ -92,7 +92,7 @@ class CargoKitPlugin implements Plugin<Project> {
9292 private Plugin _findFlutterPlugin (Map projects ) {
9393 for (project in projects) {
9494 for (plugin in project. value. getPlugins()) {
95- if (plugin. class. name == " FlutterPlugin" ) {
95+ if (plugin. class. name == " com.flutter.gradle. FlutterPlugin" ) {
9696 return plugin;
9797 }
9898 }
@@ -116,7 +116,7 @@ class CargoKitPlugin implements Plugin<Project> {
116116 }
117117
118118 def cargoBuildDir = " ${ project.buildDir} /build"
119-
119+
120120 // Determine if the project is an application or library
121121 def isApplication = plugin. project. plugins. hasPlugin(' com.android.application' )
122122 def variants = isApplication ? plugin. project. android. applicationVariants : plugin. project. android. libraryVariants
@@ -129,7 +129,7 @@ class CargoKitPlugin implements Plugin<Project> {
129129 def jniLibs = project. android. sourceSets. maybeCreate(buildType). jniLibs;
130130 jniLibs. srcDir(new File (cargoOutputDir))
131131
132- def platforms = plugin . getTargetPlatforms(). collect()
132+ def platforms = com.flutter.gradle.FlutterPluginUtils . getTargetPlatforms(project ). collect()
133133
134134 // Same thing addFlutterDependencies does in flutter.gradle
135135 if (buildType == " debug" ) {
0 commit comments