Skip to content

Commit ddda3f0

Browse files
oscbsatya164
andauthored
Updating dependencies and fixing builds for M1 Macs (#218)
* chore: updated RN depedencies to latest, updated Podfile for M1 macs * chore: added arm64 to excluded architectures for m1 macs Co-authored-by: Satyajit Sahoo <[email protected]>
1 parent 45c138b commit ddda3f0

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

packages/create-react-native-library/templates/common/$package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@
5050
"@commitlint/config-conventional": "^11.0.0",
5151
"@react-native-community/eslint-config": "^2.0.0",
5252
"@release-it/conventional-changelog": "^2.0.0",
53-
"@types/jest": "^26.0.0",
54-
"@types/react": "^16.9.19",
55-
"@types/react-native": "0.62.13",
53+
"@types/jest": "^27.0.3",
54+
"@types/react": "^17.0.37",
55+
"@types/react-native": "0.66.8",
5656
"commitlint": "^11.0.0",
57-
"eslint": "^7.2.0",
57+
"eslint": "^8.4.1",
5858
"eslint-config-prettier": "^7.0.0",
5959
"eslint-plugin-prettier": "^3.1.3",
6060
"husky": "^6.0.0",
61-
"jest": "^26.0.1",
61+
"jest": "^27.4.3",
6262
"pod-install": "^0.1.0",
6363
"prettier": "^2.0.5",
64-
"react": "16.13.1",
65-
"react-native": "0.64.0",
64+
"react": "17.0.2",
65+
"react-native": "0.66.3",
6666
"react-native-builder-bob": "^<%- bob.version %>",
6767
"release-it": "^14.2.2",
6868
"typescript": "^4.5.2"

packages/create-react-native-library/templates/example/example/ios/Podfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require_relative '../node_modules/react-native/scripts/react_native_pods'
22
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
33

4-
platform :ios, '10.0'
4+
platform :ios, '11.0'
55

66
target '<%- project.name %>Example' do
77
config = use_native_modules!
@@ -16,8 +16,13 @@ target '<%- project.name %>Example' do
1616
#
1717
# Note that if you have use_frameworks! enabled, Flipper will not work and
1818
# you should disable these next few lines.
19-
use_flipper!({ 'Flipper' => '0.80.0' })
19+
use_flipper!({ 'Flipper' => '0.125.0', 'Flipper-Folly' => '~> 2.6', 'Flipper-RSocket' => '~> 1.4' })
2020
post_install do |installer|
21+
installer.pods_project.targets.each do |target|
22+
target.build_configurations.each do |config|
23+
config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
24+
end
25+
end
2126
flipper_post_install(installer)
2227
end
2328
end

packages/create-react-native-library/templates/native-common/ios/{%- project.name %}.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
COPY_PHASE_STRIP = NO;
185185
ENABLE_STRICT_OBJC_MSGSEND = YES;
186186
ENABLE_TESTABILITY = YES;
187+
"EXCLUDED_ARCHS[sdk=*]" = arm64;
187188
GCC_C_LANGUAGE_STANDARD = gnu99;
188189
GCC_DYNAMIC_NO_PIC = NO;
189190
GCC_NO_COMMON_BLOCKS = YES;
@@ -234,6 +235,7 @@
234235
COPY_PHASE_STRIP = YES;
235236
ENABLE_NS_ASSERTIONS = NO;
236237
ENABLE_STRICT_OBJC_MSGSEND = YES;
238+
"EXCLUDED_ARCHS[sdk=*]" = arm64;
237239
GCC_C_LANGUAGE_STANDARD = gnu99;
238240
GCC_NO_COMMON_BLOCKS = YES;
239241
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;

0 commit comments

Comments
 (0)