Skip to content

Commit

Permalink
Exclude React Native source map when building the app
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Mar 12, 2024
1 parent 57cc01c commit fe45679
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WordPress/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,6 @@ android {
exclude '**/libjscexecutor.so'
exclude '**/libfabricjni.so'

// Exclude React Native's JavaScript source map
exclude '**/*.bundle.map'

// Avoid React Native's JNI duplicated classes
pickFirst '**/libc++_shared.so'
pickFirst '**/libfbjni.so'
Expand Down Expand Up @@ -732,6 +729,9 @@ android {
into("${buildDir}/react-native-bundle-source-map")
include("*.bundle", "*.bundle.map")
}

// Delete source maps
delete(fileTree(dir: outputDir, includes: ['**/*.bundle.map']))
}
}
}
Expand Down

0 comments on commit fe45679

Please sign in to comment.