Skip to content

Commit 298ddaf

Browse files
authored
Merge pull request #738 from NativeScript/plamen5kov/fix-abi-split
respect abi versions when such are provided in configuration
2 parents 41800ff + 909680a commit 298ddaf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: build-artifacts/project-template-gradle/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ def renameResultApks (variant) {
8787
def name
8888
variant.outputs.each { output ->
8989
def apkDirectory = output.packageApplication.outputFile.parentFile
90-
def apkNamePrefix = rootProject.name + "-" + variant.buildType.name
90+
def abiName = "";
91+
if(output.getFilter(com.android.build.OutputFile.ABI)) {
92+
abiName = "-" + output.getFilter(com.android.build.OutputFile.ABI);
93+
}
94+
def apkNamePrefix = rootProject.name + "-" + variant.buildType.name + abiName
9195
name = apkNamePrefix + ".apk"
9296
output.packageApplication.outputFile = new File(apkDirectory, name);
9397
}

0 commit comments

Comments
 (0)