Skip to content

Commit e81ef7b

Browse files
Merge pull request #1824 from GetStream/develop
Next Release
2 parents b369868 + 1781bbc commit e81ef7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+6066
-4307
lines changed

docusaurus/docs/reactnative/basics/getting_started.mdx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,33 @@ npm install react-native-haptic-feedback
262262
</TabItem>
263263
</Tabs>
264264

265+
#### Copying messages
266+
267+
Install `@react-native-clipboard/clipboard` to be able to copy messages to the clipboard.
268+
269+
<Tabs
270+
defaultValue='yarn'
271+
values={[
272+
{ label: 'Yarn', value: 'yarn' },
273+
{ label: 'npm', value: 'npm' },
274+
]}
275+
>
276+
<TabItem value='yarn'>
277+
278+
```bash
279+
yarn add @react-native-clipboard/clipboard
280+
```
281+
282+
</TabItem>
283+
<TabItem value='npm'>
284+
285+
```bash
286+
npm install @react-native-clipboard/clipboard
287+
```
288+
289+
</TabItem>
290+
</Tabs>
291+
265292
### AndroidX Support
266293

267294
> AndroidX is a major step forward in the Android ecosystem, and the old support library artifacts are being deprecated.
@@ -344,3 +371,11 @@ Installing this package allows you to play the video files/attachments in the ch
344371
```bash
345372
expo install expo-av
346373
```
374+
375+
#### Copying messages
376+
377+
Install `expo-clipboard` to be able to copy messages to the clipboard.
378+
379+
```bash
380+
expo install expo-clipboard
381+
```

examples/ExpoMessaging/ios/ExpoMessaging.xcodeproj/project.pbxproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1212
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
1313
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
14+
70FB7BB0AF604F32A5DB2294 /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = D8BF10586AEC4D85BC4174CF /* noop-file.swift */; };
1415
96905EF65AED1B983A6B3ABC /* libPods-ExpoMessaging.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-ExpoMessaging.a */; };
1516
B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */; };
16-
B733A727FF754E61AC379CD3 /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7E59256F303450AB1FA1E77 /* noop-file.swift */; };
1717
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
1818
/* End PBXBuildFile section */
1919

@@ -30,8 +30,8 @@
3030
7A4D352CD337FB3A3BF06240 /* Pods-ExpoMessaging.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ExpoMessaging.release.xcconfig"; path = "Target Support Files/Pods-ExpoMessaging/Pods-ExpoMessaging.release.xcconfig"; sourceTree = "<group>"; };
3131
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = ExpoMessaging/SplashScreen.storyboard; sourceTree = "<group>"; };
3232
BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = "<group>"; };
33+
D8BF10586AEC4D85BC4174CF /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "ExpoMessaging/noop-file.swift"; sourceTree = "<group>"; };
3334
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
34-
F7E59256F303450AB1FA1E77 /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "ExpoMessaging/noop-file.swift"; sourceTree = "<group>"; };
3535
FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-ExpoMessaging/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
3636
/* End PBXFileReference section */
3737

@@ -58,7 +58,7 @@
5858
13B07FB61A68108700A75B9A /* Info.plist */,
5959
13B07FB71A68108700A75B9A /* main.m */,
6060
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
61-
F7E59256F303450AB1FA1E77 /* noop-file.swift */,
61+
D8BF10586AEC4D85BC4174CF /* noop-file.swift */,
6262
);
6363
name = ExpoMessaging;
6464
sourceTree = "<group>";
@@ -277,7 +277,7 @@
277277
);
278278
runOnlyForDeploymentPostprocessing = 0;
279279
shellPath = /bin/sh;
280-
shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > `node --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/.packager.env'\"`\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open `node --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/launchPackager.command'\"` || echo \"Can't start packager automatically\"\n fi\nfi\n";
280+
shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\nexport RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > `$NODE_BINARY --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/.packager.env'\"`\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open `$NODE_BINARY --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/launchPackager.command'\"` || echo \"Can't start packager automatically\"\n fi\nfi\n";
281281
showEnvVarsInLog = 0;
282282
};
283283
/* End PBXShellScriptBuildPhase section */
@@ -290,7 +290,7 @@
290290
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */,
291291
13B07FC11A68108700A75B9A /* main.m in Sources */,
292292
B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */,
293-
B733A727FF754E61AC379CD3 /* noop-file.swift in Sources */,
293+
70FB7BB0AF604F32A5DB2294 /* noop-file.swift in Sources */,
294294
);
295295
runOnlyForDeploymentPostprocessing = 0;
296296
};
@@ -311,7 +311,7 @@
311311
"FB_SONARKIT_ENABLED=1",
312312
);
313313
INFOPLIST_FILE = ExpoMessaging/Info.plist;
314-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
314+
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
315315
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
316316
OTHER_LDFLAGS = (
317317
"$(inherited)",
@@ -337,7 +337,7 @@
337337
CODE_SIGN_ENTITLEMENTS = ExpoMessaging/ExpoMessaging.entitlements;
338338
CURRENT_PROJECT_VERSION = 1;
339339
INFOPLIST_FILE = ExpoMessaging/Info.plist;
340-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
340+
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
341341
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
342342
OTHER_LDFLAGS = (
343343
"$(inherited)",
@@ -401,7 +401,7 @@
401401
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
402402
GCC_WARN_UNUSED_FUNCTION = YES;
403403
GCC_WARN_UNUSED_VARIABLE = YES;
404-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
404+
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
405405
LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
406406
LIBRARY_SEARCH_PATHS = "\"$(inherited)\"";
407407
MTL_ENABLE_DEBUG_INFO = YES;
@@ -452,7 +452,7 @@
452452
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
453453
GCC_WARN_UNUSED_FUNCTION = YES;
454454
GCC_WARN_UNUSED_VARIABLE = YES;
455-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
455+
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
456456
LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
457457
LIBRARY_SEARCH_PATHS = "\"$(inherited)\"";
458458
MTL_ENABLE_DEBUG_INFO = NO;

examples/ExpoMessaging/ios/ExpoMessaging/Supporting/Expo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<key>EXUpdatesSDKVersion</key>
1212
<string>46.0.0</string>
1313
<key>EXUpdatesURL</key>
14-
<string>https://exp.host/@anonymous/ExpoMessaging</string>
14+
<string>https://exp.host/@madsroskar/ExpoMessaging</string>
1515
</dict>
1616
</plist>

examples/ExpoMessaging/ios/Podfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ target 'ExpoMessaging' do
3636
post_install do |installer|
3737
react_native_post_install(installer)
3838
__apply_Xcode_12_5_M1_post_install_workaround(installer)
39+
40+
# This is necessary for Xcode 14, because it signs resource bundles by default
41+
# when building for devices.
42+
installer.target_installation_results.pod_target_installation_results
43+
.each do |pod_name, target_installation_result|
44+
target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
45+
resource_bundle_target.build_configurations.each do |config|
46+
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
47+
end
48+
end
49+
end
3950
end
4051

4152
post_integrate do |installer|
@@ -45,5 +56,4 @@ target 'ExpoMessaging' do
4556
Pod::UI.warn e
4657
end
4758
end
48-
4959
end

0 commit comments

Comments
 (0)