Skip to content

Commit fe45679

Browse files
committed
Exclude React Native source map when building the app
1 parent 57cc01c commit fe45679

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WordPress/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,6 @@ android {
286286
exclude '**/libjscexecutor.so'
287287
exclude '**/libfabricjni.so'
288288

289-
// Exclude React Native's JavaScript source map
290-
exclude '**/*.bundle.map'
291-
292289
// Avoid React Native's JNI duplicated classes
293290
pickFirst '**/libc++_shared.so'
294291
pickFirst '**/libfbjni.so'
@@ -732,6 +729,9 @@ android {
732729
into("${buildDir}/react-native-bundle-source-map")
733730
include("*.bundle", "*.bundle.map")
734731
}
732+
733+
// Delete source maps
734+
delete(fileTree(dir: outputDir, includes: ['**/*.bundle.map']))
735735
}
736736
}
737737
}

0 commit comments

Comments
 (0)