Skip to content

Commit 5348c88

Browse files
authored
chore: bump testers to RN 0.80 (#1224)
1 parent 51d44f3 commit 5348c88

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4070
-2511
lines changed

apps/tester-app/__tests__/bundle.test.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@ import {
1313
vi,
1414
} from 'vitest';
1515

16-
const REACT_NATIVE_PATH = require.resolve('react-native', {
17-
paths: [path.dirname(__dirname)],
18-
});
19-
const RELATIVE_REACT_NATIVE_PATH = path.relative(
20-
path.join(__dirname, '..', '..', '..'),
21-
path.dirname(REACT_NATIVE_PATH)
22-
);
23-
const REACT_NATIVE_ANDROID_ASSET_PATH = RELATIVE_REACT_NATIVE_PATH.replaceAll(
24-
path.sep,
25-
'_'
26-
).replaceAll(/[-.@+=]/g, '');
27-
2816
describe('bundle command', () => {
2917
describe.each([
3018
{
@@ -71,7 +59,6 @@ describe('bundle command', () => {
7159
'react-native-bundle-output/src_asyncChunks_Async_local_tsx.chunk.bundle',
7260
'react-native-bundle-output/src_asyncChunks_Async_local_tsx.chunk.bundle.map',
7361
'assets/src/miniapp/callstack-dark.png',
74-
`assets/${RELATIVE_REACT_NATIVE_PATH}/Libraries/NewAppScreen/components/logo.png`,
7562
'assets/src/assetsTest/localAssets/webpack.png',
7663
'assets/src/assetsTest/localAssets/webpack@2x.png',
7764
'assets/src/assetsTest/localAssets/webpack@3x.png',
@@ -81,7 +68,6 @@ describe('bundle command', () => {
8168
'react-native-bundle-output/assets/src/assetsTest/localAssets/webpack.png',
8269
'react-native-bundle-output/assets/src/assetsTest/localAssets/webpack@2x.png',
8370
'react-native-bundle-output/assets/src/assetsTest/localAssets/webpack@3x.png',
84-
`react-native-bundle-output/assets/${RELATIVE_REACT_NATIVE_PATH}/Libraries/NewAppScreen/components/logo.png`,
8571
],
8672
},
8773
{
@@ -95,7 +81,6 @@ describe('bundle command', () => {
9581
'remote.chunk.bundle.map',
9682
'src_asyncChunks_Async_local_tsx.chunk.bundle',
9783
'src_asyncChunks_Async_local_tsx.chunk.bundle.map',
98-
`drawable-mdpi/${REACT_NATIVE_ANDROID_ASSET_PATH}_libraries_newappscreen_components_logo.png`,
9984
'drawable-mdpi/src_assetstest_localassets_webpack.png',
10085
'drawable-xxhdpi/src_assetstest_localassets_webpack.png',
10186
'drawable-xhdpi/src_assetstest_localassets_webpack.png',
@@ -104,7 +89,6 @@ describe('bundle command', () => {
10489
'react-native-bundle-output/index.android.bundle.map',
10590
'react-native-bundle-output/src_asyncChunks_Async_local_tsx.chunk.bundle',
10691
'react-native-bundle-output/src_asyncChunks_Async_local_tsx.chunk.bundle.map',
107-
`react-native-bundle-output/drawable-mdpi/${REACT_NATIVE_ANDROID_ASSET_PATH}_libraries_newappscreen_components_logo.png`,
10892
'react-native-bundle-output/drawable-mdpi/src_assetstest_localassets_webpack.png',
10993
'react-native-bundle-output/drawable-xxhdpi/src_assetstest_localassets_webpack.png',
11094
'react-native-bundle-output/drawable-xhdpi/src_assetstest_localassets_webpack.png',

apps/tester-app/__tests__/start.test.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ import { afterAll, beforeAll, describe, expect, it } from 'vitest';
88
let port: number;
99
let stopServer: () => Promise<void>;
1010

11-
const REACT_NATIVE_PATH = require.resolve('react-native', {
12-
paths: [path.dirname(__dirname)],
13-
});
14-
const RELATIVE_REACT_NATIVE_PATH = path.relative(
15-
path.join(__dirname, '..', '..', '..'),
16-
path.dirname(REACT_NATIVE_PATH)
17-
);
18-
1911
describe('start command', () => {
2012
describe.each([
2113
{
@@ -58,7 +50,6 @@ describe('start command', () => {
5850
'ios/src_asyncChunks_Async_local_tsx.chunk.bundle',
5951
'ios/src_asyncChunks_Async_local_tsx.chunk.bundle.map',
6052
'assets/src/miniapp/callstack-dark.png?platform=ios',
61-
`assets/${RELATIVE_REACT_NATIVE_PATH}/Libraries/NewAppScreen/components/logo.png?platform=ios`,
6253
'remote-assets/assets/src/assetsTest/remoteAssets/webpack.png?platform=ios',
6354
'remote-assets/assets/src/assetsTest/remoteAssets/webpack@2x.png?platform=ios',
6455
'remote-assets/assets/src/assetsTest/remoteAssets/webpack@3x.png?platform=ios',
@@ -79,7 +70,6 @@ describe('start command', () => {
7970
'android/src_asyncChunks_Async_local_tsx.chunk.bundle',
8071
'android/src_asyncChunks_Async_local_tsx.chunk.bundle.map',
8172
'assets/src/miniapp/callstack-dark.png?platform=android',
82-
`assets/${RELATIVE_REACT_NATIVE_PATH}/Libraries/NewAppScreen/components/logo.png?platform=android`,
8373
'remote-assets/assets/src/assetsTest/remoteAssets/webpack.png?platform=android',
8474
'remote-assets/assets/src/assetsTest/remoteAssets/webpack@2x.png?platform=android',
8575
'remote-assets/assets/src/assetsTest/remoteAssets/webpack@3x.png?platform=android',

apps/tester-app/android/build.gradle

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ buildscript {
2424

2525
allprojects {
2626
repositories {
27-
maven {
28-
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
29-
url({
30-
def searchDir = rootDir.toPath()
31-
do {
32-
def p = searchDir.resolve("node_modules/react-native/android")
33-
if (p.toFile().exists()) {
34-
return p.toRealPath().toString()
27+
{
28+
def searchDir = rootDir.toPath()
29+
do {
30+
def p = searchDir.resolve("node_modules/react-native/android")
31+
if (p.toFile().exists()) {
32+
maven {
33+
url(p.toRealPath().toString())
3534
}
36-
} while (searchDir = searchDir.getParent())
37-
throw new GradleException("Could not find `react-native`");
38-
}())
39-
}
35+
break
36+
}
37+
} while (searchDir = searchDir.getParent())
38+
// As of 0.80, React Native is no longer installed from npm
39+
}()
4040
mavenCentral()
4141
google()
4242
}
59 Bytes
Binary file not shown.

apps/tester-app/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

apps/tester-app/android/gradlew

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/tester-app/android/gradlew.bat

Lines changed: 94 additions & 94 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)