Skip to content

Commit bba4d06

Browse files
committed
feat: Also make it work if using a different bundleAssetName
1 parent 9c3e441 commit bba4d06

File tree

1 file changed

+2
-1
lines changed
  • packages/gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react

1 file changed

+2
-1
lines changed

packages/gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ class ReactPlugin : Plugin<Project> {
119119
) {
120120
if (!reactExtension.enableBundleCompression) {
121121
// Bundle should not be compressed; add it to noCompress blacklist.
122+
val bundleFileExtension = reactExtension.bundleAssetName.substringAfterLast('.', "")
122123
val android = project.extensions.getByType(ApplicationExtension::class.java)
123-
android.androidResources.noCompress.add("bundle")
124+
android.androidResources.noCompress.add(bundleFileExtension)
124125
}
125126
}
126127

0 commit comments

Comments
 (0)