Skip to content

Commit

Permalink
Update gradle settings
Browse files Browse the repository at this point in the history
tommy351 committed Sep 23, 2020

Verified

This commit was signed with the committer’s verified signature. The key has expired.
mjcarroll Michael Carroll
1 parent 039360d commit ee262ea
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -13,18 +13,3 @@ localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"

// https://github.com/flutter/flutter/issues/57777#issuecomment-632609059
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()

def plugins = new Properties()
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
if (pluginsFile.exists()) {
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
}

plugins.each { name, path ->
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
include ":$name"
project(":$name").projectDir = pluginDirectory
}

0 comments on commit ee262ea

Please sign in to comment.