Skip to content

Commit 8d97744

Browse files
committed
Add ERN 0.53 to support RN 0.77
1 parent 168eb14 commit 8d97744

File tree

3 files changed

+149
-1
lines changed

3 files changed

+149
-1
lines changed

manifest.json

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2070,6 +2070,82 @@
20702070
"react@17.0.2"
20712071
]
20722072
},
2073+
{
2074+
"platformVersion": "0.53.x",
2075+
"targetNativeDependencies": [
2076+
"@react-native-community/async-storage@1.9.0",
2077+
"@react-native-community/cameraroll@1.1.2",
2078+
"@react-native-community/clipboard@1.2.3",
2079+
"@react-native-community/datetimepicker@2.3.2",
2080+
"@react-native-community/geolocation@2.0.2",
2081+
"@react-native-community/masked-view@0.1.10",
2082+
"@react-native-community/netinfo@5.7.0",
2083+
"@react-native-community/progress-bar-android@1.0.3",
2084+
"@react-native-community/progress-view@1.0.3",
2085+
"@react-native-firebase/analytics@7.4.1",
2086+
"@react-native-firebase/app@8.3.0",
2087+
"@react-native-firebase/crashlytics@8.3.0",
2088+
"appcenter-analytics@4.4.3",
2089+
"appcenter-crashes@4.4.3",
2090+
"appcenter@4.4.3",
2091+
"ern-container-publisher-maven^@3.0.0",
2092+
"ern-navigation@^2.1.0",
2093+
"lottie-ios@3.1.6",
2094+
"lottie-react-native@3.3.2",
2095+
"react-native@0.77.2",
2096+
"react-native-admob@1.3.2",
2097+
"react-native-android-settings-library@1.0.6",
2098+
"react-native-android-wifi@0.0.41",
2099+
"react-native-camera@4.0.3",
2100+
"react-native-code-push@6.2.0",
2101+
"react-native-device-info@5.6.3",
2102+
"react-native-electrode-bridge@1.6.0",
2103+
"react-native-exif@0.4.0",
2104+
"react-native-fast-image@8.1.5",
2105+
"react-native-fbads@7.0.5",
2106+
"react-native-fbsdk@1.1.2",
2107+
"react-native-fs@2.16.6",
2108+
"react-native-gesture-handler@1.6.1",
2109+
"react-native-image-picker@5.3.1",
2110+
"react-native-keep-awake@4.0.0",
2111+
"react-native-keychain@6.0.0",
2112+
"react-native-keyevent@0.2.8",
2113+
"react-native-linear-gradient@2.5.6",
2114+
"react-native-llimageview@2.0.4",
2115+
"react-native-llphotoassets@0.1.14",
2116+
"react-native-lluploader@0.4.6",
2117+
"react-native-location@2.5.0",
2118+
"react-native-pager-view@5.1.7",
2119+
"react-native-maps@0.27.1",
2120+
"react-native-msal@3.0.4",
2121+
"react-native-network-info@5.2.1",
2122+
"react-native-orientation@3.1.3",
2123+
"react-native-pdf@6.1.1",
2124+
"react-native-permissions@2.0.10",
2125+
"react-native-photo-view@1.5.2",
2126+
"react-native-reanimated@1.8.0",
2127+
"react-native-restart@0.0.20",
2128+
"react-native-safe-area-context@3.0.3",
2129+
"react-native-screens@2.7.0",
2130+
"react-native-search-bar@3.5.1",
2131+
"react-native-sentry@0.43.2",
2132+
"react-native-simple-toast@1.1.0",
2133+
"react-native-sound@0.11.0",
2134+
"react-native-svg@12.1.0",
2135+
"react-native-vector-icons@6.6.0",
2136+
"react-native-version-number@0.3.6",
2137+
"react-native-video@4.4.5",
2138+
"react-native-view-overflow@0.0.5",
2139+
"react-native-view-shot@3.1.2",
2140+
"react-native-webview@11.26.1",
2141+
"react-native-wkwebview-reborn@2.0.0",
2142+
"realm@5.0.3",
2143+
"rn-fetch-blob@0.12.0"
2144+
],
2145+
"targetJsDependencies": [
2146+
"react@18.3.1"
2147+
]
2148+
},
20732149
{
20742150
"platformVersion": "1000.0.0",
20752151
"targetNativeDependencies": [
@@ -2143,7 +2219,7 @@
21432219
"rn-fetch-blob@0.12.0"
21442220
],
21452221
"targetJsDependencies": [
2146-
"react@17.0.2"
2222+
"react@18.3.1"
21472223
]
21482224
}
21492225
]
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Resolve react_native_pods.rb with node to allow for hoisting
2+
require Pod::Executable.execute_command('node', ['-p',
3+
'require.resolve(
4+
"react-native/scripts/react_native_pods.rb",
5+
{paths: [process.argv[1]]},
6+
)', __dir__]).strip
7+
8+
platform :ios, '{{{iosDeploymentTarget}}}'
9+
prepare_react_native_project!
10+
11+
{{#extraPodspecsSources}}
12+
{{{.}}}
13+
{{/extraPodspecsSources}}
14+
15+
{{#extraPodfileStatements}}
16+
{{{.}}}
17+
{{/extraPodfileStatements}}
18+
19+
linkage = ENV['USE_FRAMEWORKS']
20+
if linkage != nil
21+
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
22+
use_frameworks! :linkage => linkage.to_sym
23+
end
24+
25+
target '{{{projectName}}}' do
26+
config = use_native_modules!
27+
28+
use_react_native!(
29+
:path => config[:reactNativePath],
30+
# An absolute path to your application root.
31+
:app_path => "#{Pod::Config.instance.installation_root}/.."
32+
)
33+
34+
{{#extraPods}}
35+
{{{.}}}
36+
{{/extraPods}}
37+
38+
post_install do |installer|
39+
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
40+
react_native_post_install(
41+
installer,
42+
config[:reactNativePath],
43+
:mac_catalyst_enabled => false,
44+
# :ccache_enabled => true
45+
)
46+
47+
# https://github.com/facebook/react-native/issues/35863#issuecomment-1414536814
48+
PLIST_BUDDY_PATH = '/usr/libexec/PlistBuddy'
49+
installer.pods_project.targets.each do |target|
50+
target.build_configurations.each do |config|
51+
if target.name == "hermes-engine"
52+
installer.pods_project.files.each do |fileref|
53+
if fileref.path.end_with? "hermes.xcframework"
54+
hermes_plist_file = "#{fileref.real_path}/Info.plist"
55+
# Patch Hermes to remove the debug symbols entry from the Info.plist (as it's not shipped with it)
56+
# This might be removed once Hermes starts to ship with Debug symbols or we remove our
57+
# direct dependency from the Main iOS target on "hermes.xcframework"
58+
Open3.capture3(PLIST_BUDDY_PATH, '-c', 'Delete :AvailableLibraries:0:DebugSymbolsPath', hermes_plist_file)
59+
Open3.capture3(PLIST_BUDDY_PATH, '-c', 'Delete :AvailableLibraries:1:DebugSymbolsPath', hermes_plist_file)
60+
Open3.capture3(PLIST_BUDDY_PATH, '-c', 'Delete :AvailableLibraries:2:DebugSymbolsPath', hermes_plist_file)
61+
end
62+
end
63+
end
64+
end
65+
end
66+
end
67+
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"ios": {
3+
"podfile": "Podfile"
4+
}
5+
}

0 commit comments

Comments
 (0)