Skip to content

Instantly share code, notes, and snippets.

@truongsinh
Last active December 25, 2019 01:55
Show Gist options
  • Save truongsinh/c71bb008b3dbea1d9d0e3bac0125f4bb to your computer and use it in GitHub Desktop.
Save truongsinh/c71bb008b3dbea1d9d0e3bac0125f4bb to your computer and use it in GitHub Desktop.
step 3
diff --git a/app/build.gradle b/app/build.gradle
index d1b7792..dd96f56 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -47,3 +47,15 @@ dependencies {
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
}
+
+
+// known bug https://github.com/flutter/flutter/issues/30916
+android.buildTypes.all{ theBuildType ->
+ android.productFlavors.all { theProductFlavor ->
+ tasks.whenTaskAdded { theTask ->
+ if (theTask.name == "merge${theProductFlavor.name.capitalize()}${theBuildType.name.capitalize()}Assets") {
+ theTask.dependsOn ":flutter:copyFlutterAssets${theBuildType.name.capitalize()}"
+ }
+ }
+ }
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment