Skip to content

Commit b163d8c

Browse files
patch to resolve build error when publishing the app
1 parent 5bf08be commit b163d8c

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/android/CMakeLists.txt b/android/CMakeLists.txt
2+
index 78041e8f1a0b2c875b435494c967baffa2c8eb78..b029bfd4dbe94bfbfe8ada9275bb9b20b23321a6 100644
3+
--- a/android/CMakeLists.txt
4+
+++ b/android/CMakeLists.txt
5+
@@ -18,7 +18,7 @@ add_compile_options(${folly_FLAGS})
6+
7+
string(APPEND CMAKE_CXX_FLAGS " -DREACT_NATIVE_MINOR_VERSION=${REACT_NATIVE_MINOR_VERSION} -DREANIMATED_VERSION=${REANIMATED_VERSION} -DHERMES_ENABLE_DEBUGGER=${HERMES_ENABLE_DEBUGGER}")
8+
9+
-string(APPEND CMAKE_CXX_FLAGS " -fexceptions -fno-omit-frame-pointer -frtti -fstack-protector-all -std=c++${CMAKE_CXX_STANDARD} -Wall -Werror")
10+
+string(APPEND CMAKE_CXX_FLAGS " -fexceptions -fno-omit-frame-pointer -frtti -fstack-protector-all -std=c++${CMAKE_CXX_STANDARD} -Wall -Werror -Wno-deprecated-this-capture")
11+
12+
if(${IS_NEW_ARCHITECTURE_ENABLED})
13+
string(APPEND CMAKE_CXX_FLAGS " -DRCT_NEW_ARCH_ENABLED")

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@
107107
},
108108
"resolutions": {
109109
"styled-components": "^5",
110-
"react-native-share-menu@^6.0.0": "patch:react-native-share-menu@npm%3A6.0.0#./.yarn/patches/react-native-share-menu-npm-6.0.0-f1094c3204.patch"
110+
"react-native-share-menu@^6.0.0": "patch:react-native-share-menu@npm%3A6.0.0#./.yarn/patches/react-native-share-menu-npm-6.0.0-f1094c3204.patch",
111+
"react-native-reanimated@3.15.0": "patch:react-native-reanimated@npm%3A3.15.0#./.yarn/patches/react-native-reanimated-npm-3.15.0-a4da9ca406.patch"
111112
},
112113
"packageManager": "yarn@3.6.4"
113114
}

yarn.lock

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10457,6 +10457,29 @@ __metadata:
1045710457
languageName: node
1045810458
linkType: hard
1045910459

10460+
"react-native-reanimated@patch:react-native-reanimated@npm%3A3.15.0#./.yarn/patches/react-native-reanimated-npm-3.15.0-a4da9ca406.patch::locator=HueHive%40workspace%3A.":
10461+
version: 3.15.0
10462+
resolution: "react-native-reanimated@patch:react-native-reanimated@npm%3A3.15.0#./.yarn/patches/react-native-reanimated-npm-3.15.0-a4da9ca406.patch::version=3.15.0&hash=b598da&locator=HueHive%40workspace%3A."
10463+
dependencies:
10464+
"@babel/plugin-transform-arrow-functions": ^7.0.0-0
10465+
"@babel/plugin-transform-class-properties": ^7.0.0-0
10466+
"@babel/plugin-transform-classes": ^7.0.0-0
10467+
"@babel/plugin-transform-nullish-coalescing-operator": ^7.0.0-0
10468+
"@babel/plugin-transform-optional-chaining": ^7.0.0-0
10469+
"@babel/plugin-transform-shorthand-properties": ^7.0.0-0
10470+
"@babel/plugin-transform-template-literals": ^7.0.0-0
10471+
"@babel/plugin-transform-unicode-regex": ^7.0.0-0
10472+
"@babel/preset-typescript": ^7.16.7
10473+
convert-source-map: ^2.0.0
10474+
invariant: ^2.2.4
10475+
peerDependencies:
10476+
"@babel/core": ^7.0.0-0
10477+
react: "*"
10478+
react-native: "*"
10479+
checksum: 0ee946ba242576c714bb59b24d57451803a7e5ee1d7b24fc1d744bd5bf4ebf3a3a35b3b1537424e4343ecc24e278d1248712d7b62b0a73b20851788d63314216
10480+
languageName: node
10481+
linkType: hard
10482+
1046010483
"react-native-safe-area-context@npm:^4.10.9":
1046110484
version: 4.11.0
1046210485
resolution: "react-native-safe-area-context@npm:4.11.0"

0 commit comments

Comments
 (0)