diff --git a/.gitignore b/.gitignore
index bd60d1b62..017cfbe4a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,6 +46,9 @@ sample apps/flutter-quickstart-app/.dart_tool/
sample apps/hms-callkit-app/.dart_tool/
sample apps/flutter-quickstart-app/build/ios/Pods.build/
sample apps/hms-callkit-app/.dart_tool/flutter_build/
+sample apps/flutter-meet/.dart_tool/
+sample apps/flutter-meet/android/.idea/
+
##GIT Files
.dart_tool/package_config.json
diff --git a/packages/hms_room_kit/lib/src/preview/preview_bottom_button_section.dart b/packages/hms_room_kit/lib/src/preview/preview_bottom_button_section.dart
index 7435591ef..7ade631bf 100644
--- a/packages/hms_room_kit/lib/src/preview/preview_bottom_button_section.dart
+++ b/packages/hms_room_kit/lib/src/preview/preview_bottom_button_section.dart
@@ -118,7 +118,7 @@ class PreviewBottomButtonSection extends StatelessWidget {
onTap: () {
previewStore.toggleNoiseCancellation();
},
- isActive: previewStore.isNoiseCancellationEnabled,
+ isActive: !previewStore.isNoiseCancellationEnabled,
child: SvgPicture.asset(
'packages/hms_room_kit/lib/src/assets/icons/music_wave.svg',
colorFilter: ColorFilter.mode(
diff --git a/packages/hmssdk_flutter/example/android/app/src/main/AndroidManifest.xml b/packages/hmssdk_flutter/example/android/app/src/main/AndroidManifest.xml
index a018755ed..b62c8b15d 100644
--- a/packages/hmssdk_flutter/example/android/app/src/main/AndroidManifest.xml
+++ b/packages/hmssdk_flutter/example/android/app/src/main/AndroidManifest.xml
@@ -73,6 +73,12 @@
+
+
2.1)
- FirebaseSharedSwift (10.23.0)
- Flutter (1.0.0)
+ - flutter_foreground_task (0.0.1):
+ - Flutter
- GoogleDataTransport (9.4.1):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30911.0, >= 2.30908.0)
@@ -188,6 +190,7 @@ DEPENDENCIES:
- firebase_dynamic_links (from `.symlinks/plugins/firebase_dynamic_links/ios`)
- firebase_performance (from `.symlinks/plugins/firebase_performance/ios`)
- Flutter (from `Flutter`)
+ - flutter_foreground_task (from `.symlinks/plugins/flutter_foreground_task/ios`)
- HMSBroadcastExtensionSDK
- hmssdk_flutter (from `.symlinks/plugins/hmssdk_flutter/ios`)
- mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`)
@@ -246,6 +249,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/firebase_performance/ios"
Flutter:
:path: Flutter
+ flutter_foreground_task:
+ :path: ".symlinks/plugins/flutter_foreground_task/ios"
hmssdk_flutter:
:path: ".symlinks/plugins/hmssdk_flutter/ios"
mobile_scanner:
@@ -283,6 +288,7 @@ SPEC CHECKSUMS:
FirebaseSessions: f06853e30f99fe42aa511014d7ee6c8c319f08a3
FirebaseSharedSwift: c92645b392db3c41a83a0aa967de16f8bad25568
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
+ flutter_foreground_task: 21ef182ab0a29a3005cc72cd70e5f45cb7f7f817
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
GoogleMLKit: 2bd0dc6253c4d4f227aad460f69215a504b2980e
GoogleToolboxForMac: 8bef7c7c5cf7291c687cf5354f39f9db6399ad34
@@ -313,4 +319,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 9fb9f6e431a2c6c79942252e94b241ac7972ac90
-COCOAPODS: 1.15.2
+COCOAPODS: 1.14.3
diff --git a/packages/hmssdk_flutter/example/ios/Runner/AppDelegate.swift b/packages/hmssdk_flutter/example/ios/Runner/AppDelegate.swift
index 70693e4a8..0e33de35f 100644
--- a/packages/hmssdk_flutter/example/ios/Runner/AppDelegate.swift
+++ b/packages/hmssdk_flutter/example/ios/Runner/AppDelegate.swift
@@ -8,6 +8,16 @@ import Flutter
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
+
+ SwiftFlutterForegroundTaskPlugin.setPluginRegistrantCallback(registerPlugins)
+ if #available(iOS 10.0, *) {
+ UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
+ }
+
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
+
+func registerPlugins(registry: FlutterPluginRegistry) {
+ GeneratedPluginRegistrant.register(with: registry)
+}
diff --git a/packages/hmssdk_flutter/example/ios/Runner/Runner-Bridging-Header.h b/packages/hmssdk_flutter/example/ios/Runner/Runner-Bridging-Header.h
index 308a2a560..10e9f0256 100644
--- a/packages/hmssdk_flutter/example/ios/Runner/Runner-Bridging-Header.h
+++ b/packages/hmssdk_flutter/example/ios/Runner/Runner-Bridging-Header.h
@@ -1 +1,2 @@
#import "GeneratedPluginRegistrant.h"
+#import
diff --git a/packages/hmssdk_flutter/example/lib/foreground_task_handler.dart b/packages/hmssdk_flutter/example/lib/foreground_task_handler.dart
new file mode 100644
index 000000000..1459ffc0e
--- /dev/null
+++ b/packages/hmssdk_flutter/example/lib/foreground_task_handler.dart
@@ -0,0 +1,82 @@
+import 'dart:isolate';
+
+import 'package:flutter_foreground_task/flutter_foreground_task.dart';
+import 'package:hmssdk_flutter_example/main.dart';
+
+///[ForegroundTaskHandler] is a class that extends [TaskHandler]
+///This class is used to handle the foreground task
+class ForegroundTaskHandler extends TaskHandler {
+ SendPort? _sendPort;
+
+ // Called when the task is started.
+ @override
+ void onStart(DateTime timestamp, SendPort? sendPort) async {
+ _sendPort = sendPort;
+
+ // You can use the getData function to get the stored data.
+ final customData =
+ await FlutterForegroundTask.getData(key: 'customData');
+ print('customData: $customData');
+ }
+
+ // Called every [interval] milliseconds in [ForegroundTaskOptions].
+ @override
+ void onRepeatEvent(DateTime timestamp, SendPort? sendPort) async {
+ // Send data to the main isolate.
+ sendPort?.send(timestamp);
+ }
+
+ // Called when the notification button on the Android platform is pressed.
+ @override
+ void onDestroy(DateTime timestamp, SendPort? sendPort) async {}
+
+ // Called when the notification button on the Android platform is pressed.
+ @override
+ void onNotificationButtonPressed(String id) {
+ print('onNotificationButtonPressed >> $id');
+ }
+
+ // Called when the notification itself on the Android platform is pressed.
+ //
+ // "android.permission.SYSTEM_ALERT_WINDOW" permission must be granted for
+ // this function to be called.
+ @override
+ void onNotificationPressed() {
+ // Note that the app will only route to "/resume-route" when it is exited so
+ // it will usually be necessary to send a message through the send port to
+ // signal it to restore state when the app is already started.
+ FlutterForegroundTask.launchApp("/resume-route");
+ _sendPort?.send('onNotificationPressed');
+ }
+}
+
+void initForegroundTask() {
+ FlutterForegroundTask.init(
+ androidNotificationOptions: AndroidNotificationOptions(
+ channelId: '100ms_flutter_notification',
+ channelName: '100ms Flutter Notification',
+ channelDescription:
+ 'This notification appears when the foreground service is running.',
+ channelImportance: NotificationChannelImportance.LOW,
+ priority: NotificationPriority.LOW,
+ iconData: NotificationIconData(
+ resType: ResourceType.mipmap,
+ resPrefix: ResourcePrefix.ic,
+ name: "launcher")),
+ iosNotificationOptions:
+ const IOSNotificationOptions(showNotification: false),
+ foregroundTaskOptions: const ForegroundTaskOptions(),
+ );
+
+ ///[startService] starts the foreground task
+ FlutterForegroundTask.startService(
+ notificationTitle: 'Foreground Service is running',
+ notificationText: 'Tap to return to the app',
+ callback: startCallback);
+}
+
+///[stopForegroundTask] stops the foreground task
+///Called in onLeave callback
+void stopForegroundTask() {
+ FlutterForegroundTask.stopService();
+}
diff --git a/packages/hmssdk_flutter/example/lib/main.dart b/packages/hmssdk_flutter/example/lib/main.dart
index a90ddd1e3..e83e67305 100644
--- a/packages/hmssdk_flutter/example/lib/main.dart
+++ b/packages/hmssdk_flutter/example/lib/main.dart
@@ -10,9 +10,11 @@ import 'package:firebase_dynamic_links/firebase_dynamic_links.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
+import 'package:flutter_foreground_task/flutter_foreground_task.dart';
import 'package:flutter_svg/svg.dart';
import 'package:hms_room_kit/hms_room_kit.dart';
import 'package:hmssdk_flutter_example/app_settings_bottom_sheet.dart';
+import 'package:hmssdk_flutter_example/foreground_task_handler.dart';
import 'package:hmssdk_flutter_example/qr_code_screen.dart';
import 'package:hmssdk_flutter_example/room_service.dart';
import 'package:lottie/lottie.dart';
@@ -50,6 +52,13 @@ void main() async {
runApp(HMSExampleApp(initialLink: initialLink?.link));
}
+///This function sets up the foreground service interaction
+@pragma('vm:entry-point')
+void startCallback() {
+ // The setTaskHandler function must be called to handle the task in the background.
+ FlutterForegroundTask.setTaskHandler(ForegroundTaskHandler());
+}
+
class HMSExampleApp extends StatefulWidget {
final Uri? initialLink;
HMSExampleApp({Key? key, this.initialLink}) : super(key: key);
@@ -320,23 +329,27 @@ class _HomePageState extends State {
Utilities.saveStringData(
key: "meetingLink", value: meetingLinkController.text.trim());
FocusManager.instance.primaryFocus?.unfocus();
+ initForegroundTask();
Navigator.push(
context,
MaterialPageRoute(
- builder: (_) => HMSPrebuilt(
- roomCode: Constant.roomCode,
- options: HMSPrebuiltOptions(
- userName: AppDebugConfig.nameChangeOnPreview
- ? null
- : "Flutter User",
- endPoints: endPoints,
- userId:
- uuidString, // pass your custom unique user identifier here
- iOSScreenshareConfig: HMSIOSScreenshareConfig(
- appGroup: "group.flutterhms",
- preferredExtension:
- "live.100ms.flutter.FlutterBroadcastUploadExtension"),
- enableNoiseCancellation: true))));
+ builder: (_) => WithForegroundTask(
+ child: HMSPrebuilt(
+ roomCode: Constant.roomCode,
+ onLeave: stopForegroundTask,
+ options: HMSPrebuiltOptions(
+ userName: AppDebugConfig.nameChangeOnPreview
+ ? null
+ : "Flutter User",
+ endPoints: endPoints,
+ userId:
+ uuidString, // pass your custom unique user identifier here
+ iOSScreenshareConfig: HMSIOSScreenshareConfig(
+ appGroup: "group.flutterhms",
+ preferredExtension:
+ "live.100ms.flutter.FlutterBroadcastUploadExtension"),
+ enableNoiseCancellation: true)),
+ )));
}
@override
diff --git a/packages/hmssdk_flutter/example/lib/qr_code_screen.dart b/packages/hmssdk_flutter/example/lib/qr_code_screen.dart
index 00c251d2e..9b15738e9 100644
--- a/packages/hmssdk_flutter/example/lib/qr_code_screen.dart
+++ b/packages/hmssdk_flutter/example/lib/qr_code_screen.dart
@@ -3,10 +3,13 @@ import 'dart:developer';
///Package imports
import 'package:flutter/material.dart';
+import 'package:flutter_foreground_task/flutter_foreground_task.dart';
import 'package:hms_room_kit/hms_room_kit.dart';
+import 'package:hmssdk_flutter_example/foreground_task_handler.dart';
import 'package:hmssdk_flutter_example/room_service.dart';
import 'package:mobile_scanner/mobile_scanner.dart';
+///[QRCodeScreen] is a StatefulWidget that is used to handle the scan the QR code functionality
class QRCodeScreen extends StatefulWidget {
final String uuidString;
QRCodeScreen({Key? key, required this.uuidString}) : super(key: key);
@@ -72,20 +75,24 @@ class _QRCodeScreenState extends State {
Constant.roomCode = rawValue.trim();
}
Utilities.saveStringData(key: "meetingLink", value: rawValue.trim());
+ initForegroundTask();
Navigator.of(context).pushReplacement(MaterialPageRoute(
- builder: (_) => HMSPrebuilt(
- roomCode: Constant.roomCode,
- options: HMSPrebuiltOptions(
- userName: AppDebugConfig.nameChangeOnPreview
- ? null
- : "Flutter User",
- userId: widget.uuidString,
- endPoints: endPoints,
- iOSScreenshareConfig: HMSIOSScreenshareConfig(
- appGroup: "group.flutterhms",
- preferredExtension:
- "live.100ms.flutter.FlutterBroadcastUploadExtension"),
- enableNoiseCancellation: true))));
+ builder: (_) => WithForegroundTask(
+ child: HMSPrebuilt(
+ roomCode: Constant.roomCode,
+ onLeave: stopForegroundTask,
+ options: HMSPrebuiltOptions(
+ userName: AppDebugConfig.nameChangeOnPreview
+ ? null
+ : "Flutter User",
+ userId: widget.uuidString,
+ endPoints: endPoints,
+ iOSScreenshareConfig: HMSIOSScreenshareConfig(
+ appGroup: "group.flutterhms",
+ preferredExtension:
+ "live.100ms.flutter.FlutterBroadcastUploadExtension"),
+ enableNoiseCancellation: true)),
+ )));
}
}
} catch (e) {
diff --git a/packages/hmssdk_flutter/example/pubspec.lock b/packages/hmssdk_flutter/example/pubspec.lock
index ef5f8c86b..10a9a3805 100644
--- a/packages/hmssdk_flutter/example/pubspec.lock
+++ b/packages/hmssdk_flutter/example/pubspec.lock
@@ -238,6 +238,14 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
+ flutter_foreground_task:
+ dependency: "direct main"
+ description:
+ name: flutter_foreground_task
+ sha256: "9bcfcb43bba4a5446a056e723d21118ff6e184926b5557365c32c13caca157c2"
+ url: "https://pub.dev"
+ source: hosted
+ version: "6.1.3"
flutter_linkify:
dependency: transitive
description:
diff --git a/packages/hmssdk_flutter/example/pubspec.yaml b/packages/hmssdk_flutter/example/pubspec.yaml
index e3d037887..836a27fde 100644
--- a/packages/hmssdk_flutter/example/pubspec.yaml
+++ b/packages/hmssdk_flutter/example/pubspec.yaml
@@ -25,7 +25,8 @@ dependencies:
url_launcher:
mobile_scanner:
app_links:
- uuid:
+ uuid:
+ flutter_foreground_task: ^6.1.3
dev_dependencies:
flutter_test:
diff --git a/sample apps/flutter-meet/.flutter-plugins b/sample apps/flutter-meet/.flutter-plugins
new file mode 100644
index 000000000..02dbe7aa6
--- /dev/null
+++ b/sample apps/flutter-meet/.flutter-plugins
@@ -0,0 +1,6 @@
+# This is a generated file; do not edit or check into version control.
+hmssdk_flutter=/Users/decode/.pub-cache/hosted/pub.dev/hmssdk_flutter-1.9.14/
+permission_handler=/Users/decode/.pub-cache/hosted/pub.dev/permission_handler-11.0.0/
+permission_handler_android=/Users/decode/.pub-cache/hosted/pub.dev/permission_handler_android-11.0.1/
+permission_handler_apple=/Users/decode/.pub-cache/hosted/pub.dev/permission_handler_apple-9.1.4/
+permission_handler_windows=/Users/decode/.pub-cache/hosted/pub.dev/permission_handler_windows-0.1.3/
diff --git a/sample apps/flutter-meet/.flutter-plugins-dependencies b/sample apps/flutter-meet/.flutter-plugins-dependencies
new file mode 100644
index 000000000..3cab88068
--- /dev/null
+++ b/sample apps/flutter-meet/.flutter-plugins-dependencies
@@ -0,0 +1 @@
+{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"hmssdk_flutter","path":"/Users/decode/.pub-cache/hosted/pub.dev/hmssdk_flutter-1.9.14/","native_build":true,"dependencies":[]},{"name":"permission_handler_apple","path":"/Users/decode/.pub-cache/hosted/pub.dev/permission_handler_apple-9.1.4/","native_build":true,"dependencies":[]}],"android":[{"name":"hmssdk_flutter","path":"/Users/decode/.pub-cache/hosted/pub.dev/hmssdk_flutter-1.9.14/","native_build":true,"dependencies":[]},{"name":"permission_handler_android","path":"/Users/decode/.pub-cache/hosted/pub.dev/permission_handler_android-11.0.1/","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[{"name":"permission_handler_windows","path":"/Users/decode/.pub-cache/hosted/pub.dev/permission_handler_windows-0.1.3/","native_build":true,"dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"hmssdk_flutter","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]}],"date_created":"2024-04-02 12:09:59.548114","version":"3.13.5"}
\ No newline at end of file
diff --git a/sample apps/flutter-meet/README.md b/sample apps/flutter-meet/README.md
new file mode 100644
index 000000000..08ab7d3d1
--- /dev/null
+++ b/sample apps/flutter-meet/README.md
@@ -0,0 +1,28 @@
+# Flutter x Meet - Google Meet clone made in Flutter
+
+Google Meet clone made in Flutter using 100ms.
+
+## User Interface
+
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+## Demo
+
+https://user-images.githubusercontent.com/53579386/153129731-a5123b2a-c782-4c06-8d49-a6a431d8fa6d.mp4
+
diff --git a/sample apps/flutter-meet/analysis_options.yaml b/sample apps/flutter-meet/analysis_options.yaml
new file mode 100644
index 000000000..61b6c4de1
--- /dev/null
+++ b/sample apps/flutter-meet/analysis_options.yaml
@@ -0,0 +1,29 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at
+ # https://dart-lang.github.io/linter/lints/index.html.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/sample apps/flutter-meet/android/.gitignore b/sample apps/flutter-meet/android/.gitignore
new file mode 100644
index 000000000..9eaee1a5c
--- /dev/null
+++ b/sample apps/flutter-meet/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks
\ No newline at end of file
diff --git a/sample apps/flutter-meet/android/app/build.gradle b/sample apps/flutter-meet/android/app/build.gradle
new file mode 100644
index 000000000..f24c1f9e2
--- /dev/null
+++ b/sample apps/flutter-meet/android/app/build.gradle
@@ -0,0 +1,68 @@
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterRoot = localProperties.getProperty('flutter.sdk')
+if (flutterRoot == null) {
+ throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
+
+android {
+ compileSdkVersion 31
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+
+ sourceSets {
+ main.java.srcDirs += 'src/main/kotlin'
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "com.aditya.google_meet"
+ minSdkVersion 21
+ targetSdkVersion 31
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig signingConfigs.debug
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+}
diff --git a/sample apps/flutter-meet/android/app/src/debug/AndroidManifest.xml b/sample apps/flutter-meet/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 000000000..4e8a9c6eb
--- /dev/null
+++ b/sample apps/flutter-meet/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/sample apps/flutter-meet/android/app/src/main/AndroidManifest.xml b/sample apps/flutter-meet/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 000000000..1e3d8ba5d
--- /dev/null
+++ b/sample apps/flutter-meet/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sample apps/flutter-meet/android/app/src/main/kotlin/com/aditya/google_meet/MainActivity.kt b/sample apps/flutter-meet/android/app/src/main/kotlin/com/aditya/google_meet/MainActivity.kt
new file mode 100644
index 000000000..585878b3c
--- /dev/null
+++ b/sample apps/flutter-meet/android/app/src/main/kotlin/com/aditya/google_meet/MainActivity.kt
@@ -0,0 +1,6 @@
+package com.aditya.google_meet
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
diff --git a/sample apps/flutter-meet/android/app/src/main/res/drawable-v21/launch_background.xml b/sample apps/flutter-meet/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 000000000..f74085f3f
--- /dev/null
+++ b/sample apps/flutter-meet/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/sample apps/flutter-meet/android/app/src/main/res/drawable/launch_background.xml b/sample apps/flutter-meet/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 000000000..304732f88
--- /dev/null
+++ b/sample apps/flutter-meet/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/sample apps/flutter-meet/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/sample apps/flutter-meet/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 000000000..db77bb4b7
Binary files /dev/null and b/sample apps/flutter-meet/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/sample apps/flutter-meet/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/sample apps/flutter-meet/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 000000000..17987b79b
Binary files /dev/null and b/sample apps/flutter-meet/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/sample apps/flutter-meet/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/sample apps/flutter-meet/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 000000000..09d439148
Binary files /dev/null and b/sample apps/flutter-meet/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/sample apps/flutter-meet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/sample apps/flutter-meet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 000000000..d5f1c8d34
Binary files /dev/null and b/sample apps/flutter-meet/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/sample apps/flutter-meet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/sample apps/flutter-meet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 000000000..4d6372eeb
Binary files /dev/null and b/sample apps/flutter-meet/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/sample apps/flutter-meet/android/app/src/main/res/values-night/styles.xml b/sample apps/flutter-meet/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 000000000..449a9f930
--- /dev/null
+++ b/sample apps/flutter-meet/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/sample apps/flutter-meet/android/app/src/main/res/values/styles.xml b/sample apps/flutter-meet/android/app/src/main/res/values/styles.xml
new file mode 100644
index 000000000..d74aa35c2
--- /dev/null
+++ b/sample apps/flutter-meet/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/sample apps/flutter-meet/android/app/src/profile/AndroidManifest.xml b/sample apps/flutter-meet/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 000000000..4e8a9c6eb
--- /dev/null
+++ b/sample apps/flutter-meet/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/sample apps/flutter-meet/android/build.gradle b/sample apps/flutter-meet/android/build.gradle
new file mode 100644
index 000000000..c45f25cc9
--- /dev/null
+++ b/sample apps/flutter-meet/android/build.gradle
@@ -0,0 +1,29 @@
+buildscript {
+ ext.kotlin_version = '1.5.31'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:4.1.0'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+ project.evaluationDependsOn(':app')
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/sample apps/flutter-meet/android/gradle.properties b/sample apps/flutter-meet/android/gradle.properties
new file mode 100644
index 000000000..94adc3a3f
--- /dev/null
+++ b/sample apps/flutter-meet/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/sample apps/flutter-meet/android/gradle/wrapper/gradle-wrapper.properties b/sample apps/flutter-meet/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 000000000..bc6a58afd
--- /dev/null
+++ b/sample apps/flutter-meet/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Fri Jun 23 08:50:38 CEST 2017
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
diff --git a/sample apps/flutter-meet/android/settings.gradle b/sample apps/flutter-meet/android/settings.gradle
new file mode 100644
index 000000000..44e62bcf0
--- /dev/null
+++ b/sample apps/flutter-meet/android/settings.gradle
@@ -0,0 +1,11 @@
+include ':app'
+
+def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
+def properties = new Properties()
+
+assert localPropertiesFile.exists()
+localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
+
+def flutterSdkPath = properties.getProperty("flutter.sdk")
+assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
diff --git a/sample apps/flutter-meet/ios/.gitignore b/sample apps/flutter-meet/ios/.gitignore
new file mode 100644
index 000000000..151026b91
--- /dev/null
+++ b/sample apps/flutter-meet/ios/.gitignore
@@ -0,0 +1,33 @@
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/sample apps/flutter-meet/ios/Flutter/AppFrameworkInfo.plist b/sample apps/flutter-meet/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 000000000..9625e105d
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 11.0
+
+
diff --git a/sample apps/flutter-meet/ios/Flutter/Debug.xcconfig b/sample apps/flutter-meet/ios/Flutter/Debug.xcconfig
new file mode 100644
index 000000000..ec97fc6f3
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Flutter/Debug.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"
diff --git a/sample apps/flutter-meet/ios/Flutter/Release.xcconfig b/sample apps/flutter-meet/ios/Flutter/Release.xcconfig
new file mode 100644
index 000000000..c4855bfe2
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Flutter/Release.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"
diff --git a/sample apps/flutter-meet/ios/Podfile b/sample apps/flutter-meet/ios/Podfile
new file mode 100644
index 000000000..2c068c404
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Podfile
@@ -0,0 +1,41 @@
+# Uncomment this line to define a global platform for your project
+platform :ios, '12.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def flutter_root
+ generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+ end
+
+ File.foreach(generated_xcode_build_settings_path) do |line|
+ matches = line.match(/FLUTTER_ROOT\=(.*)/)
+ return matches[1].strip if matches
+ end
+ raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_ios_podfile_setup
+
+target 'Runner' do
+ use_frameworks!
+ use_modular_headers!
+
+ flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_ios_build_settings(target)
+ end
+end
diff --git a/sample apps/flutter-meet/ios/Podfile.lock b/sample apps/flutter-meet/ios/Podfile.lock
new file mode 100644
index 000000000..925be2d21
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Podfile.lock
@@ -0,0 +1,52 @@
+PODS:
+ - Flutter (1.0.0)
+ - HMSAnalyticsSDK (0.0.2)
+ - HMSBroadcastExtensionSDK (0.0.9)
+ - HMSHLSPlayerSDK (0.0.2):
+ - HMSAnalyticsSDK (= 0.0.2)
+ - HMSSDK (1.8.0):
+ - HMSAnalyticsSDK (= 0.0.2)
+ - HMSWebRTC (= 1.0.5118)
+ - hmssdk_flutter (1.9.13):
+ - Flutter
+ - HMSBroadcastExtensionSDK (= 0.0.9)
+ - HMSHLSPlayerSDK (= 0.0.2)
+ - HMSSDK (= 1.8.0)
+ - HMSWebRTC (1.0.5118)
+ - permission_handler_apple (9.1.1):
+ - Flutter
+
+DEPENDENCIES:
+ - Flutter (from `Flutter`)
+ - hmssdk_flutter (from `.symlinks/plugins/hmssdk_flutter/ios`)
+ - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
+
+SPEC REPOS:
+ trunk:
+ - HMSAnalyticsSDK
+ - HMSBroadcastExtensionSDK
+ - HMSHLSPlayerSDK
+ - HMSSDK
+ - HMSWebRTC
+
+EXTERNAL SOURCES:
+ Flutter:
+ :path: Flutter
+ hmssdk_flutter:
+ :path: ".symlinks/plugins/hmssdk_flutter/ios"
+ permission_handler_apple:
+ :path: ".symlinks/plugins/permission_handler_apple/ios"
+
+SPEC CHECKSUMS:
+ Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
+ HMSAnalyticsSDK: 4d2a88a729b1eb42f3d25f217c28937ec318a5b7
+ HMSBroadcastExtensionSDK: d80fe325f6c928bd8e5176290b5a4b7ae15d6fbb
+ HMSHLSPlayerSDK: 6a54ad4d12f3dc2270d1ecd24019d71282a4f6a3
+ HMSSDK: c893d1381a47ed02760ef6d06625b9aa5251f998
+ hmssdk_flutter: 5ef8ca6090c52e483b97fd83388f52226683acac
+ HMSWebRTC: 4487c7200f1e9358412c1d8cd974edd2766467dc
+ permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6
+
+PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048
+
+COCOAPODS: 1.14.3
diff --git a/sample apps/flutter-meet/ios/Runner.xcodeproj/project.pbxproj b/sample apps/flutter-meet/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 000000000..e17d67a66
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,553 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 2371D033973B24A1C340A525 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A0AD855CF4567DC30CAD483 /* Pods_Runner.framework */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 21345B2746967EA0699C074A /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 547D205340128221C5F91408 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
+ 5A0AD855CF4567DC30CAD483 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 95E1992BEAEFA50099FE208D /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 2371D033973B24A1C340A525 /* Pods_Runner.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 5049761ABA9E0CE22A8A1D6F /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 5A0AD855CF4567DC30CAD483 /* Pods_Runner.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ DBB9290F9630C7CA79CD64C9 /* Pods */,
+ 5049761ABA9E0CE22A8A1D6F /* Frameworks */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+ DBB9290F9630C7CA79CD64C9 /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ 21345B2746967EA0699C074A /* Pods-Runner.debug.xcconfig */,
+ 547D205340128221C5F91408 /* Pods-Runner.release.xcconfig */,
+ 95E1992BEAEFA50099FE208D /* Pods-Runner.profile.xcconfig */,
+ );
+ path = Pods;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 57194981EC0E39AEB0391C82 /* [CP] Check Pods Manifest.lock */,
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ 49D4B7825B78F7C43DA3A078 /* [CP] Embed Pods Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 1430;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 49D4B7825B78F7C43DA3A078 /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputFileListPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 57194981EC0E39AEB0391C82 /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = 5N85PP82A9;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.aditya.googleMeet;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = 5N85PP82A9;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.aditya.googleMeet;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ DEVELOPMENT_TEAM = 5N85PP82A9;
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = com.aditya.googleMeet;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/sample apps/flutter-meet/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/sample apps/flutter-meet/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 000000000..919434a62
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/sample apps/flutter-meet/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/sample apps/flutter-meet/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 000000000..18d981003
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/sample apps/flutter-meet/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/sample apps/flutter-meet/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 000000000..f9b0d7c5e
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/sample apps/flutter-meet/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/sample apps/flutter-meet/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 000000000..b52b2e698
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sample apps/flutter-meet/ios/Runner.xcworkspace/contents.xcworkspacedata b/sample apps/flutter-meet/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 000000000..21a3cc14c
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/sample apps/flutter-meet/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/sample apps/flutter-meet/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 000000000..18d981003
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/sample apps/flutter-meet/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/sample apps/flutter-meet/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 000000000..f9b0d7c5e
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/sample apps/flutter-meet/ios/Runner/AppDelegate.swift b/sample apps/flutter-meet/ios/Runner/AppDelegate.swift
new file mode 100644
index 000000000..70693e4a8
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import UIKit
+import Flutter
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 000000000..d36b1fab2
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 000000000..dc9ada472
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 000000000..28c6bf030
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 000000000..2ccbfd967
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 000000000..f091b6b0b
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 000000000..4cde12118
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 000000000..d0ef06e7e
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 000000000..dcdc2306c
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 000000000..2ccbfd967
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 000000000..c8f9ed8f5
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 000000000..a6d6b8609
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 000000000..a6d6b8609
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 000000000..75b2d164a
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 000000000..c4df70d39
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 000000000..6a84f41e1
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 000000000..d0e1f5853
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 000000000..0bedcf2fd
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 000000000..9da19eaca
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 000000000..9da19eaca
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 000000000..9da19eaca
Binary files /dev/null and b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 000000000..89c2725b7
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/sample apps/flutter-meet/ios/Runner/Base.lproj/LaunchScreen.storyboard b/sample apps/flutter-meet/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 000000000..f2e259c7c
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sample apps/flutter-meet/ios/Runner/Base.lproj/Main.storyboard b/sample apps/flutter-meet/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 000000000..f3c28516f
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sample apps/flutter-meet/ios/Runner/Info.plist b/sample apps/flutter-meet/ios/Runner/Info.plist
new file mode 100644
index 000000000..eab6e6e9e
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner/Info.plist
@@ -0,0 +1,55 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ google_meet
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ NSCameraUsageDescription
+ 100ms needs access to Camera to enable high quality video conferencing.
+ NSLocalNetworkUsageDescription
+ 100ms needs access to Local Network to enable high quality video conferencing.
+ NSMicrophoneUsageDescription
+ 100ms needs access to Microphone to enable high quality video conferencing.
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/sample apps/flutter-meet/ios/Runner/Runner-Bridging-Header.h b/sample apps/flutter-meet/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 000000000..308a2a560
--- /dev/null
+++ b/sample apps/flutter-meet/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/sample apps/flutter-meet/lib/main.dart b/sample apps/flutter-meet/lib/main.dart
new file mode 100644
index 000000000..f8ab910eb
--- /dev/null
+++ b/sample apps/flutter-meet/lib/main.dart
@@ -0,0 +1,32 @@
+//Package imports
+import 'package:flutter/material.dart';
+
+//File imports
+import 'package:google_meet/screens/home_screen.dart';
+
+void main() {
+ runApp(const MyApp());
+}
+
+class MyApp extends StatelessWidget {
+ const MyApp({Key? key}) : super(key: key);
+
+ // This widget is the root of your application.
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp(
+ title: 'Flutter Meet',
+ theme: ThemeData(
+ primaryColor: Colors.grey[900],
+ outlinedButtonTheme: OutlinedButtonThemeData(
+ style: ButtonStyle(
+ shape: MaterialStateProperty.all(RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(20.0))),
+ backgroundColor: MaterialStateColor.resolveWith(
+ (states) => Colors.blueAccent),
+ foregroundColor: MaterialStateColor.resolveWith(
+ (states) => Colors.white)))),
+ home: const HomeScreen(),
+ );
+ }
+}
diff --git a/sample apps/flutter-meet/lib/models/data_store.dart b/sample apps/flutter-meet/lib/models/data_store.dart
new file mode 100644
index 000000000..7bf44bfaa
--- /dev/null
+++ b/sample apps/flutter-meet/lib/models/data_store.dart
@@ -0,0 +1,341 @@
+//Dart imports
+import 'dart:developer';
+
+//Package imports
+import 'package:flutter/material.dart';
+import 'package:hmssdk_flutter/hmssdk_flutter.dart';
+
+//File imports
+import 'package:google_meet/services/sdk_initializer.dart';
+
+class UserDataStore extends ChangeNotifier
+ implements HMSUpdateListener, HMSActionResultListener {
+ HMSTrack? remoteVideoTrack;
+ HMSPeer? remotePeer;
+ HMSTrack? remoteAudioTrack;
+ HMSVideoTrack? localTrack;
+ bool _disposed = false;
+ late HMSPeer localPeer;
+ bool isRoomEnded = false;
+
+ void startListen() {
+ SdkInitializer.hmssdk.addUpdateListener(listener: this);
+ }
+
+ void leaveRoom() async {
+ SdkInitializer.hmssdk.leave(hmsActionResultListener: this);
+ }
+
+ @override
+ void dispose() {
+ _disposed = true;
+ super.dispose();
+ }
+
+ @override
+ void notifyListeners() {
+ if (!_disposed) {
+ super.notifyListeners();
+ }
+ }
+
+ @override
+ void onJoin({required HMSRoom room}) {
+ for (HMSPeer each in room.peers!) {
+ if (each.isLocal) {
+ localPeer = each;
+ break;
+ }
+ }
+ }
+
+ @override
+ void onPeerUpdate({required HMSPeer peer, required HMSPeerUpdate update}) {
+ switch (update) {
+ case HMSPeerUpdate.peerJoined:
+ remotePeer = peer;
+ remoteAudioTrack = peer.audioTrack;
+ remoteVideoTrack = peer.videoTrack;
+ break;
+ case HMSPeerUpdate.peerLeft:
+ remotePeer = null;
+ break;
+ case HMSPeerUpdate.roleUpdated:
+ break;
+ case HMSPeerUpdate.metadataChanged:
+ break;
+ case HMSPeerUpdate.nameChanged:
+ break;
+ case HMSPeerUpdate.defaultUpdate:
+ break;
+ case HMSPeerUpdate.networkQualityUpdated:
+ break;
+ case HMSPeerUpdate.handRaiseUpdated:
+ break;
+ }
+ notifyListeners();
+ }
+
+ @override
+ void onTrackUpdate(
+ {required HMSTrack track,
+ required HMSTrackUpdate trackUpdate,
+ required HMSPeer peer}) {
+ switch (trackUpdate) {
+ case HMSTrackUpdate.trackAdded:
+ if (track.kind == HMSTrackKind.kHMSTrackKindAudio) {
+ if (!peer.isLocal) remoteAudioTrack = track;
+ } else if (track.kind == HMSTrackKind.kHMSTrackKindVideo) {
+ if (!peer.isLocal) {
+ remoteVideoTrack = track;
+ } else {
+ localTrack = track as HMSVideoTrack;
+ }
+ }
+ break;
+ case HMSTrackUpdate.trackRemoved:
+ if (track.kind == HMSTrackKind.kHMSTrackKindAudio) {
+ if (!peer.isLocal) remoteAudioTrack = null;
+ } else if (track.kind == HMSTrackKind.kHMSTrackKindVideo) {
+ if (!peer.isLocal) {
+ remoteVideoTrack = null;
+ } else {
+ localTrack = null;
+ }
+ }
+ break;
+ case HMSTrackUpdate.trackMuted:
+ if (track.kind == HMSTrackKind.kHMSTrackKindAudio) {
+ if (!peer.isLocal) remoteAudioTrack = track;
+ } else if (track.kind == HMSTrackKind.kHMSTrackKindVideo) {
+ if (!peer.isLocal) {
+ remoteVideoTrack = track;
+ } else {
+ localTrack = null;
+ }
+ }
+ break;
+ case HMSTrackUpdate.trackUnMuted:
+ if (track.kind == HMSTrackKind.kHMSTrackKindAudio) {
+ if (!peer.isLocal) remoteAudioTrack = track;
+ } else if (track.kind == HMSTrackKind.kHMSTrackKindVideo) {
+ if (!peer.isLocal) {
+ remoteVideoTrack = track;
+ } else {
+ localTrack = track as HMSVideoTrack;
+ }
+ }
+ break;
+ case HMSTrackUpdate.trackDescriptionChanged:
+ break;
+ case HMSTrackUpdate.trackDegraded:
+ break;
+ case HMSTrackUpdate.trackRestored:
+ break;
+ case HMSTrackUpdate.defaultUpdate:
+ break;
+ }
+ notifyListeners();
+ }
+
+ @override
+ void onHMSError({required HMSException error}) {
+ log(error.message ?? "");
+ }
+
+ @override
+ void onMessage({required HMSMessage message}) {}
+
+ @override
+ void onRoomUpdate({required HMSRoom room, required HMSRoomUpdate update}) {}
+
+ @override
+ void onUpdateSpeakers({required List updateSpeakers}) {}
+
+ @override
+ void onReconnected() {}
+
+ @override
+ void onReconnecting() {}
+
+ @override
+ void onRemovedFromRoom(
+ {required HMSPeerRemovedFromPeer hmsPeerRemovedFromPeer}) {}
+
+ @override
+ void onRoleChangeRequest({required HMSRoleChangeRequest roleChangeRequest}) {}
+
+ @override
+ void onChangeTrackStateRequest(
+ {required HMSTrackChangeRequest hmsTrackChangeRequest}) {}
+
+ @override
+ void onAudioDeviceChanged(
+ {HMSAudioDevice? currentAudioDevice,
+ List? availableAudioDevice}) {}
+
+ @override
+ void onSessionStoreAvailable({HMSSessionStore? hmsSessionStore}) {
+ hmsSessionStore?.setSessionMetadataForKey(
+ key: "pinnedMessage", data: "Hey there");
+ }
+
+ @override
+ void onPeerListUpdate(
+ {required List addedPeers,
+ required List removedPeers}) {
+ if (addedPeers.isNotEmpty) {
+ if (!addedPeers[0].isLocal) {
+ remotePeer = addedPeers[0];
+ remoteAudioTrack = addedPeers[0].audioTrack;
+ remoteVideoTrack = addedPeers[0].videoTrack;
+ log("User joined: ${addedPeers[0].name}");
+ }
+ }
+ }
+
+ @override
+ void onException(
+ {required HMSActionResultListenerMethod methodType,
+ Map? arguments,
+ required HMSException hmsException}) {
+ switch (methodType) {
+ case HMSActionResultListenerMethod.leave:
+ log("Leave room error ${hmsException.message}");
+ break;
+ case HMSActionResultListenerMethod.changeTrackState:
+ break;
+ case HMSActionResultListenerMethod.changeMetadata:
+ break;
+ case HMSActionResultListenerMethod.endRoom:
+ break;
+ case HMSActionResultListenerMethod.removePeer:
+ break;
+ case HMSActionResultListenerMethod.acceptChangeRole:
+ break;
+ case HMSActionResultListenerMethod.changeRoleOfPeer:
+ break;
+ case HMSActionResultListenerMethod.changeTrackStateForRole:
+ break;
+ case HMSActionResultListenerMethod.startRtmpOrRecording:
+ break;
+ case HMSActionResultListenerMethod.stopRtmpAndRecording:
+ break;
+ case HMSActionResultListenerMethod.changeName:
+ break;
+ case HMSActionResultListenerMethod.sendBroadcastMessage:
+ break;
+ case HMSActionResultListenerMethod.sendGroupMessage:
+ break;
+ case HMSActionResultListenerMethod.sendDirectMessage:
+ break;
+ case HMSActionResultListenerMethod.hlsStreamingStarted:
+ break;
+ case HMSActionResultListenerMethod.hlsStreamingStopped:
+ break;
+ case HMSActionResultListenerMethod.startScreenShare:
+ break;
+ case HMSActionResultListenerMethod.stopScreenShare:
+ break;
+ case HMSActionResultListenerMethod.startAudioShare:
+ break;
+ case HMSActionResultListenerMethod.stopAudioShare:
+ break;
+ case HMSActionResultListenerMethod.switchCamera:
+ break;
+ case HMSActionResultListenerMethod.changeRoleOfPeersWithRoles:
+ break;
+ case HMSActionResultListenerMethod.setSessionMetadataForKey:
+ break;
+ case HMSActionResultListenerMethod.sendHLSTimedMetadata:
+ break;
+ case HMSActionResultListenerMethod.lowerLocalPeerHand:
+ break;
+ case HMSActionResultListenerMethod.lowerRemotePeerHand:
+ break;
+ case HMSActionResultListenerMethod.raiseLocalPeerHand:
+ break;
+ case HMSActionResultListenerMethod.quickStartPoll:
+ break;
+ case HMSActionResultListenerMethod.addSingleChoicePollResponse:
+ break;
+ case HMSActionResultListenerMethod.addMultiChoicePollResponse:
+ break;
+ case HMSActionResultListenerMethod.unknown:
+ break;
+ }
+ }
+
+ @override
+ void onSuccess(
+ {required HMSActionResultListenerMethod methodType,
+ Map? arguments}) {
+ switch (methodType) {
+ case HMSActionResultListenerMethod.leave:
+ isRoomEnded = true;
+ log("Updated leave");
+ notifyListeners();
+ break;
+ case HMSActionResultListenerMethod.changeTrackState:
+ break;
+ case HMSActionResultListenerMethod.changeMetadata:
+ break;
+ case HMSActionResultListenerMethod.endRoom:
+ break;
+ case HMSActionResultListenerMethod.removePeer:
+ break;
+ case HMSActionResultListenerMethod.acceptChangeRole:
+ break;
+ case HMSActionResultListenerMethod.changeRoleOfPeer:
+ break;
+ case HMSActionResultListenerMethod.changeTrackStateForRole:
+ break;
+ case HMSActionResultListenerMethod.startRtmpOrRecording:
+ break;
+ case HMSActionResultListenerMethod.stopRtmpAndRecording:
+ break;
+ case HMSActionResultListenerMethod.changeName:
+ break;
+ case HMSActionResultListenerMethod.sendBroadcastMessage:
+ break;
+ case HMSActionResultListenerMethod.sendGroupMessage:
+ break;
+ case HMSActionResultListenerMethod.sendDirectMessage:
+ break;
+ case HMSActionResultListenerMethod.hlsStreamingStarted:
+ break;
+ case HMSActionResultListenerMethod.hlsStreamingStopped:
+ break;
+ case HMSActionResultListenerMethod.startScreenShare:
+ break;
+ case HMSActionResultListenerMethod.stopScreenShare:
+ break;
+ case HMSActionResultListenerMethod.startAudioShare:
+ break;
+ case HMSActionResultListenerMethod.stopAudioShare:
+ break;
+ case HMSActionResultListenerMethod.switchCamera:
+ break;
+ case HMSActionResultListenerMethod.changeRoleOfPeersWithRoles:
+ break;
+ case HMSActionResultListenerMethod.setSessionMetadataForKey:
+ break;
+ case HMSActionResultListenerMethod.sendHLSTimedMetadata:
+ break;
+ case HMSActionResultListenerMethod.lowerLocalPeerHand:
+ break;
+ case HMSActionResultListenerMethod.lowerRemotePeerHand:
+ break;
+ case HMSActionResultListenerMethod.raiseLocalPeerHand:
+ break;
+ case HMSActionResultListenerMethod.quickStartPoll:
+ break;
+ case HMSActionResultListenerMethod.addSingleChoicePollResponse:
+ break;
+ case HMSActionResultListenerMethod.addMultiChoicePollResponse:
+ break;
+ case HMSActionResultListenerMethod.unknown:
+ break;
+ }
+ }
+}
diff --git a/sample apps/flutter-meet/lib/screens/home_screen.dart b/sample apps/flutter-meet/lib/screens/home_screen.dart
new file mode 100644
index 000000000..1e2688f96
--- /dev/null
+++ b/sample apps/flutter-meet/lib/screens/home_screen.dart
@@ -0,0 +1,211 @@
+//Package imports
+import 'package:flutter/material.dart';
+import 'package:google_meet/models/data_store.dart';
+import 'package:permission_handler/permission_handler.dart';
+import 'package:provider/provider.dart';
+
+//File imports
+import 'package:google_meet/screens/meeting_screen.dart';
+import 'package:google_meet/services/join_service.dart';
+import 'package:google_meet/services/sdk_initializer.dart';
+
+class HomeScreen extends StatefulWidget {
+ const HomeScreen({Key? key}) : super(key: key);
+
+ @override
+ State createState() => _HomeScreenState();
+}
+
+class _HomeScreenState extends State {
+ late UserDataStore _dataStore;
+ bool isLoading = false;
+
+ @override
+ void initState() {
+ getPermissions();
+ super.initState();
+ }
+
+ void getPermissions() async {
+ await Permission.camera.request();
+ await Permission.microphone.request();
+
+ while ((await Permission.camera.isDenied)) {
+ await Permission.camera.request();
+ }
+ while ((await Permission.microphone.isDenied)) {
+ await Permission.microphone.request();
+ }
+ }
+
+ //Handles room joining functionality
+ Future joinRoom() async {
+ setState(() {
+ isLoading = true;
+ });
+ //The join method initialize sdk,gets auth token,creates HMSConfig and helps in joining the room
+ await SdkInitializer.hmssdk.build();
+ _dataStore = UserDataStore();
+
+ //Here we are attaching a listener to our DataStoreClass
+ _dataStore.startListen();
+ bool isJoinSuccessful = await JoinService.join(SdkInitializer.hmssdk);
+ if (!isJoinSuccessful) {
+ return false;
+ }
+ setState(() {
+ isLoading = false;
+ });
+ return true;
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ return SafeArea(
+ child: Scaffold(
+ backgroundColor: Theme.of(context).primaryColor,
+ appBar: AppBar(
+ backgroundColor: Theme.of(context).primaryColor,
+ elevation: 0,
+ title: const Text("Meet"),
+ centerTitle: true,
+ actions: [
+ IconButton(
+ icon: const Icon(Icons.account_circle),
+ onPressed: () {},
+ ),
+ ],
+ ),
+ drawer: Drawer(
+ child: ListView(
+ padding: EdgeInsets.zero,
+ children: [
+ DrawerHeader(
+ decoration: BoxDecoration(
+ color: Theme.of(context).primaryColor,
+ ),
+ child: const Text(
+ 'Google Meet',
+ style: TextStyle(fontSize: 25, color: Colors.white),
+ ),
+ ),
+ ListTile(
+ title: const Row(
+ children: [
+ Icon(Icons.settings_outlined),
+ SizedBox(
+ width: 10,
+ ),
+ Text('Settings'),
+ ],
+ ),
+ onTap: () {},
+ ),
+ ListTile(
+ title: const Row(
+ children: [
+ Icon(Icons.feedback_outlined),
+ SizedBox(
+ width: 10,
+ ),
+ Text('Send feedback'),
+ ],
+ ),
+ onTap: () {},
+ ),
+ ListTile(
+ title: const Row(
+ children: [
+ Icon(Icons.help_outline),
+ SizedBox(
+ width: 10,
+ ),
+ Text('Help'),
+ ],
+ ),
+ onTap: () {},
+ ),
+ ],
+ ), // Populate the Drawer in the next step.
+ ),
+ body: Column(
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,
+ children: [
+ OutlinedButton(
+ onPressed: () async {
+ showModalBottomSheet(
+ context: context,
+ builder: (BuildContext context) {
+ return SizedBox(
+ height: 200,
+ child: ListView(
+ padding: EdgeInsets.zero,
+ children: [
+ ListTile(
+ title: const Row(
+ children: [
+ Icon(Icons.video_call),
+ SizedBox(
+ width: 10,
+ ),
+ Text('Start an instant meeting'),
+ ],
+ ),
+ onTap: () async {
+ bool isJoined = await joinRoom();
+ if (isJoined) {
+ Navigator.of(context).push(MaterialPageRoute(
+ builder: (_) =>
+ ListenableProvider.value(
+ value: _dataStore,
+ child: const MeetingScreen())));
+ } else {
+ const SnackBar(content: Text("Error"));
+ }
+ },
+ ),
+ ListTile(
+ title: const Row(
+ children: [
+ Icon(Icons.close),
+ SizedBox(
+ width: 10,
+ ),
+ Text('Close'),
+ ],
+ ),
+ onTap: () {
+ Navigator.pop(context);
+ },
+ ),
+ ],
+ ),
+ );
+ },
+ );
+ },
+ child: const Text('New meeting'),
+ ),
+ OutlinedButton(
+ style: Theme.of(context)
+ .outlinedButtonTheme
+ .style!
+ .copyWith(
+ side: MaterialStateProperty.all(
+ const BorderSide(color: Colors.white)),
+ backgroundColor: MaterialStateColor.resolveWith(
+ (states) => Colors.transparent),
+ foregroundColor: MaterialStateColor.resolveWith(
+ (states) => Colors.white)),
+ onPressed: () {},
+ child: const Text('Join with a code'))
+ ],
+ )
+ ],
+ ),
+ ),
+ );
+ }
+}
diff --git a/sample apps/flutter-meet/lib/screens/meeting_screen.dart b/sample apps/flutter-meet/lib/screens/meeting_screen.dart
new file mode 100644
index 000000000..33ef4b74c
--- /dev/null
+++ b/sample apps/flutter-meet/lib/screens/meeting_screen.dart
@@ -0,0 +1,305 @@
+//Package imports
+import 'package:draggable_widget/draggable_widget.dart';
+import 'package:flutter/material.dart';
+import 'package:hmssdk_flutter/hmssdk_flutter.dart';
+import 'package:provider/provider.dart';
+
+//File imports
+import 'package:google_meet/models/data_store.dart';
+import 'package:google_meet/services/sdk_initializer.dart';
+
+class MeetingScreen extends StatefulWidget {
+ const MeetingScreen({Key? key}) : super(key: key);
+
+ @override
+ _MeetingScreenState createState() => _MeetingScreenState();
+}
+
+class _MeetingScreenState extends State {
+ bool isLocalAudioOn = true;
+ bool isLocalVideoOn = true;
+ final bool _isLoading = false;
+ String? orientation;
+ double width = 0;
+
+ @override
+ void initState() {
+ super.initState();
+ WidgetsBinding.instance.addPostFrameCallback((_) {
+ width = MediaQuery.of(context).size.width;
+ });
+ }
+
+ @override
+ void dispose() {
+ super.dispose();
+ }
+
+ @override
+ Widget build(BuildContext context) {
+ final _isVideoOff = context.select(
+ (user) => user.remoteVideoTrack?.isMute ?? true);
+ final _peer =
+ context.select((user) => user.remotePeer);
+ final remoteTrack = context
+ .select((user) => user.remoteVideoTrack);
+ final localTrack = context
+ .select((user) => user.localTrack);
+
+ return WillPopScope(
+ onWillPop: () async {
+ context.read().leaveRoom();
+ Navigator.pop(context);
+ return true;
+ },
+ child: SafeArea(
+ child: Scaffold(
+ body: (_isLoading)
+ ? const CircularProgressIndicator()
+ : (_peer == null)
+ ? Container(
+ color: Colors.black.withOpacity(0.9),
+ width: MediaQuery.of(context).size.width,
+ height: MediaQuery.of(context).size.height,
+ child: Stack(
+ children: [
+ Positioned(
+ child: IconButton(
+ onPressed: () {
+ context.read().leaveRoom();
+ Navigator.pop(context);
+ },
+ icon: const Icon(
+ Icons.arrow_back_ios,
+ color: Colors.white,
+ ))),
+ const Column(
+ mainAxisAlignment: MainAxisAlignment.center,
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Padding(
+ padding:
+ EdgeInsets.only(left: 20.0, bottom: 20),
+ child: Text(
+ "You're the only one here",
+ style: TextStyle(
+ color: Colors.white,
+ fontSize: 20,
+ fontWeight: FontWeight.bold),
+ ),
+ ),
+ Padding(
+ padding: EdgeInsets.only(left: 20.0),
+ child: Text(
+ "Share meeting link with others",
+ style: TextStyle(
+ color: Colors.white,
+ fontSize: 12,
+ fontWeight: FontWeight.bold),
+ ),
+ ),
+ Padding(
+ padding: EdgeInsets.only(left: 20.0),
+ child: Text(
+ "that you want in the meeting",
+ style: TextStyle(
+ color: Colors.white,
+ fontSize: 12,
+ fontWeight: FontWeight.bold),
+ ),
+ ),
+ Padding(
+ padding: EdgeInsets.only(left: 20.0, top: 10),
+ child: CircularProgressIndicator(
+ strokeWidth: 2,
+ ),
+ ),
+ ],
+ ),
+ DraggableWidget(
+ topMargin: 10,
+ bottomMargin: 130,
+ horizontalSpace: 10,
+ child: localPeerTile(localTrack),
+ ),
+ ],
+ ),
+ )
+ : SizedBox(
+ height: MediaQuery.of(context).size.height,
+ width: MediaQuery.of(context).size.width,
+ child: Stack(
+ children: [
+ Container(
+ color: Colors.black.withOpacity(0.9),
+ child: _isVideoOff
+ ? Center(
+ child: Container(
+ decoration: BoxDecoration(
+ shape: BoxShape.circle,
+ boxShadow: [
+ BoxShadow(
+ color:
+ Colors.blue.withAlpha(60),
+ blurRadius: 10.0,
+ spreadRadius: 2.0,
+ ),
+ ]),
+ child: const Icon(
+ Icons.videocam_off,
+ color: Colors.white,
+ size: 30,
+ ),
+ ),
+ )
+ : (remoteTrack != null)
+ ? Container(
+ child: HMSVideoView(
+ scaleType:
+ ScaleType.SCALE_ASPECT_FILL,
+ track: remoteTrack as HMSVideoTrack,
+ ),
+ )
+ : const Center(child: Text("No Video"))),
+ Align(
+ alignment: Alignment.bottomCenter,
+ child: Padding(
+ padding: const EdgeInsets.only(bottom: 15),
+ child: Row(
+ mainAxisAlignment:
+ MainAxisAlignment.spaceEvenly,
+ children: [
+ GestureDetector(
+ onTap: () async {
+ context.read().leaveRoom();
+ Navigator.pop(context);
+ },
+ child: Container(
+ decoration: BoxDecoration(
+ shape: BoxShape.circle,
+ boxShadow: [
+ BoxShadow(
+ color: Colors.red.withAlpha(60),
+ blurRadius: 3.0,
+ spreadRadius: 5.0,
+ ),
+ ]),
+ child: const CircleAvatar(
+ radius: 25,
+ backgroundColor: Colors.red,
+ child: Icon(Icons.call_end,
+ color: Colors.white),
+ ),
+ ),
+ ),
+ GestureDetector(
+ onTap: () => {
+ SdkInitializer.hmssdk
+ .toggleCameraMuteState(),
+ setState(() {
+ isLocalVideoOn = !isLocalVideoOn;
+ })
+ },
+ child: CircleAvatar(
+ radius: 25,
+ backgroundColor:
+ Colors.transparent.withOpacity(0.2),
+ child: Icon(
+ isLocalVideoOn
+ ? Icons.videocam
+ : Icons.videocam_off_rounded,
+ color: Colors.white,
+ ),
+ ),
+ ),
+ GestureDetector(
+ onTap: () => {
+ SdkInitializer.hmssdk
+ .toggleMicMuteState(),
+ setState(() {
+ isLocalAudioOn = !isLocalAudioOn;
+ })
+ },
+ child: CircleAvatar(
+ radius: 25,
+ backgroundColor:
+ Colors.transparent.withOpacity(0.2),
+ child: Icon(
+ isLocalAudioOn
+ ? Icons.mic
+ : Icons.mic_off,
+ color: Colors.white,
+ ),
+ ),
+ ),
+ ],
+ ),
+ ),
+ ),
+ Positioned(
+ top: 10,
+ left: 10,
+ child: GestureDetector(
+ onTap: () {
+ context.read().leaveRoom();
+ Navigator.pop(context);
+ },
+ child: const Icon(
+ Icons.arrow_back_ios,
+ color: Colors.white,
+ ),
+ ),
+ ),
+ Positioned(
+ top: 10,
+ right: 10,
+ child: GestureDetector(
+ onTap: () {
+ if (isLocalVideoOn) {
+ SdkInitializer.hmssdk.switchCamera();
+ }
+ },
+ child: CircleAvatar(
+ radius: 25,
+ backgroundColor:
+ Colors.transparent.withOpacity(0.2),
+ child: const Icon(
+ Icons.switch_camera_outlined,
+ color: Colors.white,
+ ),
+ ),
+ ),
+ ),
+ DraggableWidget(
+ topMargin: 10,
+ bottomMargin: 130,
+ horizontalSpace: 10,
+ child: localPeerTile(localTrack),
+ ),
+ ],
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+
+ Widget localPeerTile(HMSVideoTrack? localTrack) {
+ return ClipRRect(
+ borderRadius: BorderRadius.circular(10),
+ child: Container(
+ height: 150,
+ width: 100,
+ color: Colors.black,
+ child: (isLocalVideoOn && localTrack != null)
+ ? HMSVideoView(
+ track: localTrack,
+ )
+ : const Icon(
+ Icons.videocam_off_rounded,
+ color: Colors.white,
+ ),
+ ),
+ );
+ }
+}
diff --git a/sample apps/flutter-meet/lib/services/join_service.dart b/sample apps/flutter-meet/lib/services/join_service.dart
new file mode 100644
index 000000000..5cda72396
--- /dev/null
+++ b/sample apps/flutter-meet/lib/services/join_service.dart
@@ -0,0 +1,46 @@
+//Dart imports
+
+//Package imports
+import 'package:hmssdk_flutter/hmssdk_flutter.dart';
+
+class JoinService {
+ static Future join(HMSSDK hmssdk) async {
+ String? roomCode = getCode(
+ "https://mobilevideoconference.app.100ms.live/meeting/rky-hzlr-ybr");
+
+ if (roomCode == null) return false;
+ dynamic authToken = await hmssdk.getAuthTokenByRoomCode(roomCode: roomCode);
+
+ if (authToken is String) {
+ HMSConfig roomConfig = HMSConfig(
+ authToken: authToken,
+ userName: "user",
+ );
+
+ hmssdk.join(config: roomConfig);
+ } else if (authToken is HMSException) {
+ // Handle the error
+ return false;
+ }
+ HMSConfig config = HMSConfig(authToken: authToken, userName: "user");
+ await hmssdk.join(config: config);
+ return true;
+ }
+
+ static String? getCode(String roomUrl) {
+ String url = roomUrl;
+ if (url == "") return null;
+ url = url.trim();
+
+ List codeAndDomain = [];
+ String code = "";
+ codeAndDomain = url.split(".app.100ms.live");
+ code = codeAndDomain[1];
+ if (code.contains("meeting")) {
+ code = code.split("/meeting/")[1];
+ } else {
+ code = code.split("/preview/")[1];
+ }
+ return code;
+ }
+}
diff --git a/sample apps/flutter-meet/lib/services/sdk_initializer.dart b/sample apps/flutter-meet/lib/services/sdk_initializer.dart
new file mode 100644
index 000000000..de224d78c
--- /dev/null
+++ b/sample apps/flutter-meet/lib/services/sdk_initializer.dart
@@ -0,0 +1,9 @@
+//Package imports
+import 'package:hmssdk_flutter/hmssdk_flutter.dart';
+
+class SdkInitializer {
+ static HMSSDK hmssdk = HMSSDK(
+ hmsTrackSetting: HMSTrackSetting(
+ audioTrackSetting: HMSAudioTrackSetting(
+ trackInitialState: HMSTrackInitState.MUTED)));
+}
diff --git a/sample apps/flutter-meet/pubspec.lock b/sample apps/flutter-meet/pubspec.lock
new file mode 100644
index 000000000..8d251ec0a
--- /dev/null
+++ b/sample apps/flutter-meet/pubspec.lock
@@ -0,0 +1,293 @@
+# Generated by pub
+# See https://dart.dev/tools/pub/glossary#lockfile
+packages:
+ async:
+ dependency: transitive
+ description:
+ name: async
+ sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.11.0"
+ boolean_selector:
+ dependency: transitive
+ description:
+ name: boolean_selector
+ sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.1"
+ characters:
+ dependency: transitive
+ description:
+ name: characters
+ sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.3.0"
+ clock:
+ dependency: transitive
+ description:
+ name: clock
+ sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.1.1"
+ collection:
+ dependency: transitive
+ description:
+ name: collection
+ sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.17.2"
+ cupertino_icons:
+ dependency: "direct main"
+ description:
+ name: cupertino_icons
+ sha256: caac504f942f41dfadcf45229ce8c47065b93919a12739f20d6173a883c5ec73
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.0.2"
+ draggable_widget:
+ dependency: "direct main"
+ description:
+ name: draggable_widget
+ sha256: d7f6b1eb9cb79b724b02dc2ac699f82d1ab20b99920b8b1f25812054d72ca803
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.0.0"
+ fake_async:
+ dependency: transitive
+ description:
+ name: fake_async
+ sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.3.1"
+ flutter:
+ dependency: "direct main"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ flutter_lints:
+ dependency: "direct dev"
+ description:
+ name: flutter_lints
+ sha256: b543301ad291598523947dc534aaddc5aaad597b709d2426d3a0e0d44c5cb493
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.0.4"
+ flutter_test:
+ dependency: "direct dev"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ hmssdk_flutter:
+ dependency: "direct main"
+ description:
+ name: hmssdk_flutter
+ sha256: efc257a82187a9a5d675842650fa6ff0ff56487585dd24d38ac4237f492a21b5
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.9.14"
+ http:
+ dependency: "direct main"
+ description:
+ name: http
+ sha256: "2ed163531e071c2c6b7c659635112f24cb64ecbebf6af46b550d536c0b1aa112"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.13.4"
+ http_parser:
+ dependency: transitive
+ description:
+ name: http_parser
+ sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
+ url: "https://pub.dev"
+ source: hosted
+ version: "4.0.2"
+ lints:
+ dependency: transitive
+ description:
+ name: lints
+ sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.0.1"
+ matcher:
+ dependency: transitive
+ description:
+ name: matcher
+ sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.12.16"
+ material_color_utilities:
+ dependency: transitive
+ description:
+ name: material_color_utilities
+ sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.5.0"
+ meta:
+ dependency: transitive
+ description:
+ name: meta
+ sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.9.1"
+ nested:
+ dependency: transitive
+ description:
+ name: nested
+ sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.0.0"
+ path:
+ dependency: transitive
+ description:
+ name: path
+ sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.8.3"
+ permission_handler:
+ dependency: "direct main"
+ description:
+ name: permission_handler
+ sha256: ad65ba9af42a3d067203641de3fd9f547ded1410bad3b84400c2b4899faede70
+ url: "https://pub.dev"
+ source: hosted
+ version: "11.0.0"
+ permission_handler_android:
+ dependency: transitive
+ description:
+ name: permission_handler_android
+ sha256: f23cfe9af0d49c6b9fd8a8b09f7b3301ca7e346204939b5afef4404d36d2608f
+ url: "https://pub.dev"
+ source: hosted
+ version: "11.0.1"
+ permission_handler_apple:
+ dependency: transitive
+ description:
+ name: permission_handler_apple
+ sha256: "99e220bce3f8877c78e4ace901082fb29fa1b4ebde529ad0932d8d664b34f3f5"
+ url: "https://pub.dev"
+ source: hosted
+ version: "9.1.4"
+ permission_handler_platform_interface:
+ dependency: transitive
+ description:
+ name: permission_handler_platform_interface
+ sha256: f2343e9fa9c22ae4fd92d4732755bfe452214e7189afcc097380950cf567b4b2
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.11.5"
+ permission_handler_windows:
+ dependency: transitive
+ description:
+ name: permission_handler_windows
+ sha256: cc074aace208760f1eee6aa4fae766b45d947df85bc831cde77009cdb4720098
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.1.3"
+ plugin_platform_interface:
+ dependency: transitive
+ description:
+ name: plugin_platform_interface
+ sha256: da3fdfeccc4d4ff2da8f8c556704c08f912542c5fb3cf2233ed75372384a034d
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.6"
+ provider:
+ dependency: "direct main"
+ description:
+ name: provider
+ sha256: "7896193cf752c40ba7f7732a95264319a787871e5d628225357f5c909182bc06"
+ url: "https://pub.dev"
+ source: hosted
+ version: "6.0.2"
+ sky_engine:
+ dependency: transitive
+ description: flutter
+ source: sdk
+ version: "0.0.99"
+ source_span:
+ dependency: transitive
+ description:
+ name: source_span
+ sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.10.0"
+ stack_trace:
+ dependency: transitive
+ description:
+ name: stack_trace
+ sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.11.0"
+ stream_channel:
+ dependency: transitive
+ description:
+ name: stream_channel
+ sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.1"
+ string_scanner:
+ dependency: transitive
+ description:
+ name: string_scanner
+ sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.2.0"
+ term_glyph:
+ dependency: transitive
+ description:
+ name: term_glyph
+ sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.2.1"
+ test_api:
+ dependency: transitive
+ description:
+ name: test_api
+ sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.6.0"
+ typed_data:
+ dependency: transitive
+ description:
+ name: typed_data
+ sha256: "26f87ade979c47a150c9eaab93ccd2bebe70a27dc0b4b29517f2904f04eb11a5"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.3.1"
+ vector_math:
+ dependency: transitive
+ description:
+ name: vector_math
+ sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.4"
+ web:
+ dependency: transitive
+ description:
+ name: web
+ sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.1.4-beta"
+sdks:
+ dart: ">=3.1.0-185.0.dev <4.0.0"
+ flutter: ">=2.10.0"
diff --git a/sample apps/flutter-meet/pubspec.yaml b/sample apps/flutter-meet/pubspec.yaml
new file mode 100644
index 000000000..41087c0a9
--- /dev/null
+++ b/sample apps/flutter-meet/pubspec.yaml
@@ -0,0 +1,97 @@
+name: google_meet
+description: Google Meet clone made in Flutter using 100ms.
+
+# The following line prevents the package from being accidentally published to
+# pub.dev using `flutter pub publish`. This is preferred for private packages.
+publish_to: 'none' # Remove this line if you wish to publish to pub.dev
+
+# The following defines the version and build number for your application.
+# A version number is three numbers separated by dots, like 1.2.43
+# followed by an optional build number separated by a +.
+# Both the version and the builder number may be overridden in flutter
+# build by specifying --build-name and --build-number, respectively.
+# In Android, build-name is used as versionName while build-number used as versionCode.
+# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
+# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
+# Read more about iOS versioning at
+# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
+version: 1.0.0+1
+
+environment:
+ sdk: ">=2.12.0 <3.0.0"
+
+# Dependencies specify other packages that your package needs in order to work.
+# To automatically upgrade your package dependencies to the latest versions
+# consider running `flutter pub upgrade --major-versions`. Alternatively,
+# dependencies can be manually updated by changing the version numbers below to
+# the latest version available on pub.dev. To see which dependencies have newer
+# versions available, run `flutter pub outdated`.
+dependencies:
+ flutter:
+ sdk: flutter
+
+
+ # The following adds the Cupertino Icons font to your application.
+ # Use with the CupertinoIcons class for iOS style icons.
+ hmssdk_flutter: 1.9.14
+ permission_handler:
+ http: 0.13.4
+ provider: 6.0.2
+ draggable_widget: 2.0.0
+
+ # The following adds the Cupertino Icons font to your application.
+ # Use with the CupertinoIcons class for iOS style icons.
+ cupertino_icons: 1.0.2
+
+dev_dependencies:
+ flutter_test:
+ sdk: flutter
+
+ # The "flutter_lints" package below contains a set of recommended lints to
+ # encourage good coding practices. The lint set provided by the package is
+ # activated in the `analysis_options.yaml` file located at the root of your
+ # package. See that file for information about deactivating specific lint
+ # rules and activating additional ones.
+ flutter_lints: ^1.0.0
+
+# For information on the generic Dart part of this file, see the
+# following page: https://dart.dev/tools/pub/pubspec
+
+# The following section is specific to Flutter.
+flutter:
+
+ # The following line ensures that the Material Icons font is
+ # included with your application, so that you can use the icons in
+ # the material Icons class.
+ uses-material-design: true
+
+ # To add assets to your application, add an assets section, like this:
+ # assets:
+ # - images/a_dot_burr.jpeg
+ # - images/a_dot_ham.jpeg
+
+ # An image asset can refer to one or more resolution-specific "variants", see
+ # https://flutter.dev/assets-and-images/#resolution-aware.
+
+ # For details regarding adding assets from package dependencies, see
+ # https://flutter.dev/assets-and-images/#from-packages
+
+ # To add custom fonts to your application, add a fonts section here,
+ # in this "flutter" section. Each entry in this list should have a
+ # "family" key with the font family name, and a "fonts" key with a
+ # list giving the asset and other descriptors for the font. For
+ # example:
+ # fonts:
+ # - family: Schyler
+ # fonts:
+ # - asset: fonts/Schyler-Regular.ttf
+ # - asset: fonts/Schyler-Italic.ttf
+ # style: italic
+ # - family: Trajan Pro
+ # fonts:
+ # - asset: fonts/TrajanPro.ttf
+ # - asset: fonts/TrajanPro_Bold.ttf
+ # weight: 700
+ #
+ # For details regarding fonts from package dependencies,
+ # see https://flutter.dev/custom-fonts/#from-packages
diff --git a/sample apps/flutter-meet/test/widget_test.dart b/sample apps/flutter-meet/test/widget_test.dart
new file mode 100644
index 000000000..210d19764
--- /dev/null
+++ b/sample apps/flutter-meet/test/widget_test.dart
@@ -0,0 +1,30 @@
+// This is a basic Flutter widget test.
+//
+// To perform an interaction with a widget in your test, use the WidgetTester
+// utility that Flutter provides. For example, you can send tap and scroll
+// gestures. You can also use WidgetTester to find child widgets in the widget
+// tree, read text, and verify that the values of widget properties are correct.
+
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+
+import 'package:google_meet/main.dart';
+
+void main() {
+ testWidgets('Counter increments smoke test', (WidgetTester tester) async {
+ // Build our app and trigger a frame.
+ await tester.pumpWidget(const MyApp());
+
+ // Verify that our counter starts at 0.
+ expect(find.text('0'), findsOneWidget);
+ expect(find.text('1'), findsNothing);
+
+ // Tap the '+' icon and trigger a frame.
+ await tester.tap(find.byIcon(Icons.add));
+ await tester.pump();
+
+ // Verify that our counter has incremented.
+ expect(find.text('0'), findsNothing);
+ expect(find.text('1'), findsOneWidget);
+ });
+}