Skip to content

Commit

Permalink
Added asset removal before gradle merges assets
Browse files Browse the repository at this point in the history
  • Loading branch information
bestander authored May 7, 2024
1 parent d093b33 commit bb08026
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions android/codepush.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ gradle.projectsEvaluated {
if (reactBundleTask) {
jsBundleDir = reactBundleTask.property('jsBundleDir').asFile.get()
resourcesDir = reactBundleTask.property('resourcesDir').asFile.get()

// mitigates Resource and asset merger: Duplicate resources error
project.delete(files("${jsBundleDir}"))

jsBundleDir.mkdirs()
resourcesDir.mkdirs()
Expand Down

0 comments on commit bb08026

Please sign in to comment.