Skip to content

Commit 21c6565

Browse files
authored
feat: update templates to RN 0.77.0-rc.2 (#46)
* feat: update templates to RN 0.77.0-rc.2 * remove TestAction form xcscheme
1 parent f118d44 commit 21c6565

File tree

21 files changed

+399
-431
lines changed

21 files changed

+399
-431
lines changed

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
"@callstack/rnef-config": "^0.0.1",
1818
"@callstack/rnef-tools": "^0.0.1",
1919
"@clack/prompts": "^0.8.1",
20-
"@react-native-community/cli-config": "^15.1.2",
20+
"@react-native-community/cli-config": "^16.0.2",
2121
"commander": "^12.1.0",
2222
"tslib": "^2.3.0"
2323
},
2424
"devDependencies": {
25-
"@react-native-community/cli-types": "^15.1.2"
25+
"@react-native-community/cli-types": "^16.0.2"
2626
}
2727
}

packages/plugin-metro/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
},
1818
"dependencies": {
1919
"@callstack/rnef-tools": "^0.0.1",
20-
"@react-native-community/cli-server-api": "^15.1.2",
21-
"@react-native/community-cli-plugin": "^0.76.0",
20+
"@react-native-community/cli-server-api": "^16.0.2",
21+
"@react-native/community-cli-plugin": "0.77.0-rc.2",
2222
"tslib": "^2.3.0"
2323
},
2424
"devDependencies": {

packages/plugin-metro/src/__tests__/pluginMetro.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const pluginApi = { registerCommand: vi.fn() };
66
test('plugin is called with correct arguments and returns its name and description', () => {
77
const plugin = pluginMetro({
88
root: '/',
9-
reactNativeVersion: '0.76.0',
9+
reactNativeVersion: '0.77.0-rc.2',
1010
reactNativePath: '/path/to/react-native',
1111
platforms: {
1212
android: {},

packages/plugin-metro/template/metro.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
44
* Metro configuration
55
* https://reactnative.dev/docs/metro
66
*
7-
* @type {import('metro-config').MetroConfig}
7+
* @type {import('@react-native/metro-config').MetroConfig}
88
*/
99
const config = {};
1010

packages/plugin-metro/template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "rnef-plugin-metro-template",
33
"devDependencies": {
44
"@callstack/rnef-plugin-metro": "^0.0.1",
5-
"@react-native/metro-config": "0.76.1"
5+
"@react-native/metro-config": "0.77.0-rc.2"
66
}
77
}

packages/plugin-platform-android/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
"dependencies": {
2020
"@callstack/rnef-tools": "^0.0.1",
2121
"@clack/prompts": "^0.8.1",
22-
"@react-native-community/cli-config-android": "^15.1.2",
22+
"@react-native-community/cli-config-android": "^16.0.2",
2323
"chalk": "^5.3.0",
2424
"nano-spawn": "^0.2.0",
2525
"picocolors": "^1.1.1",
2626
"tslib": "^2.3.0"
2727
},
2828
"devDependencies": {
2929
"@callstack/rnef-config": "^0.0.1",
30-
"@react-native-community/cli-types": "^15.1.2"
30+
"@react-native-community/cli-types": "^16.0.2"
3131
}
3232
}

packages/plugin-platform-android/template/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ buildscript {
44
minSdkVersion = 24
55
compileSdkVersion = 35
66
targetSdkVersion = 34
7-
ndkVersion = "26.1.10909125"
8-
kotlinVersion = "1.9.24"
7+
ndkVersion = "27.1.12297006"
8+
kotlinVersion = "2.0.21"
99
}
1010
repositories {
1111
google()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
22
plugins { id("com.facebook.react.settings") }
3-
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand(['npx', 'rnef', 'config', '-p android']) }
3+
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand(['rnef', 'config', '-p', 'android']) }
44
rootProject.name = 'HelloWorld'
55
include ':app'
66
includeBuild('../node_modules/@react-native/gradle-plugin')

packages/plugin-platform-apple/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"dependencies": {
1818
"@callstack/rnef-tools": "^0.0.1",
1919
"@clack/prompts": "^0.7.0",
20-
"@react-native-community/cli-config-apple": "^15.1.2",
20+
"@react-native-community/cli-config-apple": "^16.0.2",
2121
"fast-glob": "^3.3.2",
2222
"fast-xml-parser": "^4.5.0",
2323
"is-interactive": "^2.0.0",

packages/plugin-platform-ios/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"publish:verdaccio": "npm publish --registry http://localhost:4873 --userconfig ../../.npmrc"
1818
},
1919
"dependencies": {
20-
"@react-native-community/cli-config-apple": "^15.1.2",
20+
"@react-native-community/cli-config-apple": "^16.0.2",
2121
"tslib": "^2.3.0",
2222
"@callstack/rnef-plugin-platform-apple": "^0.0.1"
2323
},

0 commit comments

Comments
 (0)