Last active
December 25, 2019 01:55
-
-
Save truongsinh/c71bb008b3dbea1d9d0e3bac0125f4bb to your computer and use it in GitHub Desktop.
step 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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