From 49e1f5142220dc080c2ec4a38cf3dbcc16ee6e5e Mon Sep 17 00:00:00 2001 From: Fabio Date: Mon, 22 Mar 2021 14:01:43 -0300 Subject: [PATCH] android: make sure to copy resources.ap_ after the build is finished --- TotalCrossVM/android/app/build.gradle | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/TotalCrossVM/android/app/build.gradle b/TotalCrossVM/android/app/build.gradle index b7791552f..97e2b73da 100644 --- a/TotalCrossVM/android/app/build.gradle +++ b/TotalCrossVM/android/app/build.gradle @@ -92,14 +92,14 @@ android { into "${rootDir}/../../TotalCrossSDK/dist/vm/android" rename { 'TotalCross.apk' } } + copy { + from fileTree('build/intermediates/processed_res/' + variant.name +'/out').files + into "${rootDir}/../../TotalCrossSDK/etc/launchers/android" + include 'resources-' + variant.name + '.ap_' + rename { 'resources.ap_' } + } } } - copy { - from fileTree('build/intermediates/processed_res/' + variant.name +'/out').files - into '${rootDir}/../../TotalCrossSDK/etc/launchers/android' - include 'resources-' + variant.name + '.ap_' - rename { 'resources.ap_' } - } } else { variant.outputs.each { output -> def outputFile = output.outputFile