File tree Expand file tree Collapse file tree
build/project-template-gradle Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ def nodeModulesDir = "../../node_modules/"
4040def libDir = " ../../lib/Android/"
4141def pluginNames = new ArrayList<String > ()
4242def configDir = file(configurationsDir)
43+ def firstApplicationBuildType = " "
4344
4445def compiteCompileSdkVersion () {
4546 if (project. hasProperty(" compileSdk" )) {
@@ -127,6 +128,10 @@ android {
127128
128129 applicationVariants. all { variant ->
129130 renameResultApks(variant)
131+
132+ if (firstApplicationBuildType == " " ) {
133+ firstApplicationBuildType = variant. buildType. name;
134+ }
130135
131136 def mergeAssetsTask = variant. dex
132137 if (project. hasProperty(" runSBGenerator" )) {
@@ -377,7 +382,7 @@ task copyMetadata(type: Copy) {
377382 }
378383
379384 from " metadata/output"
380- into " build/intermediates/assets/debug /metadata"
385+ into " build/intermediates/assets/$f irstApplicationBuildType /metadata"
381386}
382387
383388
You can’t perform that action at this time.
0 commit comments