Skip to content

Commit 03dc80e

Browse files
authored
feat: upgrade templates to 0.81 (#507)
* feat: upgrade templates to 0.81 * changeset * cli 20 * update Metro to 0.83; port start command changes * allow runninig with older @react-native/metro-config versions * 0.81.1 * Enable CADisableMinimumFrameDurationOnPhone by default * enable edgeToEdge * fixup metro start on older versions
1 parent d6e1bb0 commit 03dc80e

File tree

25 files changed

+1450
-606
lines changed

25 files changed

+1450
-606
lines changed

.changeset/breezy-hotels-bathe.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
'@rock-js/plugin-brownfield-android': minor
3+
'@rock-js/platform-android': minor
4+
'@rock-js/welcome-screen': minor
5+
'@rock-js/plugin-metro': minor
6+
'rock': minor
7+
'@rock-js/config': minor
8+
'create-rock': minor
9+
'@rock-js/platform-apple-helpers': minor
10+
'@rock-js/platform-ios': minor
11+
'@rock-js/plugin-brownfield-ios': minor
12+
'@rock-js/plugin-repack': minor
13+
'@rock-js/provider-github': minor
14+
'@rock-js/provider-s3': minor
15+
'@rock-js/test-helpers': minor
16+
'@rock-js/tools': minor
17+
'rock-docs': minor
18+
---
19+
20+
feat: upgrade templates to 0.81

packages/cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
},
2525
"dependencies": {
2626
"adm-zip": "^0.5.16",
27-
"@react-native-community/cli-config": "^19.1.0",
27+
"@react-native-community/cli-config": "^20.0.0",
2828
"@rock-js/config": "^0.9.2",
2929
"@rock-js/tools": "^0.9.2",
3030
"commander": "^12.1.0",
3131
"tar": "^7.4.3",
3232
"tslib": "^2.3.0"
3333
},
3434
"devDependencies": {
35-
"@react-native-community/cli-types": "^19.1.0",
35+
"@react-native-community/cli-types": "^20.0.0",
3636
"@types/adm-zip": "^0.5.7"
3737
},
3838
"publishConfig": {

packages/platform-android/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
"publish:verdaccio": "npm publish --registry http://localhost:4873 --userconfig ../../.npmrc"
2020
},
2121
"dependencies": {
22-
"@react-native-community/cli-config-android": "^19.1.0",
22+
"@react-native-community/cli-config-android": "^20.0.0",
2323
"@rock-js/tools": "^0.9.2",
2424
"adm-zip": "^0.5.16",
2525
"tslib": "^2.3.0"
2626
},
2727
"devDependencies": {
28-
"@react-native-community/cli-types": "^19.1.0",
28+
"@react-native-community/cli-types": "^20.0.0",
2929
"@rock-js/config": "^0.9.2",
3030
"@types/adm-zip": "^0.5.7"
3131
},

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
buildscript {
22
ext {
3-
buildToolsVersion = "35.0.0"
3+
buildToolsVersion = "36.0.0"
44
minSdkVersion = 24
5-
compileSdkVersion = 35
6-
targetSdkVersion = 35
5+
compileSdkVersion = 36
6+
targetSdkVersion = 36
77
ndkVersion = "27.1.12297006"
88
kotlinVersion = "2.1.20"
99
}

packages/platform-android/template/android/gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ newArchEnabled=true
3838
# If set to false, you will be using JSC instead.
3939
hermesEnabled=true
4040

41+
# Use this property to enable edge-to-edge display support.
42+
# This allows your app to draw behind system bars for an immersive UI.
43+
# Note: Only works with ReactActivity and should not be used with custom Activity.
44+
edgeToEdgeEnabled=true
45+
4146
# Signing configuration – adjust the values and ideally
4247
# move the following code to ~/.gradle/gradle.properties to keep it secure
4348
ROCK_UPLOAD_STORE_FILE=release.keystore

packages/platform-android/template/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.14.1-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

packages/platform-apple-helpers/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"publish:verdaccio": "npm publish --registry http://localhost:4873 --userconfig ../../.npmrc"
1818
},
1919
"dependencies": {
20-
"@react-native-community/cli-config": "^19.1.0",
21-
"@react-native-community/cli-config-apple": "^19.1.0",
20+
"@react-native-community/cli-config": "^20.0.0",
21+
"@react-native-community/cli-config-apple": "^20.0.0",
2222
"@rock-js/tools": "^0.9.2",
2323
"@types/adm-zip": "^0.5.7",
2424
"adm-zip": "^0.5.16",
@@ -27,7 +27,7 @@
2727
"tslib": "^2.3.0"
2828
},
2929
"devDependencies": {
30-
"@react-native-community/cli-types": "^19.1.0",
30+
"@react-native-community/cli-types": "^20.0.0",
3131
"@rock-js/config": "^0.9.2"
3232
},
3333
"publishConfig": {

packages/platform-ios/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"publish:verdaccio": "npm publish --registry http://localhost:4873 --userconfig ../../.npmrc"
2020
},
2121
"dependencies": {
22-
"@react-native-community/cli-config-apple": "^19.1.0",
23-
"@react-native-community/cli-types": "^19.1.0",
22+
"@react-native-community/cli-config-apple": "^20.0.0",
23+
"@react-native-community/cli-types": "^20.0.0",
2424
"@rock-js/platform-apple-helpers": "^0.9.2",
2525
"@rock-js/tools": "^0.9.2",
2626
"tslib": "^2.3.0"

packages/platform-ios/template/ios/HelloWorld/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>CADisableMinimumFrameDurationOnPhone</key>
6+
<true/>
57
<key>CFBundleDevelopmentRegion</key>
68
<string>en</string>
79
<key>CFBundleDisplayName</key>

packages/plugin-brownfield-android/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
"dependencies": {
2222
"@rock-js/tools": "^0.9.2",
2323
"@rock-js/platform-android": "^0.9.2",
24-
"@react-native-community/cli-config-android": "^19.1.0",
24+
"@react-native-community/cli-config-android": "^20.0.0",
2525
"tslib": "^2.3.0"
2626
},
2727
"devDependencies": {
2828
"@rock-js/config": "^0.9.2",
29-
"@react-native-community/cli-types": "^19.1.0"
29+
"@react-native-community/cli-types": "^20.0.0"
3030
},
3131
"publishConfig": {
3232
"access": "restricted"

0 commit comments

Comments
 (0)