I am looking to generate a second debug.apk in a different file location within the project path. Is it possible to create a second file path location for the .apk build within gradle?
The current build path is:
C:\..\app\build\outputs\apk\debug\debug.apk
I would like to create a second apk location after the build, for example:
C:\..\app\debug_apk\debug.apk
I am currently changing the names of the output files in gradle with:
applicationVariants.all { variant ->
variant.outputs.all { output ->
def appVersionName = "company_name_${versionName}"
switch (buildType.name) {
case "debug": {
outputFileName = "${appVersionName}_debug.apk"
break
}
case "release": {
outputFileName = "${appVersionName}_release.apk"
break
}
}
}
}