Skip to content

Commit

Permalink
fixed web compilation (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brazol authored Jan 20, 2025
1 parent 41c172f commit b3738a7
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 12 deletions.
1 change: 1 addition & 0 deletions dogfooding/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies:
stream_video_screen_sharing: ^0.7.1

dependency_overrides:
just_audio_web: ^0.4.13
wakelock_plus: ^1.2.9
stream_video:
path: ../packages/stream_video
Expand Down
37 changes: 29 additions & 8 deletions dogfooding/web/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html>

<head>
<!--
If you are serving your web app in a path other than the root, change the
Expand Down Expand Up @@ -28,35 +29,55 @@

<!-- Google Sign In -->
<script src="https://apis.google.com/js/platform.js" async defer></script>
<meta name="google-signin-client_id" content="347024607410-ett7cjt6ah9aj6s6k20p5fissj80d9la.apps.googleusercontent.com">
<meta name="google-signin-client_id"
content="347024607410-ett7cjt6ah9aj6s6k20p5fissj80d9la.apps.googleusercontent.com">

<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/>
<link rel="icon" type="image/png" href="favicon.png" />

<title>dogfooding</title>
<link rel="manifest" href="manifest.json">

<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
{ { flutter_service_worker_version } }
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head>

<body>
<script>
window.addEventListener('load', function(ev) {
window.addEventListener('load', function (ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
_flutter.loader.load({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
}
}).then(function(engineInitializer) {
}).then(function (engineInitializer) {
return engineInitializer.initializeEngine();
}).then(function(appRunner) {
}).then(function (appRunner) {
return appRunner.runApp();
});
});
</script>

<script src="https://www.gstatic.com/firebasejs/7.20.0/firebase-app.js"></script>

<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: 'AIzaSyB1swZGD2U9qEKV4xYKlr9KBHeysTHJ_1w',
authDomain: 'stream-video-9b586.firebaseapp.com',
projectId: 'stream-video-9b586',
messagingSenderId: '347024607410',
appId: '1:347024607410:web:fd70974cbc1256bb8c21ab',
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>

<script src="main.dart.js" type="application/javascript"></script>
</body>
</html>

</html>
2 changes: 1 addition & 1 deletion packages/stream_video/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies:
rxdart: ^0.28.0
sdp_transform: ^0.3.2
state_notifier: ^1.0.0
stream_webrtc_flutter: ^0.12.5+1
stream_webrtc_flutter: ^0.12.5+2
synchronized: ^3.1.0
system_info2: ^4.0.0
tart: ^0.5.1
Expand Down
2 changes: 1 addition & 1 deletion packages/stream_video_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies:
stream_video: ^0.7.1
stream_video_flutter: ^0.7.1
stream_video_push_notification: ^0.7.1
stream_webrtc_flutter: ^0.12.5+1
stream_webrtc_flutter: ^0.12.5+2

dependency_overrides:
stream_video:
Expand Down
2 changes: 1 addition & 1 deletion packages/stream_video_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
plugin_platform_interface: ^2.1.8
rate_limiter: ^1.0.0
stream_video: ^0.7.1
stream_webrtc_flutter: ^0.12.5+1
stream_webrtc_flutter: ^0.12.5+2
visibility_detector: ^0.4.0+2

dev_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion packages/stream_video_push_notification/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies:
stream_video: ^0.7.1
uuid: ^4.2.1
shared_preferences: ^2.3.2
stream_webrtc_flutter: ^0.12.5+1
stream_webrtc_flutter: ^0.12.5+2

dev_dependencies:
build_runner: ^2.4.4
Expand Down

0 comments on commit b3738a7

Please sign in to comment.