Skip to content

Commit

Permalink
Added asset removal before gradle merges assets (#2697)
Browse files Browse the repository at this point in the history
Fixes #2497

Co-authored-by: Djordje Dimitrijev <[email protected]>
  • Loading branch information
bestander and DordeDimitrijev authored Jul 5, 2024
1 parent 41eebe3 commit 79b5f02
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 79b5f02

Please sign in to comment.