Skip to content

Commit c5202b7

Browse files
committed
Revert "Add RNRepo to ci builds (#4141)"
This reverts commit 451eb50.
1 parent 451eb50 commit c5202b7

10 files changed

Lines changed: 2 additions & 128 deletions

File tree

.github/workflows/android-build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
- .github/workflows/android-build.yml
77
- packages/react-native-gesture-handler/android/**
88
- apps/basic-example/android/**
9-
- apps/basic-example/package.json
10-
- rnrepo.config.json
11-
- yarn.lock
129
push:
1310
branches:
1411
- main
@@ -48,4 +45,4 @@ jobs:
4845

4946
- name: Build app
5047
working-directory: ${{ matrix.working-directory }}/android
51-
run: ./gradlew :app:assembleDebug --console=plain -PreactNativeArchitectures=arm64-v8a
48+
run: ./gradlew assembleDebug --console=plain -PreactNativeArchitectures=arm64-v8a

.github/workflows/ios-build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
- packages/react-native-gesture-handler/RNGestureHandler.podspec
88
- packages/react-native-gesture-handler/apple/**
99
- apps/basic-example/ios/**
10-
- apps/basic-example/package.json
11-
- rnrepo.config.json
12-
- yarn.lock
1310
push:
1411
branches:
1512
- main

apps/basic-example/android/app/build.gradle

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,6 @@ apply plugin: "com.android.application"
22
apply plugin: "org.jetbrains.kotlin.android"
33
apply plugin: "com.facebook.react"
44

5-
def isCIEnabled() {
6-
return ["1", "true"].contains(System.getenv("CI")?.toLowerCase())
7-
}
8-
9-
def isRNRepoEnabled() {
10-
// return false // Uncomment to disable RNRepo locally
11-
return System.getenv("DISABLE_RNREPO") == null
12-
}
13-
14-
// Use RNRepo in CI builds.
15-
// Set DISABLE_RNREPO to any value to disable RNRepo.
16-
if (isCIEnabled() && isRNRepoEnabled()) {
17-
apply plugin: "org.rnrepo.tools.prebuilds-plugin"
18-
}
19-
205
/**
216
* This is the configuration block to customize your React Native Android app.
227
* By default you don't need to apply any configuration, just uncomment the lines you need.

apps/basic-example/android/build.gradle

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,10 @@ buildscript {
1212
google()
1313
mavenCentral()
1414
}
15-
// RNRepo plugin classpath for CI builds (plugin applied in app/build.gradle).
16-
// To disable RNRepo support, set DISABLE_RNREPO environment variable to ANY value.
17-
def rnrepoClasspath = {
18-
def rnrepoDir = new File(
19-
providers.exec {
20-
workingDir(rootDir)
21-
commandLine("node", "--print", "require.resolve('@rnrepo/build-tools/package.json')")
22-
}.standardOutput.asText.get().trim()
23-
).getParentFile().absolutePath
24-
return fileTree(dir: "${rnrepoDir}/gradle-plugin/build/libs", include: ["prebuilds-plugin.jar"])
25-
}
2615
dependencies {
2716
classpath("com.android.tools.build:gradle")
2817
classpath("com.facebook.react:react-native-gradle-plugin")
2918
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
30-
classpath rnrepoClasspath()
3119
}
3220
allprojects {
3321
project.pluginManager.withPlugin("com.facebook.react") {

apps/basic-example/ios/Podfile

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,6 @@ require Pod::Executable.execute_command('node', ['-p',
55
{paths: ["../../../node_modules"]},
66
)', __dir__]).strip
77

8-
def is_ci_enabled?
9-
%w[1 true].include?(ENV['CI'].to_s.downcase)
10-
end
11-
12-
# ENV['DISABLE_RNREPO'] = "1" # Uncomment to disable RNRepo even in CI
13-
def is_rnrepo_enabled?
14-
ENV['DISABLE_RNREPO'].nil?
15-
end
16-
17-
# Use RNRepo in CI builds. Set DISABLE_RNREPO to any value to disable RNRepo.
18-
if is_ci_enabled? && is_rnrepo_enabled?
19-
require Pod::Executable.execute_command('node', ['-p',
20-
'require.resolve(
21-
"@rnrepo/build-tools/cocoapods-plugin/lib/plugin.rb",
22-
{paths: [process.argv[1]]},
23-
)', __dir__]).strip
24-
end
25-
268
require_relative '../../../scripts/clangd-add-xcode-step.rb'
279

2810
ENV['GH_EXAMPLE_APP_NAME'] = 'BasicExample'
@@ -46,9 +28,6 @@ target 'BasicExample' do
4628
)
4729

4830
post_install do |installer|
49-
if is_ci_enabled? && is_rnrepo_enabled?
50-
rnrepo_post_install(installer)
51-
end
5231
react_native_post_install(
5332
installer,
5433
config[:reactNativePath],

apps/basic-example/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"@react-native/jest-preset": "0.85.0",
3636
"@react-native/metro-config": "0.85.0",
3737
"@react-native/typescript-config": "0.85.0",
38-
"@rnrepo/build-tools": "~0.1.3-beta.0",
3938
"@types/jest": "^29.5.13",
4039
"@types/react": "^19.2.0",
4140
"@types/react-test-renderer": "^19.1.0",

apps/expo-example/app.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export default {
4646
],
4747
},
4848
],
49-
"@rnrepo/expo-config-plugin",
5049
],
5150
},
5251
};

apps/expo-example/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
},
3636
"devDependencies": {
3737
"@babel/core": "^7.25.2",
38-
"@rnrepo/expo-config-plugin": "0.3.0-beta.3",
3938
"@types/react": "~19.1.10",
4039
"@types/react-dom": "~19.1.7",
4140
"@types/react-native-web": "^0",

rnrepo.config.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

yarn.lock

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,27 +1844,6 @@ __metadata:
18441844
languageName: node
18451845
linkType: hard
18461846

1847-
"@expo/config-plugins@npm:*":
1848-
version: 55.0.8
1849-
resolution: "@expo/config-plugins@npm:55.0.8"
1850-
dependencies:
1851-
"@expo/config-types": "npm:^55.0.5"
1852-
"@expo/json-file": "npm:~10.0.13"
1853-
"@expo/plist": "npm:^0.5.2"
1854-
"@expo/sdk-runtime-versions": "npm:^1.0.0"
1855-
chalk: "npm:^4.1.2"
1856-
debug: "npm:^4.3.5"
1857-
getenv: "npm:^2.0.0"
1858-
glob: "npm:^13.0.0"
1859-
resolve-from: "npm:^5.0.0"
1860-
semver: "npm:^7.5.4"
1861-
slugify: "npm:^1.6.6"
1862-
xcode: "npm:^3.0.1"
1863-
xml2js: "npm:0.6.0"
1864-
checksum: 10c0/14f15495ea885c295dbb4df6d0c88753099601b109489d8bdb7fd75caa52a47349edde11265fc5af26e48680cf5b54ccccffe7305cacf22542f24519bb13de58
1865-
languageName: node
1866-
linkType: hard
1867-
18681847
"@expo/config-plugins@npm:~54.0.4":
18691848
version: 54.0.4
18701849
resolution: "@expo/config-plugins@npm:54.0.4"
@@ -1887,13 +1866,6 @@ __metadata:
18871866
languageName: node
18881867
linkType: hard
18891868

1890-
"@expo/config-types@npm:*, @expo/config-types@npm:^55.0.5":
1891-
version: 55.0.5
1892-
resolution: "@expo/config-types@npm:55.0.5"
1893-
checksum: 10c0/24ce0481cc465ddd3b53cfdde099ef4e899b1f8fff224a0f249b88c93e6c98930e99a55f3929eb53d08138b1b66102ece7b76e16f4e5fadcdf5bbac26c9c3d7e
1894-
languageName: node
1895-
linkType: hard
1896-
18971869
"@expo/config-types@npm:^54.0.10":
18981870
version: 54.0.10
18991871
resolution: "@expo/config-types@npm:54.0.10"
@@ -1998,7 +1970,7 @@ __metadata:
19981970
languageName: node
19991971
linkType: hard
20001972

2001-
"@expo/json-file@npm:^10.0.13, @expo/json-file@npm:^10.0.8, @expo/json-file@npm:~10.0.13, @expo/json-file@npm:~10.0.8":
1973+
"@expo/json-file@npm:^10.0.13, @expo/json-file@npm:^10.0.8, @expo/json-file@npm:~10.0.8":
20021974
version: 10.0.13
20031975
resolution: "@expo/json-file@npm:10.0.13"
20041976
dependencies:
@@ -2118,17 +2090,6 @@ __metadata:
21182090
languageName: node
21192091
linkType: hard
21202092

2121-
"@expo/plist@npm:^0.5.2":
2122-
version: 0.5.2
2123-
resolution: "@expo/plist@npm:0.5.2"
2124-
dependencies:
2125-
"@xmldom/xmldom": "npm:^0.8.8"
2126-
base64-js: "npm:^1.5.1"
2127-
xmlbuilder: "npm:^15.1.1"
2128-
checksum: 10c0/19adae2a365ac1a12db93682fb310ff8be03c711f9173bebe5841cbe60cdfb749247bc1a95fa0977b5bac3aa6a078a0fceeafe4ff6c66d1ed67cce496679e310
2129-
languageName: node
2130-
linkType: hard
2131-
21322093
"@expo/prebuild-config@npm:^54.0.8":
21332094
version: 54.0.8
21342095
resolution: "@expo/prebuild-config@npm:54.0.8"
@@ -4724,28 +4685,6 @@ __metadata:
47244685
languageName: node
47254686
linkType: hard
47264687

4727-
"@rnrepo/build-tools@npm:0.1.3-beta.0, @rnrepo/build-tools@npm:~0.1.3-beta.0":
4728-
version: 0.1.3-beta.0
4729-
resolution: "@rnrepo/build-tools@npm:0.1.3-beta.0"
4730-
checksum: 10c0/83d2c2b05d87ab038d139c56b2e8ea1df071c41a51094a6464d9c7bc5794f25eb289b8b9298418e829d9ebfe723a77d5556fb1eaf69d87b25dda1f7d19d2d5fb
4731-
languageName: node
4732-
linkType: hard
4733-
4734-
"@rnrepo/expo-config-plugin@npm:0.3.0-beta.3":
4735-
version: 0.3.0-beta.3
4736-
resolution: "@rnrepo/expo-config-plugin@npm:0.3.0-beta.3"
4737-
dependencies:
4738-
"@expo/config-plugins": "npm:*"
4739-
"@expo/config-types": "npm:*"
4740-
"@rnrepo/build-tools": "npm:0.1.3-beta.0"
4741-
peerDependencies:
4742-
expo: "*"
4743-
react: "*"
4744-
react-native: "*"
4745-
checksum: 10c0/e6d010122e04e4bb93d2410de7b0b6a28f512e810ddd7474f9f18565599a1cdd5a269374839d9987412c7006d731274d8b3cd6c8166e4eb187243035667e06a2
4746-
languageName: node
4747-
linkType: hard
4748-
47494688
"@sideway/address@npm:^4.1.5":
47504689
version: 4.1.5
47514690
resolution: "@sideway/address@npm:4.1.5"
@@ -6320,7 +6259,6 @@ __metadata:
63206259
"@react-native/jest-preset": "npm:0.85.0"
63216260
"@react-native/metro-config": "npm:0.85.0"
63226261
"@react-native/typescript-config": "npm:0.85.0"
6323-
"@rnrepo/build-tools": "npm:~0.1.3-beta.0"
63246262
"@types/jest": "npm:^29.5.13"
63256263
"@types/react": "npm:^19.2.0"
63266264
"@types/react-test-renderer": "npm:^19.1.0"
@@ -8840,7 +8778,6 @@ __metadata:
88408778
"@react-navigation/elements": "npm:^2.3.8"
88418779
"@react-navigation/native": "npm:^7.1.6"
88428780
"@react-navigation/stack": "npm:^7.2.10"
8843-
"@rnrepo/expo-config-plugin": "npm:0.3.0-beta.3"
88448781
"@swmansion/icons": "npm:^0.0.1"
88458782
"@types/react": "npm:~19.1.10"
88468783
"@types/react-dom": "npm:~19.1.7"

0 commit comments

Comments
 (0)