Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 8438d92

Browse files
committed
Merge remote-tracking branch 'origin/main' into convert-to-monorepo
2 parents 325c68b + dc6908c commit 8438d92

35 files changed

+1015
-773
lines changed

examples/video-chat/App.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { FishjamContextProvider } from '@fishjam-dev/react-native-client';
21
import React from 'react';
32
import { GestureHandlerRootView } from 'react-native-gesture-handler';
43
import Toast from 'react-native-toast-message';
@@ -9,9 +8,7 @@ function App(): React.JSX.Element {
98
return (
109
<>
1110
<GestureHandlerRootView>
12-
<FishjamContextProvider>
13-
<AppNavigator />
14-
</FishjamContextProvider>
11+
<AppNavigator />
1512
</GestureHandlerRootView>
1613
<Toast />
1714
</>

examples/video-chat/hooks/useJoinRoom.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
22
useCamera,
3-
useFishjamClient,
3+
joinRoom as fjJoinRoom,
44
useMicrophone,
55
VideoQuality,
66
} from '@fishjam-dev/react-native-client';
@@ -47,7 +47,6 @@ export function useJoinRoom({
4747
isCameraAvailable,
4848
isMicrophoneAvailable,
4949
}: Props) {
50-
const { join } = useFishjamClient();
5150
const { startCamera, getCaptureDevices } = useCamera();
5251
const { startMicrophone } = useMicrophone();
5352

@@ -68,7 +67,7 @@ export function useJoinRoom({
6867
cameraEnabled: isCameraAvailable,
6968
});
7069

71-
await join({
70+
await fjJoinRoom({
7271
name: 'RN mobile',
7372
});
7473

@@ -79,7 +78,7 @@ export function useJoinRoom({
7978
}, [
8079
isCameraAvailable,
8180
isMicrophoneAvailable,
82-
join,
81+
fjJoinRoom,
8382
startCamera,
8483
startMicrophone,
8584
]);

examples/video-chat/ios/FishjamExample.xcodeproj/project.pbxproj

+86-86
Large diffs are not rendered by default.

examples/video-chat/ios/Podfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ target 'FishjamExample' do
5757
:mac_catalyst_enabled => false
5858
)
5959
end
60+
pod 'FishjamClient', :git => 'https://github.com/fishjam-dev/ios-client-sdk.git', :commit => '9d22ecaf75cc563a24212c13e15cd83a3f76ac0f'
6061
end
6162

63+
64+
6265
target 'ScreenBroadcast' do
63-
pod 'FishjamClient/Broadcast'
66+
pod 'FishjamClient/Broadcast', :git => 'https://github.com/fishjam-dev/ios-client-sdk.git', :commit => '9d22ecaf75cc563a24212c13e15cd83a3f76ac0f'
6467
end

examples/video-chat/ios/Podfile.lock

+6-7
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ PODS:
3232
- React-Core (= 0.73.4)
3333
- React-jsi (= 0.73.4)
3434
- ReactCommon/turbomodule/core (= 0.73.4)
35-
- FishjamClient (0.3.0):
36-
- FishjamClient/Broadcast (= 0.3.0)
35+
- FishjamClient (0.3.1):
36+
- FishjamClient/Broadcast (= 0.3.1)
3737
- PromisesSwift
3838
- Starscream (~> 4.0.0)
3939
- SwiftLogJellyfish (= 1.5.2)
4040
- SwiftPhoenixClient (~> 5.0.0)
4141
- SwiftProtobuf (~> 1.18.0)
4242
- WebRTC-SDK (= 114.5735.08)
43-
- FishjamClient/Broadcast (0.3.0):
43+
- FishjamClient/Broadcast (0.3.1):
4444
- PromisesSwift
4545
- Starscream (~> 4.0.0)
4646
- SwiftLogJellyfish (= 1.5.2)
@@ -1098,7 +1098,7 @@ PODS:
10981098
- React-perflogger (= 0.73.4)
10991099
- RNFishjamClient (0.3.0):
11001100
- ExpoModulesCore
1101-
- FishjamClient (= 0.3.0)
1101+
- FishjamClient (= 0.3.1)
11021102
- RNGestureHandler (2.16.2):
11031103
- glog
11041104
- RCT-Folly (= 2022.05.16.00)
@@ -1201,7 +1201,6 @@ DEPENDENCIES:
12011201

12021202
SPEC REPOS:
12031203
trunk:
1204-
- FishjamClient
12051204
- fmt
12061205
- libevent
12071206
- PromisesObjC
@@ -1403,7 +1402,7 @@ SPEC CHECKSUMS:
14031402
React-runtimescheduler: ed48e5faac6751e66ee1261c4bd01643b436f112
14041403
React-utils: 6e5ad394416482ae21831050928ae27348f83487
14051404
ReactCommon: 840a955d37b7f3358554d819446bffcf624b2522
1406-
RNFishjamClient: 6a090b2a484c9f09ed8a42ccc434f1c3cd0bf201
1405+
RNFishjamClient: 6e7021e6d170aabdde759ebade44151960244a05
14071406
RNGestureHandler: 48c9d38f57c7761b4153def57b718f491f4bbb4b
14081407
RNNotifee: 8e2d3df3f0e9ce8f5d1fe4c967431138190b6175
14091408
RNReanimated: 029ae990587773fc20b938f06383eb492fb3a689
@@ -1417,6 +1416,6 @@ SPEC CHECKSUMS:
14171416
Yoga: 64cd2a583ead952b0315d5135bf39e053ae9be70
14181417
ZXingObjC: 8898711ab495761b2dbbdec76d90164a6d7e14c5
14191418

1420-
PODFILE CHECKSUM: 8daa796ed34dbeeeb2b648d198968b27b4c2ae8d
1419+
PODFILE CHECKSUM: 0376e85da25bcfda7c0095d7c9d174ee924ff49d
14211420

14221421
COCOAPODS: 1.14.2

examples/video-chat/screens/ConnectWithRoomManagerScreen.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useFishjamClient } from '@fishjam-dev/react-native-client';
1+
import { connect } from '@fishjam-dev/react-native-client';
22
import type { BottomTabScreenProps } from '@react-navigation/bottom-tabs';
33
import { CompositeScreenProps } from '@react-navigation/native';
44
import { NativeStackScreenProps } from '@react-navigation/native-stack';
@@ -50,7 +50,6 @@ async function getFishjamServer(
5050
}
5151

5252
const ConnectScreen = ({ navigation }: Props) => {
53-
const { connect } = useFishjamClient();
5453
const [connectionError, setConnectionError] = useState<string | null>(null);
5554
const [loading, setLoading] = useState(false);
5655

examples/video-chat/screens/ConnectWithTokenScreen.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useFishjamClient } from '@fishjam-dev/react-native-client';
1+
import { connect } from '@fishjam-dev/react-native-client';
22
import type { BottomTabScreenProps } from '@react-navigation/bottom-tabs';
33
import { CompositeScreenProps } from '@react-navigation/native';
44
import { NativeStackScreenProps } from '@react-navigation/native-stack';
@@ -32,7 +32,6 @@ type Props = CompositeScreenProps<
3232

3333
const { URL_INPUT, TOKEN_INPUT, CONNECT_BUTTON } = connectScreenLabels;
3434
const ConnectScreen = ({ navigation }: Props) => {
35-
const { connect } = useFishjamClient();
3635
const [connectionError, setConnectionError] = useState<string | null>(null);
3736

3837
const [peerToken, onChangePeerToken] = useState('');

examples/video-chat/screens/RoomScreen.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {
2-
useFishjamClient,
2+
cleanUp,
33
usePeers,
44
useScreencast,
55
ScreencastQuality,
@@ -40,7 +40,6 @@ const RoomScreen = ({ navigation, route }: Props) => {
4040
userName,
4141
} = route?.params;
4242
usePreventBackButton();
43-
const { cleanUp } = useFishjamClient();
4443
const audioSettings = useAudioSettings();
4544

4645
const { joinRoom } = useJoinRoom({
@@ -57,6 +56,7 @@ const RoomScreen = ({ navigation, route }: Props) => {
5756
}, [joinRoom]);
5857

5958
const peers = usePeers();
59+
6060
const tracks = useMemo(
6161
() =>
6262
peers.flatMap((peer) =>
@@ -72,7 +72,7 @@ const RoomScreen = ({ navigation, route }: Props) => {
7272
const onDisconnectPress = useCallback(() => {
7373
cleanUp();
7474
navigation.navigate('Home');
75-
}, [navigation, cleanUp]);
75+
}, [navigation]);
7676

7777
const onToggleScreenCast = useCallback(() => {
7878
toggleScreencast({

0 commit comments

Comments
 (0)