Merge pull request #90802 from m4gr3d/fix_android_gradle_build_copy_rename_permissions_error
Fix issue causing the `copyAndRename*` task to fail on occasions on Windows machines
This commit is contained in:
commit
6cf03a5bbb
|
@ -205,36 +205,66 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
task copyAndRenameDebugApk(type: Copy) {
|
task copyAndRenameDebugApk(type: Copy) {
|
||||||
|
// The 'doNotTrackState' is added to disable gradle's up-to-date checks for output files
|
||||||
|
// and directories. Otherwise this check may cause permissions access failures on Windows
|
||||||
|
// machines.
|
||||||
|
doNotTrackState("No need for up-to-date checks for the copy-and-rename operation")
|
||||||
|
|
||||||
from "$buildDir/outputs/apk/debug/android_debug.apk"
|
from "$buildDir/outputs/apk/debug/android_debug.apk"
|
||||||
into getExportPath()
|
into getExportPath()
|
||||||
rename "android_debug.apk", getExportFilename()
|
rename "android_debug.apk", getExportFilename()
|
||||||
}
|
}
|
||||||
|
|
||||||
task copyAndRenameDevApk(type: Copy) {
|
task copyAndRenameDevApk(type: Copy) {
|
||||||
|
// The 'doNotTrackState' is added to disable gradle's up-to-date checks for output files
|
||||||
|
// and directories. Otherwise this check may cause permissions access failures on Windows
|
||||||
|
// machines.
|
||||||
|
doNotTrackState("No need for up-to-date checks for the copy-and-rename operation")
|
||||||
|
|
||||||
from "$buildDir/outputs/apk/dev/android_dev.apk"
|
from "$buildDir/outputs/apk/dev/android_dev.apk"
|
||||||
into getExportPath()
|
into getExportPath()
|
||||||
rename "android_dev.apk", getExportFilename()
|
rename "android_dev.apk", getExportFilename()
|
||||||
}
|
}
|
||||||
|
|
||||||
task copyAndRenameReleaseApk(type: Copy) {
|
task copyAndRenameReleaseApk(type: Copy) {
|
||||||
|
// The 'doNotTrackState' is added to disable gradle's up-to-date checks for output files
|
||||||
|
// and directories. Otherwise this check may cause permissions access failures on Windows
|
||||||
|
// machines.
|
||||||
|
doNotTrackState("No need for up-to-date checks for the copy-and-rename operation")
|
||||||
|
|
||||||
from "$buildDir/outputs/apk/release/android_release.apk"
|
from "$buildDir/outputs/apk/release/android_release.apk"
|
||||||
into getExportPath()
|
into getExportPath()
|
||||||
rename "android_release.apk", getExportFilename()
|
rename "android_release.apk", getExportFilename()
|
||||||
}
|
}
|
||||||
|
|
||||||
task copyAndRenameDebugAab(type: Copy) {
|
task copyAndRenameDebugAab(type: Copy) {
|
||||||
|
// The 'doNotTrackState' is added to disable gradle's up-to-date checks for output files
|
||||||
|
// and directories. Otherwise this check may cause permissions access failures on Windows
|
||||||
|
// machines.
|
||||||
|
doNotTrackState("No need for up-to-date checks for the copy-and-rename operation")
|
||||||
|
|
||||||
from "$buildDir/outputs/bundle/debug/build-debug.aab"
|
from "$buildDir/outputs/bundle/debug/build-debug.aab"
|
||||||
into getExportPath()
|
into getExportPath()
|
||||||
rename "build-debug.aab", getExportFilename()
|
rename "build-debug.aab", getExportFilename()
|
||||||
}
|
}
|
||||||
|
|
||||||
task copyAndRenameDevAab(type: Copy) {
|
task copyAndRenameDevAab(type: Copy) {
|
||||||
|
// The 'doNotTrackState' is added to disable gradle's up-to-date checks for output files
|
||||||
|
// and directories. Otherwise this check may cause permissions access failures on Windows
|
||||||
|
// machines.
|
||||||
|
doNotTrackState("No need for up-to-date checks for the copy-and-rename operation")
|
||||||
|
|
||||||
from "$buildDir/outputs/bundle/dev/build-dev.aab"
|
from "$buildDir/outputs/bundle/dev/build-dev.aab"
|
||||||
into getExportPath()
|
into getExportPath()
|
||||||
rename "build-dev.aab", getExportFilename()
|
rename "build-dev.aab", getExportFilename()
|
||||||
}
|
}
|
||||||
|
|
||||||
task copyAndRenameReleaseAab(type: Copy) {
|
task copyAndRenameReleaseAab(type: Copy) {
|
||||||
|
// The 'doNotTrackState' is added to disable gradle's up-to-date checks for output files
|
||||||
|
// and directories. Otherwise this check may cause permissions access failures on Windows
|
||||||
|
// machines.
|
||||||
|
doNotTrackState("No need for up-to-date checks for the copy-and-rename operation")
|
||||||
|
|
||||||
from "$buildDir/outputs/bundle/release/build-release.aab"
|
from "$buildDir/outputs/bundle/release/build-release.aab"
|
||||||
into getExportPath()
|
into getExportPath()
|
||||||
rename "build-release.aab", getExportFilename()
|
rename "build-release.aab", getExportFilename()
|
||||||
|
|
Loading…
Reference in New Issue