Skip to content

Commit 6c38d48

Browse files
author
Mihail Slavchev
committed
remove hard-coded 'debug' build type
1 parent 9836911 commit 6c38d48

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

build/project-template-gradle/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def nodeModulesDir = "../../node_modules/"
4040
def libDir = "../../lib/Android/"
4141
def pluginNames = new ArrayList<String>()
4242
def configDir = file(configurationsDir)
43+
def firstApplicationBuildType = ""
4344

4445
def 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/$firstApplicationBuildType/metadata"
381386
}
382387

383388

0 commit comments

Comments
 (0)