File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
dargon2_flutter/dargon2_flutter/example/android Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,17 @@ localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
9
9
def flutterSdkPath = properties. getProperty(" flutter.sdk" )
10
10
assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
11
11
apply from : " $flutterSdkPath /packages/flutter_tools/gradle/app_plugin_loader.gradle"
12
+
13
+ def flutterProjectRoot = rootProject. projectDir. parentFile. toPath()
14
+
15
+ def plugins = new Properties ()
16
+ def pluginsFile = new File (flutterProjectRoot. toFile(), ' .flutter-plugins' )
17
+ if (pluginsFile. exists()) {
18
+ pluginsFile. withReader(' UTF-8' ) { reader -> plugins. load(reader) }
19
+ }
20
+
21
+ plugins. each { name, path ->
22
+ def pluginDirectory = flutterProjectRoot. resolve(path). resolve(' android' ). toFile()
23
+ include " :$name "
24
+ project(" :$name " ). projectDir = pluginDirectory
25
+ }
You can’t perform that action at this time.
0 commit comments