Skip to content

Commit bcee3f4

Browse files
tjzeltomekzaw
andauthored
chore: patch RNGP to enable Android Studio Clean Project (#8683)
## Summary See - facebook/react-native#54660 ## Test plan `Fabric Example -> Android Studio -> Build -> Clean Project` works now --------- Co-authored-by: Tomasz Zawadzki <[email protected]>
1 parent 9895af6 commit bcee3f4

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt b/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt
2+
index 890e61c007d5b3e0a9a69d37ef10e8aa3ce5c6b6..91acd7b2930fedb4eca2461ba99287721ca1f38f 100644
3+
--- a/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt
4+
+++ b/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt
5+
@@ -80,7 +80,9 @@ class ReactPlugin : Plugin<Project> {
6+
configureRepositories(project)
7+
}
8+
9+
- configureReactNativeNdk(project, extension)
10+
+ if (!project.gradle.startParameter.taskNames.any { it.contains("clean") }) {
11+
+ configureReactNativeNdk(project, extension)
12+
+ }
13+
configureBuildConfigFieldsForApp(project, extension)
14+
configureDevServerLocation(project)
15+
configureBackwardCompatibilityReactMap(project)

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,8 @@
7070
"react-native-builder-bob": "0.40.13",
7171
"shelljs": "0.10.0",
7272
"typescript": "5.8.3"
73+
},
74+
"resolutions": {
75+
"@react-native/gradle-plugin@npm:0.82.0": "patch:@react-native/gradle-plugin@npm%3A0.82.0#~/.yarn/patches/@react-native-gradle-plugin-npm-0.82.0-10aedc0588.patch"
7376
}
7477
}

yarn.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7072,6 +7072,13 @@ __metadata:
70727072
languageName: node
70737073
linkType: hard
70747074

7075+
"@react-native/gradle-plugin@patch:@react-native/gradle-plugin@npm%3A0.82.0#~/.yarn/patches/@react-native-gradle-plugin-npm-0.82.0-10aedc0588.patch":
7076+
version: 0.82.0
7077+
resolution: "@react-native/gradle-plugin@patch:@react-native/gradle-plugin@npm%3A0.82.0#~/.yarn/patches/@react-native-gradle-plugin-npm-0.82.0-10aedc0588.patch::version=0.82.0&hash=5abe05"
7078+
checksum: 10/3686a3a7bc356b721c88c63f7415491a51e4c7ab8e916bf47c4e73085a832d0806d7893801d6cbe51ce4ae3559b8cb555132f6f11a8dfa634d1c250bc2797b0b
7079+
languageName: node
7080+
linkType: hard
7081+
70757082
"@react-native/js-polyfills@npm:0.79.6":
70767083
version: 0.79.6
70777084
resolution: "@react-native/js-polyfills@npm:0.79.6"

0 commit comments

Comments
 (0)