├── example
├── linux
│ ├── .gitignore
│ ├── main.cc
│ ├── flutter
│ │ ├── generated_plugin_registrant.h
│ │ ├── generated_plugin_registrant.cc
│ │ ├── generated_plugins.cmake
│ │ └── CMakeLists.txt
│ ├── my_application.h
│ ├── my_application.cc
│ └── CMakeLists.txt
├── README.md
├── macos
│ ├── Runner
│ │ ├── Configs
│ │ │ ├── Debug.xcconfig
│ │ │ ├── Release.xcconfig
│ │ │ ├── Warnings.xcconfig
│ │ │ └── AppInfo.xcconfig
│ │ ├── Assets.xcassets
│ │ │ └── AppIcon.appiconset
│ │ │ │ ├── app_icon_16.png
│ │ │ │ ├── app_icon_32.png
│ │ │ │ ├── app_icon_64.png
│ │ │ │ ├── app_icon_1024.png
│ │ │ │ ├── app_icon_128.png
│ │ │ │ ├── app_icon_256.png
│ │ │ │ ├── app_icon_512.png
│ │ │ │ └── Contents.json
│ │ ├── AppDelegate.swift
│ │ ├── Release.entitlements
│ │ ├── MainFlutterWindow.swift
│ │ ├── DebugProfile.entitlements
│ │ ├── Info.plist
│ │ └── Base.lproj
│ │ │ └── MainMenu.xib
│ ├── .gitignore
│ ├── Flutter
│ │ ├── Flutter-Debug.xcconfig
│ │ ├── Flutter-Release.xcconfig
│ │ └── GeneratedPluginRegistrant.swift
│ ├── Runner.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── Runner.xcodeproj
│ │ ├── project.xcworkspace
│ │ │ └── xcshareddata
│ │ │ │ └── IDEWorkspaceChecks.plist
│ │ ├── xcshareddata
│ │ │ └── xcschemes
│ │ │ │ └── Runner.xcscheme
│ │ └── project.pbxproj
│ ├── Podfile.lock
│ └── Podfile
├── analysis_options.yaml
├── pubspec.yaml
├── .gitignore
├── .metadata
├── test
│ └── widget_test.dart
├── lib
│ ├── main.dart
│ └── tests.dart
└── pubspec.lock
├── analysis_options.yaml
├── .metadata
├── pubspec.yaml
├── .gitignore
├── CHANGELOG.md
├── LICENSE
├── README.md
└── lib
└── simple_peer.dart
/example/linux/.gitignore:
--------------------------------------------------------------------------------
1 | flutter/ephemeral
2 |
--------------------------------------------------------------------------------
/example/README.md:
--------------------------------------------------------------------------------
1 | # Example
2 |
3 | Run example and checks log to ensure it is working.
--------------------------------------------------------------------------------
/example/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/example/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/example/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/dgph
7 | **/xcuserdata/
8 |
--------------------------------------------------------------------------------
/example/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/example/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonbengtsson/simple_peer_flutter/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonbengtsson/simple_peer_flutter/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonbengtsson/simple_peer_flutter/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonbengtsson/simple_peer_flutter/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonbengtsson/simple_peer_flutter/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonbengtsson/simple_peer_flutter/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/simonbengtsson/simple_peer_flutter/HEAD/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/example/linux/main.cc:
--------------------------------------------------------------------------------
1 | #include "my_application.h"
2 |
3 | int main(int argc, char** argv) {
4 | g_autoptr(MyApplication) app = my_application_new();
5 | return g_application_run(G_APPLICATION(app), argc, argv);
6 | }
7 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | analyzer:
4 | language:
5 | strict-casts: true
6 | strict-raw-types: true
7 |
8 | linter:
9 | rules:
10 | avoid_print: false
11 |
--------------------------------------------------------------------------------
/example/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | analyzer:
4 | language:
5 | strict-casts: true
6 | strict-raw-types: true
7 |
8 | linter:
9 | rules:
10 | avoid_print: false
11 |
--------------------------------------------------------------------------------
/example/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @main
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/example/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: f1875d570e39de09040c8f79aa13cc56baab8db1
8 | channel: stable
9 |
10 | project_type: package
11 |
--------------------------------------------------------------------------------
/example/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.network.client
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/example/linux/flutter/generated_plugin_registrant.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #ifndef GENERATED_PLUGIN_REGISTRANT_
8 | #define GENERATED_PLUGIN_REGISTRANT_
9 |
10 | #include
11 |
12 | // Registers Flutter plugins.
13 | void fl_register_plugins(FlPluginRegistry* registry);
14 |
15 | #endif // GENERATED_PLUGIN_REGISTRANT_
16 |
--------------------------------------------------------------------------------
/example/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: example
2 | description: A new Flutter project.
3 |
4 | publish_to: "none"
5 |
6 | version: 1.0.0+1
7 |
8 | environment:
9 | sdk: ">=3.0.0"
10 |
11 | dependencies:
12 | simple_peer:
13 | path: ..
14 | flutter:
15 | sdk: flutter
16 |
17 | cupertino_icons: ^1.0.2
18 |
19 | dev_dependencies:
20 | flutter_test:
21 | sdk: flutter
22 |
23 | flutter_lints: ^3.0.0
24 |
25 | flutter:
26 | uses-material-design: true
27 |
--------------------------------------------------------------------------------
/example/macos/Flutter/GeneratedPluginRegistrant.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | import FlutterMacOS
6 | import Foundation
7 |
8 | import flutter_webrtc
9 | import path_provider_foundation
10 |
11 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
12 | FlutterWebRTCPlugin.register(with: registry.registrar(forPlugin: "FlutterWebRTCPlugin"))
13 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
14 | }
15 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: simple_peer
2 | description: Simple WebRTC. Similar to the simple-peer project in javascript.
3 | version: 1.0.0
4 | repository: https://github.com/simonbengtsson/simple_peer_flutter
5 |
6 | environment:
7 | sdk: ">=2.17.6 <4.0.0"
8 | flutter: ">=3.0.0"
9 |
10 | dependencies:
11 | flutter:
12 | sdk: flutter
13 | flutter_webrtc: ^0.11.0
14 |
15 | dev_dependencies:
16 | flutter_test:
17 | sdk: flutter
18 | flutter_lints: ^4.0.0
19 |
20 | flutter:
21 |
--------------------------------------------------------------------------------
/example/linux/my_application.h:
--------------------------------------------------------------------------------
1 | #ifndef FLUTTER_MY_APPLICATION_H_
2 | #define FLUTTER_MY_APPLICATION_H_
3 |
4 | #include
5 |
6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
7 | GtkApplication)
8 |
9 | /**
10 | * my_application_new:
11 | *
12 | * Creates a new Flutter-based application.
13 | *
14 | * Returns: a new #MyApplication.
15 | */
16 | MyApplication* my_application_new();
17 |
18 | #endif // FLUTTER_MY_APPLICATION_H_
19 |
--------------------------------------------------------------------------------
/example/macos/Runner/MainFlutterWindow.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | class MainFlutterWindow: NSWindow {
5 | override func awakeFromNib() {
6 | let flutterViewController = FlutterViewController.init()
7 | let windowFrame = self.frame
8 | self.contentViewController = flutterViewController
9 | self.setFrame(windowFrame, display: true)
10 |
11 | RegisterGeneratedPlugins(registry: flutterViewController)
12 |
13 | super.awakeFromNib()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/example/macos/Runner/DebugProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.cs.allow-jit
8 |
9 | com.apple.security.network.server
10 |
11 | com.apple.security.network.client
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/example/linux/flutter/generated_plugin_registrant.cc:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #include "generated_plugin_registrant.h"
8 |
9 | #include
10 |
11 | void fl_register_plugins(FlPluginRegistry* registry) {
12 | g_autoptr(FlPluginRegistrar) flutter_webrtc_registrar =
13 | fl_plugin_registry_get_registrar_for_plugin(registry, "FlutterWebRTCPlugin");
14 | flutter_web_r_t_c_plugin_register_with_registrar(flutter_webrtc_registrar);
15 | }
16 |
--------------------------------------------------------------------------------
/example/macos/Runner/Configs/Warnings.xcconfig:
--------------------------------------------------------------------------------
1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
2 | GCC_WARN_UNDECLARED_SELECTOR = YES
3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
6 | CLANG_WARN_PRAGMA_PACK = YES
7 | CLANG_WARN_STRICT_PROTOTYPES = YES
8 | CLANG_WARN_COMMA = YES
9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES
10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
12 | GCC_WARN_SHADOW = YES
13 | CLANG_WARN_UNREACHABLE_CODE = YES
14 |
--------------------------------------------------------------------------------
/example/macos/Runner/Configs/AppInfo.xcconfig:
--------------------------------------------------------------------------------
1 | // Application-level settings for the Runner target.
2 | //
3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
4 | // future. If not, the values below would default to using the project name when this becomes a
5 | // 'flutter create' template.
6 |
7 | // The application's name. By default this is also the title of the Flutter window.
8 | PRODUCT_NAME = example
9 |
10 | // The application's bundle identifier
11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example
12 |
13 | // The copyright displayed in application information
14 | PRODUCT_COPYRIGHT = Copyright © 2022 com.example. All rights reserved.
15 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26 | /pubspec.lock
27 | **/doc/api/
28 | .dart_tool/
29 | .packages
30 | build/
31 | .flutter-plugins
32 | .flutter-plugins-dependencies
33 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 1.0.0
2 |
3 | - Upgrade flutter-webrtc to 0.11. No breaking changes known, but marking library as stable.
4 |
5 | ## 0.1.0
6 |
7 | - Upgrade flutter-webrtc to 0.10
8 |
9 | ## 0.0.14
10 |
11 | - Minor dependency updates
12 |
13 | ## 0.0.13
14 |
15 | - Dart 3 and other code improvements
16 |
17 | ## 0.0.12
18 |
19 | ## 0.0.11
20 |
21 | ## 0.0.10
22 |
23 | - Use signal info class instead of string
24 | - Add verbose option
25 | - Add webrtc config option
26 | - Add data channel config option
27 | - Improved documentation
28 |
29 | ## 0.0.9
30 |
31 | ## 0.0.8
32 |
33 | ## 0.0.7
34 |
35 | ## 0.0.6
36 |
37 | ## 0.0.5
38 |
39 | ## 0.0.4
40 |
41 | - Internal
42 |
43 | ## 0.0.3
44 |
45 | - Internal
46 |
47 | ## 0.0.2
48 |
49 | - Internal
50 |
51 | ## 0.0.1
52 |
53 | - Support data channels
54 |
--------------------------------------------------------------------------------
/example/linux/flutter/generated_plugins.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Generated file, do not edit.
3 | #
4 |
5 | list(APPEND FLUTTER_PLUGIN_LIST
6 | flutter_webrtc
7 | )
8 |
9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST
10 | )
11 |
12 | set(PLUGIN_BUNDLED_LIBRARIES)
13 |
14 | foreach(plugin ${FLUTTER_PLUGIN_LIST})
15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
19 | endforeach(plugin)
20 |
21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
24 | endforeach(ffi_plugin)
25 |
--------------------------------------------------------------------------------
/example/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .packages
31 | .pub-cache/
32 | .pub/
33 | /build/
34 |
35 | # Web related
36 | lib/generated_plugin_registrant.dart
37 |
38 | # Symbolication related
39 | app.*.symbols
40 |
41 | # Obfuscation related
42 | app.*.map.json
43 |
44 | # Android Studio will place build artifacts here
45 | /android/app/debug
46 | /android/app/profile
47 | /android/app/release
48 |
--------------------------------------------------------------------------------
/example/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: "5874a72aa4c779a02553007c47dacbefba2374dc"
8 | channel: "stable"
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
17 | base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
18 | - platform: linux
19 | create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
20 | base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
21 |
22 | # User provided section
23 |
24 | # List of Local paths (relative to this file) that should be
25 | # ignored by the migrate tool.
26 | #
27 | # Files that are not part of the templates will be ignored by default.
28 | unmanaged_files:
29 | - 'lib/main.dart'
30 | - 'ios/Runner.xcodeproj/project.pbxproj'
31 |
--------------------------------------------------------------------------------
/example/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility in the flutter_test package. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:example/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(const App());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/example/macos/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | $(PRODUCT_COPYRIGHT)
27 | NSMainNibFile
28 | MainMenu
29 | NSPrincipalClass
30 | NSApplication
31 |
32 |
33 |
--------------------------------------------------------------------------------
/example/macos/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - flutter_webrtc (0.11.3):
3 | - FlutterMacOS
4 | - WebRTC-SDK (= 125.6422.04)
5 | - FlutterMacOS (1.0.0)
6 | - path_provider_foundation (0.0.1):
7 | - Flutter
8 | - FlutterMacOS
9 | - WebRTC-SDK (125.6422.04)
10 |
11 | DEPENDENCIES:
12 | - flutter_webrtc (from `Flutter/ephemeral/.symlinks/plugins/flutter_webrtc/macos`)
13 | - FlutterMacOS (from `Flutter/ephemeral`)
14 | - path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
15 |
16 | SPEC REPOS:
17 | trunk:
18 | - WebRTC-SDK
19 |
20 | EXTERNAL SOURCES:
21 | flutter_webrtc:
22 | :path: Flutter/ephemeral/.symlinks/plugins/flutter_webrtc/macos
23 | FlutterMacOS:
24 | :path: Flutter/ephemeral
25 | path_provider_foundation:
26 | :path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
27 |
28 | SPEC CHECKSUMS:
29 | flutter_webrtc: 2b4e4a2de70a1485836e40fd71a7a94c77d49bd9
30 | FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
31 | path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
32 | WebRTC-SDK: c3d69a87e7185fad3568f6f3cff7c9ac5890acf3
33 |
34 | PODFILE CHECKSUM: eec3430f260cde219af51c43f1bcfccf35ab54d0
35 |
36 | COCOAPODS: 1.15.2
37 |
--------------------------------------------------------------------------------
/example/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:simple_peer/simple_peer.dart';
3 |
4 | void main() {
5 | runApp(const App());
6 | }
7 |
8 | class App extends StatefulWidget {
9 | const App({super.key});
10 |
11 | @override
12 | State createState() => _AppState();
13 | }
14 |
15 | class _AppState extends State {
16 | @override
17 | void initState() {
18 | super.initState();
19 | reconnect();
20 | }
21 |
22 | @override
23 | Widget build(BuildContext context) {
24 | return MaterialApp(
25 | debugShowCheckedModeBanner: false,
26 | home: Scaffold(
27 | body: Center(
28 | child: OutlinedButton(
29 | onPressed: reconnect, child: const Text('Reconnect')),
30 | )),
31 | );
32 | }
33 |
34 | reconnect() async {
35 | print('Connecting...');
36 | var peer1 = await Peer.create(initiator: true);
37 | var peer2 = await Peer.create();
38 |
39 | peer1.onSignal = (data) async {
40 | // when peer1 has signaling data, give it to peer2 somehow
41 | await peer2.signal(data);
42 | };
43 |
44 | peer2.onSignal = (data) async {
45 | // when peer2 has signaling data, give it to peer1 somehow
46 | await peer1.signal(data);
47 | };
48 |
49 | peer2.onTextData = (data) async {
50 | print("Got data from peer1: $data");
51 | };
52 |
53 | peer2.connect();
54 | await peer1.connect();
55 |
56 | await peer1.sendText('hello!');
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2022, Simon Bengtsson
2 |
3 | Redistribution and use in source and binary forms, with or without
4 | modification, are permitted provided that the following conditions are
5 | met:
6 |
7 | * Redistributions of source code must retain the above copyright
8 | notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above
10 | copyright notice, this list of conditions and the following
11 | disclaimer in the documentation and/or other materials provided
12 | with the distribution.
13 | * Neither the name of Google LLC nor the names of its
14 | contributors may be used to endorse or promote products derived
15 | from this software without specific prior written permission.
16 |
17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------
/example/macos/Podfile:
--------------------------------------------------------------------------------
1 | platform :osx, '10.14'
2 |
3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
5 |
6 | project 'Runner', {
7 | 'Debug' => :debug,
8 | 'Profile' => :release,
9 | 'Release' => :release,
10 | }
11 |
12 | def flutter_root
13 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
14 | unless File.exist?(generated_xcode_build_settings_path)
15 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
16 | end
17 |
18 | File.foreach(generated_xcode_build_settings_path) do |line|
19 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
20 | return matches[1].strip if matches
21 | end
22 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
23 | end
24 |
25 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
26 |
27 | flutter_macos_podfile_setup
28 |
29 | target 'Runner' do
30 | use_frameworks!
31 | use_modular_headers!
32 |
33 | flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
34 | # target 'RunnerTests' do
35 | # inherit! :search_paths
36 | # end
37 | end
38 |
39 | post_install do |installer|
40 | installer.pods_project.targets.each do |target|
41 | flutter_additional_macos_build_settings(target)
42 | end
43 | end
44 |
--------------------------------------------------------------------------------
/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "16x16",
5 | "idiom" : "mac",
6 | "filename" : "app_icon_16.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "16x16",
11 | "idiom" : "mac",
12 | "filename" : "app_icon_32.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "32x32",
17 | "idiom" : "mac",
18 | "filename" : "app_icon_32.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "32x32",
23 | "idiom" : "mac",
24 | "filename" : "app_icon_64.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "128x128",
29 | "idiom" : "mac",
30 | "filename" : "app_icon_128.png",
31 | "scale" : "1x"
32 | },
33 | {
34 | "size" : "128x128",
35 | "idiom" : "mac",
36 | "filename" : "app_icon_256.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "256x256",
41 | "idiom" : "mac",
42 | "filename" : "app_icon_256.png",
43 | "scale" : "1x"
44 | },
45 | {
46 | "size" : "256x256",
47 | "idiom" : "mac",
48 | "filename" : "app_icon_512.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "512x512",
53 | "idiom" : "mac",
54 | "filename" : "app_icon_512.png",
55 | "scale" : "1x"
56 | },
57 | {
58 | "size" : "512x512",
59 | "idiom" : "mac",
60 | "filename" : "app_icon_1024.png",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Simple WebRTC. Wraps [flutter_webrtc](https://github.com/flutter-webrtc/flutter-webrtc) similar to [simple-peer](https://github.com/feross/simple-peer)
2 |
3 | ## Getting started
4 |
5 | Read more about how to get started with webrtc in [flutter_webrtc](https://github.com/flutter-webrtc/flutter-webrtc) or the javascript [simple-peer](https://github.com/feross/simple-peer)
6 |
7 | ## Currently unsupported features (contributions welcome!)
8 |
9 | - Media channels (only data channels supported right now)
10 | - Batching of large data ie such as sending files byte by byte (needs to be handled in calling application right now)
11 |
12 | ## Usage
13 |
14 | ```dart
15 | var peer1 = Peer(initiator: true);
16 | var peer2 = Peer();
17 |
18 | peer1.onSignal = (data) async {
19 | // When peer1 has signaling data, give it to peer2 somehow
20 | // https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Signaling_and_video_calling#the_signaling_server
21 | await peer2.signal(data);
22 | };
23 |
24 | peer2.onSignal = (data) async {
25 | // When peer2 has signaling data, give it to peer1 somehow
26 | // https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Signaling_and_video_calling#the_signaling_server
27 | await peer1.signal(data);
28 | };
29 |
30 | peer2.onData = (data) async {
31 | print(data); // hello!
32 | };
33 |
34 | peer2.connect();
35 | await peer1.connect();
36 |
37 | await peer1.send('hello!');
38 | ```
39 |
40 | ## Example
41 |
42 | Run the example/main.dart application and check that connection worked in console.
43 |
44 | ## Release guide (for contributors)
45 |
46 | - Test by opening example and check logs that it works
47 | - Update CHANGELOG.md + pubspec.yml version
48 | - git tag vX.X.X and git push --tags
49 | - Run `flutter pub publish` and create Github release https://github.com/simonbengtsson/simple_peer_flutter/releases/new
50 |
--------------------------------------------------------------------------------
/example/linux/flutter/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # This file controls Flutter-level build steps. It should not be edited.
2 | cmake_minimum_required(VERSION 3.10)
3 |
4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
5 |
6 | # Configuration provided via flutter tool.
7 | include(${EPHEMERAL_DIR}/generated_config.cmake)
8 |
9 | # TODO: Move the rest of this into files in ephemeral. See
10 | # https://github.com/flutter/flutter/issues/57146.
11 |
12 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...),
13 | # which isn't available in 3.10.
14 | function(list_prepend LIST_NAME PREFIX)
15 | set(NEW_LIST "")
16 | foreach(element ${${LIST_NAME}})
17 | list(APPEND NEW_LIST "${PREFIX}${element}")
18 | endforeach(element)
19 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE)
20 | endfunction()
21 |
22 | # === Flutter Library ===
23 | # System-level dependencies.
24 | find_package(PkgConfig REQUIRED)
25 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
26 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)
27 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
28 |
29 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so")
30 |
31 | # Published to parent scope for install step.
32 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
33 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
34 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
35 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE)
36 |
37 | list(APPEND FLUTTER_LIBRARY_HEADERS
38 | "fl_basic_message_channel.h"
39 | "fl_binary_codec.h"
40 | "fl_binary_messenger.h"
41 | "fl_dart_project.h"
42 | "fl_engine.h"
43 | "fl_json_message_codec.h"
44 | "fl_json_method_codec.h"
45 | "fl_message_codec.h"
46 | "fl_method_call.h"
47 | "fl_method_channel.h"
48 | "fl_method_codec.h"
49 | "fl_method_response.h"
50 | "fl_plugin_registrar.h"
51 | "fl_plugin_registry.h"
52 | "fl_standard_message_codec.h"
53 | "fl_standard_method_codec.h"
54 | "fl_string_codec.h"
55 | "fl_value.h"
56 | "fl_view.h"
57 | "flutter_linux.h"
58 | )
59 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/")
60 | add_library(flutter INTERFACE)
61 | target_include_directories(flutter INTERFACE
62 | "${EPHEMERAL_DIR}"
63 | )
64 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}")
65 | target_link_libraries(flutter INTERFACE
66 | PkgConfig::GTK
67 | PkgConfig::GLIB
68 | PkgConfig::GIO
69 | )
70 | add_dependencies(flutter flutter_assemble)
71 |
72 | # === Flutter tool backend ===
73 | # _phony_ is a non-existent file to force this command to run every time,
74 | # since currently there's no way to get a full input/output list from the
75 | # flutter tool.
76 | add_custom_command(
77 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
78 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_
79 | COMMAND ${CMAKE_COMMAND} -E env
80 | ${FLUTTER_TOOL_ENVIRONMENT}
81 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh"
82 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE}
83 | VERBATIM
84 | )
85 | add_custom_target(flutter_assemble DEPENDS
86 | "${FLUTTER_LIBRARY}"
87 | ${FLUTTER_LIBRARY_HEADERS}
88 | )
89 |
--------------------------------------------------------------------------------
/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
69 |
71 |
77 |
78 |
79 |
80 |
82 |
83 |
86 |
87 |
88 |
--------------------------------------------------------------------------------
/example/lib/tests.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: avoid_print
2 |
3 | import 'dart:async';
4 | import 'dart:typed_data';
5 |
6 | import 'package:flutter/material.dart';
7 | import 'package:simple_peer/simple_peer.dart';
8 | // ignore: depend_on_referenced_packages
9 | import 'package:flutter_webrtc/flutter_webrtc.dart';
10 |
11 | void main() {
12 | runApp(const App());
13 | }
14 |
15 | class Tester {
16 | testAll() async {
17 | print('Running tests...');
18 | await testDataChannel();
19 | await testNegotiatedDataChannel();
20 | await testDelayedConnection();
21 | print('Done');
22 | }
23 |
24 | testDataChannel() async {
25 | var testCompleter = Completer();
26 | testCompleter.future.timeout(const Duration(seconds: 5));
27 | print('Running testDataChannel...');
28 |
29 | var peer1 = await Peer.create(initiator: true);
30 | var peer2 = await Peer.create();
31 |
32 | peer1.onSignal = (message) async {
33 | await peer2.signal(message);
34 | };
35 |
36 | peer2.onSignal = (data) async {
37 | await peer1.signal(data);
38 | };
39 |
40 | peer2.onTextData = (data) async {
41 | print('Text message received');
42 | peer1.sendBinary(Uint8List.fromList([5, 5, 5, 5]));
43 | };
44 |
45 | peer2.onBinaryData = (data) async {
46 | print('Binary message received');
47 | testCompleter.complete();
48 | };
49 |
50 | peer2.connect();
51 | await peer1.connect();
52 |
53 | await peer1.sendText('hello!');
54 |
55 | await testCompleter.future;
56 | print('Completed testDataChannel');
57 | }
58 |
59 | testNegotiatedDataChannel() async {
60 | var testCompleter = Completer();
61 | testCompleter.future.timeout(const Duration(seconds: 5));
62 | print('Running testNegotiatedDataChannel...');
63 |
64 | var config = RTCDataChannelInit();
65 | config.negotiated = true;
66 | config.id = 1000;
67 | var peer1 = await Peer.create(initiator: true, dataChannelConfig: config);
68 | var peer2 = await Peer.create(dataChannelConfig: config);
69 |
70 | peer1.onSignal = (data) async {
71 | await peer2.signal(data);
72 | };
73 |
74 | peer2.onSignal = (data) async {
75 | await peer1.signal(data);
76 | };
77 |
78 | peer2.onTextData = (data) async {
79 | testCompleter.complete();
80 | };
81 |
82 | peer2.connect();
83 | await peer1.connect();
84 |
85 | await peer1.sendText('hello!');
86 |
87 | await testCompleter.future;
88 | print('Completed testNegotiatedDataChannel');
89 | }
90 |
91 | testDelayedConnection() async {
92 | var testCompleter = Completer();
93 | testCompleter.future.timeout(const Duration(seconds: 5));
94 | print('Running testDelayedConnection...');
95 |
96 | var peer1 = await Peer.create(initiator: true);
97 | var peer2 = await Peer.create();
98 |
99 | peer1.onSignal = (data) async {
100 | await Future.delayed(const Duration(seconds: 1));
101 | await peer2.signal(data);
102 | };
103 |
104 | peer2.onSignal = (data) async {
105 | await Future.delayed(const Duration(seconds: 1));
106 | await peer1.signal(data);
107 | };
108 |
109 | peer2.onTextData = (data) async {
110 | testCompleter.complete();
111 | };
112 |
113 | peer2.connect();
114 | await peer1.connect();
115 |
116 | await peer1.sendText('hello!');
117 |
118 | await testCompleter.future;
119 | print('Completed testDelayedConnection');
120 | }
121 | }
122 |
123 | class App extends StatefulWidget {
124 | const App({super.key});
125 |
126 | @override
127 | State createState() => _AppState();
128 | }
129 |
130 | class _AppState extends State {
131 | @override
132 | void initState() {
133 | super.initState();
134 | Tester().testAll();
135 | }
136 |
137 | @override
138 | Widget build(BuildContext context) {
139 | return MaterialApp(
140 | debugShowCheckedModeBanner: false,
141 | home: Scaffold(
142 | body: Center(
143 | child: OutlinedButton(
144 | onPressed: Tester().testAll, child: const Text('Run Tests')),
145 | )),
146 | );
147 | }
148 | }
149 |
--------------------------------------------------------------------------------
/example/linux/my_application.cc:
--------------------------------------------------------------------------------
1 | #include "my_application.h"
2 |
3 | #include
4 | #ifdef GDK_WINDOWING_X11
5 | #include
6 | #endif
7 |
8 | #include "flutter/generated_plugin_registrant.h"
9 |
10 | struct _MyApplication {
11 | GtkApplication parent_instance;
12 | char** dart_entrypoint_arguments;
13 | };
14 |
15 | G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
16 |
17 | // Implements GApplication::activate.
18 | static void my_application_activate(GApplication* application) {
19 | MyApplication* self = MY_APPLICATION(application);
20 | GtkWindow* window =
21 | GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
22 |
23 | // Use a header bar when running in GNOME as this is the common style used
24 | // by applications and is the setup most users will be using (e.g. Ubuntu
25 | // desktop).
26 | // If running on X and not using GNOME then just use a traditional title bar
27 | // in case the window manager does more exotic layout, e.g. tiling.
28 | // If running on Wayland assume the header bar will work (may need changing
29 | // if future cases occur).
30 | gboolean use_header_bar = TRUE;
31 | #ifdef GDK_WINDOWING_X11
32 | GdkScreen* screen = gtk_window_get_screen(window);
33 | if (GDK_IS_X11_SCREEN(screen)) {
34 | const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);
35 | if (g_strcmp0(wm_name, "GNOME Shell") != 0) {
36 | use_header_bar = FALSE;
37 | }
38 | }
39 | #endif
40 | if (use_header_bar) {
41 | GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
42 | gtk_widget_show(GTK_WIDGET(header_bar));
43 | gtk_header_bar_set_title(header_bar, "example");
44 | gtk_header_bar_set_show_close_button(header_bar, TRUE);
45 | gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
46 | } else {
47 | gtk_window_set_title(window, "example");
48 | }
49 |
50 | gtk_window_set_default_size(window, 1280, 720);
51 | gtk_widget_show(GTK_WIDGET(window));
52 |
53 | g_autoptr(FlDartProject) project = fl_dart_project_new();
54 | fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
55 |
56 | FlView* view = fl_view_new(project);
57 | gtk_widget_show(GTK_WIDGET(view));
58 | gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
59 |
60 | fl_register_plugins(FL_PLUGIN_REGISTRY(view));
61 |
62 | gtk_widget_grab_focus(GTK_WIDGET(view));
63 | }
64 |
65 | // Implements GApplication::local_command_line.
66 | static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) {
67 | MyApplication* self = MY_APPLICATION(application);
68 | // Strip out the first argument as it is the binary name.
69 | self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);
70 |
71 | g_autoptr(GError) error = nullptr;
72 | if (!g_application_register(application, nullptr, &error)) {
73 | g_warning("Failed to register: %s", error->message);
74 | *exit_status = 1;
75 | return TRUE;
76 | }
77 |
78 | g_application_activate(application);
79 | *exit_status = 0;
80 |
81 | return TRUE;
82 | }
83 |
84 | // Implements GApplication::startup.
85 | static void my_application_startup(GApplication* application) {
86 | //MyApplication* self = MY_APPLICATION(object);
87 |
88 | // Perform any actions required at application startup.
89 |
90 | G_APPLICATION_CLASS(my_application_parent_class)->startup(application);
91 | }
92 |
93 | // Implements GApplication::shutdown.
94 | static void my_application_shutdown(GApplication* application) {
95 | //MyApplication* self = MY_APPLICATION(object);
96 |
97 | // Perform any actions required at application shutdown.
98 |
99 | G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application);
100 | }
101 |
102 | // Implements GObject::dispose.
103 | static void my_application_dispose(GObject* object) {
104 | MyApplication* self = MY_APPLICATION(object);
105 | g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev);
106 | G_OBJECT_CLASS(my_application_parent_class)->dispose(object);
107 | }
108 |
109 | static void my_application_class_init(MyApplicationClass* klass) {
110 | G_APPLICATION_CLASS(klass)->activate = my_application_activate;
111 | G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line;
112 | G_APPLICATION_CLASS(klass)->startup = my_application_startup;
113 | G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown;
114 | G_OBJECT_CLASS(klass)->dispose = my_application_dispose;
115 | }
116 |
117 | static void my_application_init(MyApplication* self) {}
118 |
119 | MyApplication* my_application_new() {
120 | return MY_APPLICATION(g_object_new(my_application_get_type(),
121 | "application-id", APPLICATION_ID,
122 | "flags", G_APPLICATION_NON_UNIQUE,
123 | nullptr));
124 | }
125 |
--------------------------------------------------------------------------------
/example/linux/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Project-level configuration.
2 | cmake_minimum_required(VERSION 3.10)
3 | project(runner LANGUAGES CXX)
4 |
5 | # The name of the executable created for the application. Change this to change
6 | # the on-disk name of your application.
7 | set(BINARY_NAME "example")
8 | # The unique GTK application identifier for this application. See:
9 | # https://wiki.gnome.org/HowDoI/ChooseApplicationID
10 | set(APPLICATION_ID "com.example.example")
11 |
12 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent
13 | # versions of CMake.
14 | cmake_policy(SET CMP0063 NEW)
15 |
16 | # Load bundled libraries from the lib/ directory relative to the binary.
17 | set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
18 |
19 | # Root filesystem for cross-building.
20 | if(FLUTTER_TARGET_PLATFORM_SYSROOT)
21 | set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT})
22 | set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})
23 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
24 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
25 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
26 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
27 | endif()
28 |
29 | # Define build configuration options.
30 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
31 | set(CMAKE_BUILD_TYPE "Debug" CACHE
32 | STRING "Flutter build mode" FORCE)
33 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
34 | "Debug" "Profile" "Release")
35 | endif()
36 |
37 | # Compilation settings that should be applied to most targets.
38 | #
39 | # Be cautious about adding new options here, as plugins use this function by
40 | # default. In most cases, you should add new options to specific targets instead
41 | # of modifying this function.
42 | function(APPLY_STANDARD_SETTINGS TARGET)
43 | target_compile_features(${TARGET} PUBLIC cxx_std_14)
44 | target_compile_options(${TARGET} PRIVATE -Wall -Werror)
45 | target_compile_options(${TARGET} PRIVATE "$<$>:-O3>")
46 | target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>")
47 | endfunction()
48 |
49 | # Flutter library and tool build rules.
50 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
51 | add_subdirectory(${FLUTTER_MANAGED_DIR})
52 |
53 | # System-level dependencies.
54 | find_package(PkgConfig REQUIRED)
55 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
56 |
57 | add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
58 |
59 | # Define the application target. To change its name, change BINARY_NAME above,
60 | # not the value here, or `flutter run` will no longer work.
61 | #
62 | # Any new source files that you add to the application should be added here.
63 | add_executable(${BINARY_NAME}
64 | "main.cc"
65 | "my_application.cc"
66 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
67 | )
68 |
69 | # Apply the standard set of build settings. This can be removed for applications
70 | # that need different build settings.
71 | apply_standard_settings(${BINARY_NAME})
72 |
73 | # Add dependency libraries. Add any application-specific dependencies here.
74 | target_link_libraries(${BINARY_NAME} PRIVATE flutter)
75 | target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
76 |
77 | # Run the Flutter tool portions of the build. This must not be removed.
78 | add_dependencies(${BINARY_NAME} flutter_assemble)
79 |
80 | # Only the install-generated bundle's copy of the executable will launch
81 | # correctly, since the resources must in the right relative locations. To avoid
82 | # people trying to run the unbundled copy, put it in a subdirectory instead of
83 | # the default top-level location.
84 | set_target_properties(${BINARY_NAME}
85 | PROPERTIES
86 | RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"
87 | )
88 |
89 |
90 | # Generated plugin build rules, which manage building the plugins and adding
91 | # them to the application.
92 | include(flutter/generated_plugins.cmake)
93 |
94 |
95 | # === Installation ===
96 | # By default, "installing" just makes a relocatable bundle in the build
97 | # directory.
98 | set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")
99 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
100 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
101 | endif()
102 |
103 | # Start with a clean build bundle directory every time.
104 | install(CODE "
105 | file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\")
106 | " COMPONENT Runtime)
107 |
108 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
109 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib")
110 |
111 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
112 | COMPONENT Runtime)
113 |
114 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
115 | COMPONENT Runtime)
116 |
117 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
118 | COMPONENT Runtime)
119 |
120 | foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
121 | install(FILES "${bundled_library}"
122 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
123 | COMPONENT Runtime)
124 | endforeach(bundled_library)
125 |
126 | # Copy the native assets provided by the build.dart from all packages.
127 | set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/")
128 | install(DIRECTORY "${NATIVE_ASSETS_DIR}"
129 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
130 | COMPONENT Runtime)
131 |
132 | # Fully re-copy the assets directory on each build to avoid having stale files
133 | # from a previous install.
134 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
135 | install(CODE "
136 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
137 | " COMPONENT Runtime)
138 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
139 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
140 |
141 | # Install the AOT library on non-Debug builds only.
142 | if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
143 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
144 | COMPONENT Runtime)
145 | endif()
146 |
--------------------------------------------------------------------------------
/lib/simple_peer.dart:
--------------------------------------------------------------------------------
1 | library simple_peer;
2 |
3 | import 'dart:async';
4 | import 'dart:convert';
5 |
6 | import 'package:flutter/foundation.dart';
7 | import 'package:flutter_webrtc/flutter_webrtc.dart';
8 |
9 | class SignalingInfo {
10 | bool get isOffer {
11 | return type == 'offer';
12 | }
13 |
14 | bool get isAnswer {
15 | return type == 'answer';
16 | }
17 |
18 | bool get isIceCandidate {
19 | return ['iceCandidate', 'senderIceCandidate', 'receiverIceCandidate']
20 | .contains(type);
21 | }
22 |
23 | final String type;
24 | final dynamic payload;
25 |
26 | SignalingInfo(this.type, this.payload);
27 |
28 | String encode() {
29 | var json = jsonEncode({
30 | 'type': type,
31 | 'payload': payload,
32 | });
33 | return json;
34 | }
35 | }
36 |
37 | class Peer {
38 | final bool _initiator;
39 | final bool _verbose;
40 | final RTCDataChannelInit? _dataChannelConfig;
41 |
42 | /// Peer connection from flutter_webrtc used for transfers.
43 | /// For advanced use cases some of the methods and properties of this object
44 | /// is useful. It is only available after connect() has been called.
45 | RTCPeerConnection connection;
46 |
47 | RTCDataChannel? _dataChannel;
48 |
49 | final List _pendingIceCandidates = [];
50 |
51 | /// Called when the peer wants to send signaling data to the remote peer.
52 | ///
53 | /// It is the responsibility of the application developer (that's you!) to
54 | /// get this data to the other peer. This usually entails using a WebSocket
55 | /// signaling server. Then, simply call peer.signal(data) on the remote peer.
56 | /// Be sure to set this before calling connect to avoid missing any events.
57 | Function(SignalingInfo)? onSignal;
58 |
59 | /// Called when text channel message was received from the remote peer
60 | Function(String)? onTextData;
61 |
62 | /// Called when binary channel message was received from the remote peer
63 | Function(Uint8List)? onBinaryData;
64 |
65 | static final _loopbackConstraints = {
66 | 'mandatory': {},
67 | 'optional': [
68 | {'DtlsSrtpKeyAgreement': true},
69 | ],
70 | };
71 |
72 | static final _googleStunConfig = {
73 | 'iceServers': [
74 | {'url': 'stun:stun.l.google.com:19302'},
75 | ],
76 | };
77 |
78 | Peer._init(this.connection, this._initiator, this._verbose,
79 | this._dataChannelConfig) {
80 | _print('Peer created');
81 | }
82 |
83 | /// Creates a new Peer
84 | ///
85 | /// Use [initiator] to specify if this is the peer that should initiate
86 | /// the connection. For the webrtc [config] the default is to use publicly
87 | /// available stun server config is used. Although this works during
88 | /// development it could get taken down at any moment and does not support
89 | /// the turn protocol. If transfer is not working you can turn on logging
90 | /// with the [verbose] option.
91 | static Future create(
92 | {bool initiator = false,
93 | bool verbose = false,
94 | Map? config,
95 | RTCDataChannelInit? dataChannelConfig}) async {
96 | var conf = config ?? _googleStunConfig;
97 | var connection = await createPeerConnection(conf, _loopbackConstraints);
98 | return Peer._init(connection, initiator, verbose, dataChannelConfig);
99 | }
100 |
101 | postIceCandidates() async {
102 | var pending = [..._pendingIceCandidates];
103 | _pendingIceCandidates.clear();
104 |
105 | var local = await connection.getLocalDescription();
106 | var remote = await connection.getRemoteDescription();
107 |
108 | // Don't send ice candidates until both offer and answer is set
109 | // This is mainly to simplify for clients so they don't have to handle the
110 | // case of ice candidates getting received before offer on non initiator.
111 | if (local != null && remote != null) {
112 | for (var candidate in pending) {
113 | var type = _initiator ? 'senderIceCandidate' : 'receiverIceCandidate';
114 | await _signaling(type, candidate.toMap());
115 | }
116 | } else {
117 | _pendingIceCandidates.addAll(pending);
118 | }
119 | }
120 |
121 | _notifyDataMessages(RTCDataChannelMessage message) async {
122 | if (message.isBinary) {
123 | _print('Binary message received');
124 | await onBinaryData?.call(message.binary);
125 | } else {
126 | _print('Text message received');
127 | await onTextData?.call(message.text);
128 | }
129 | }
130 |
131 | /// Call to start connection to remote peer.
132 | connect() async {
133 | var completer = Completer();
134 |
135 | connection.onIceCandidate = (candidate) async {
136 | _pendingIceCandidates.add(candidate);
137 | await postIceCandidates();
138 | };
139 |
140 | var dcInit = _dataChannelConfig ?? RTCDataChannelInit();
141 | if (_initiator) {
142 | _dataChannel =
143 | await connection.createDataChannel('simple_peer_dc', dcInit);
144 | _dataChannel!.onDataChannelState = (state) async {
145 | if (state == RTCDataChannelState.RTCDataChannelOpen) {
146 | completer.complete();
147 | }
148 | };
149 | _dataChannel!.onMessage = (message) {
150 | _notifyDataMessages(message);
151 | };
152 |
153 | var offer = await connection.createOffer();
154 | await connection.setLocalDescription(offer);
155 | _signaling('offer', offer.toMap());
156 | } else {
157 | if (dcInit.negotiated) {
158 | _dataChannel =
159 | await connection.createDataChannel('simple_peer_dc', dcInit);
160 | _dataChannel!.onDataChannelState = (state) async {
161 | if (state == RTCDataChannelState.RTCDataChannelOpen) {
162 | completer.complete();
163 | }
164 | };
165 | _dataChannel!.onMessage = (message) {
166 | _notifyDataMessages(message);
167 | };
168 | } else {
169 | connection.onDataChannel = (channel) {
170 | _dataChannel = channel;
171 | completer.complete();
172 | channel.onMessage = (message) {
173 | _notifyDataMessages(message);
174 | };
175 | };
176 | }
177 | }
178 |
179 | await completer.future;
180 |
181 | // If signaling is really quick the data channel is sometimes reported as
182 | // ready before the remote peer data channel is ready. This could lead to
183 | // the initial messages to be dropped.
184 | await Future.delayed(const Duration(milliseconds: 20));
185 |
186 | _print('Peer was connected');
187 | }
188 |
189 | /// Send text to remote peer. Call peer.connect() first to ensure
190 | /// data channel is ready.
191 | sendText(String text) {
192 | var message = RTCDataChannelMessage(text);
193 | _dataChannel!.send(message);
194 | _print('Sent text message of length ${text.length}');
195 | }
196 |
197 | /// Send binary data to remote peer. Call peer.connect() first to ensure
198 | /// data channel is ready.
199 | sendBinary(Uint8List bytes) async {
200 | var message = RTCDataChannelMessage.fromBinary(bytes);
201 | await _dataChannel!.send(message);
202 | _print('Sent binary message of size ${bytes.length}');
203 | }
204 |
205 | /// Call this method whenever signaling data is received from remote peer
206 | ///
207 | // The data will encapsulate a webrtc offer, answer, or ice candidate. These
208 | // messages help the peers to eventually establish a direct connection to
209 | // each other. The contents of these strings are an implementation detail
210 | // that can be ignored by the user of this module; simply pass the data
211 | // from 'signal' events to the remote peer and call peer.signal(data) to
212 | // get connected.
213 | signal(SignalingInfo info) async {
214 | var payload = info.payload;
215 |
216 | if (info.isOffer || info.isAnswer) {
217 | var sdp = payload['sdp'] as String?;
218 | var type = payload['type'] as String?;
219 | var description = RTCSessionDescription(sdp, type);
220 | connection.setRemoteDescription(description);
221 | _print('Remote description set');
222 | if (info.isOffer) {
223 | var answer = await connection.createAnswer();
224 | await connection.setLocalDescription(answer);
225 | await _signaling('answer', answer.toMap());
226 | }
227 | await postIceCandidates();
228 | } else if (info.isIceCandidate) {
229 | var candidate = payload['candidate'] as String?;
230 | var sdpMid = payload['sdpMid'] as String?;
231 | var sdpMLineIndex = payload['sdpMLineIndex'] as int?;
232 | var iceCandidate = RTCIceCandidate(candidate, sdpMid, sdpMLineIndex);
233 | await connection.addCandidate(iceCandidate);
234 | var type = candidate?.split(' ')[7];
235 | _print('Ice candidate $type added');
236 | }
237 | }
238 |
239 | _signaling(String type, dynamic data) {
240 | var info = SignalingInfo(type, data);
241 | onSignal!.call(info);
242 | }
243 |
244 | _print(String log) {
245 | if (kDebugMode && _verbose) {
246 | var now = DateTime.now().millisecondsSinceEpoch;
247 | print('simple_peer $now $log (i: $_initiator)');
248 | }
249 | }
250 | }
251 |
--------------------------------------------------------------------------------
/example/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9 | url: "https://pub.dev"
10 | source: hosted
11 | version: "2.11.0"
12 | boolean_selector:
13 | dependency: transitive
14 | description:
15 | name: boolean_selector
16 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17 | url: "https://pub.dev"
18 | source: hosted
19 | version: "2.1.1"
20 | characters:
21 | dependency: transitive
22 | description:
23 | name: characters
24 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
25 | url: "https://pub.dev"
26 | source: hosted
27 | version: "1.3.0"
28 | clock:
29 | dependency: transitive
30 | description:
31 | name: clock
32 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
33 | url: "https://pub.dev"
34 | source: hosted
35 | version: "1.1.1"
36 | collection:
37 | dependency: transitive
38 | description:
39 | name: collection
40 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
41 | url: "https://pub.dev"
42 | source: hosted
43 | version: "1.18.0"
44 | cupertino_icons:
45 | dependency: "direct main"
46 | description:
47 | name: cupertino_icons
48 | sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
49 | url: "https://pub.dev"
50 | source: hosted
51 | version: "1.0.8"
52 | dart_webrtc:
53 | dependency: transitive
54 | description:
55 | name: dart_webrtc
56 | sha256: c664ad88d5646735753add421ee2118486c100febef5e92b7f59cdbabf6a51f6
57 | url: "https://pub.dev"
58 | source: hosted
59 | version: "1.4.9"
60 | fake_async:
61 | dependency: transitive
62 | description:
63 | name: fake_async
64 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
65 | url: "https://pub.dev"
66 | source: hosted
67 | version: "1.3.1"
68 | ffi:
69 | dependency: transitive
70 | description:
71 | name: ffi
72 | sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6"
73 | url: "https://pub.dev"
74 | source: hosted
75 | version: "2.1.3"
76 | flutter:
77 | dependency: "direct main"
78 | description: flutter
79 | source: sdk
80 | version: "0.0.0"
81 | flutter_lints:
82 | dependency: "direct dev"
83 | description:
84 | name: flutter_lints
85 | sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1"
86 | url: "https://pub.dev"
87 | source: hosted
88 | version: "3.0.2"
89 | flutter_test:
90 | dependency: "direct dev"
91 | description: flutter
92 | source: sdk
93 | version: "0.0.0"
94 | flutter_webrtc:
95 | dependency: transitive
96 | description:
97 | name: flutter_webrtc
98 | sha256: f6800cc2af79018c12e955ddf8ad007891fdfbb8199b0ce3dccd0977ed2add9c
99 | url: "https://pub.dev"
100 | source: hosted
101 | version: "0.11.7"
102 | js:
103 | dependency: transitive
104 | description:
105 | name: js
106 | sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf
107 | url: "https://pub.dev"
108 | source: hosted
109 | version: "0.7.1"
110 | leak_tracker:
111 | dependency: transitive
112 | description:
113 | name: leak_tracker
114 | sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
115 | url: "https://pub.dev"
116 | source: hosted
117 | version: "10.0.5"
118 | leak_tracker_flutter_testing:
119 | dependency: transitive
120 | description:
121 | name: leak_tracker_flutter_testing
122 | sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
123 | url: "https://pub.dev"
124 | source: hosted
125 | version: "3.0.5"
126 | leak_tracker_testing:
127 | dependency: transitive
128 | description:
129 | name: leak_tracker_testing
130 | sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
131 | url: "https://pub.dev"
132 | source: hosted
133 | version: "3.0.1"
134 | lints:
135 | dependency: transitive
136 | description:
137 | name: lints
138 | sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
139 | url: "https://pub.dev"
140 | source: hosted
141 | version: "3.0.0"
142 | logging:
143 | dependency: transitive
144 | description:
145 | name: logging
146 | sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340"
147 | url: "https://pub.dev"
148 | source: hosted
149 | version: "1.2.0"
150 | matcher:
151 | dependency: transitive
152 | description:
153 | name: matcher
154 | sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
155 | url: "https://pub.dev"
156 | source: hosted
157 | version: "0.12.16+1"
158 | material_color_utilities:
159 | dependency: transitive
160 | description:
161 | name: material_color_utilities
162 | sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
163 | url: "https://pub.dev"
164 | source: hosted
165 | version: "0.11.1"
166 | meta:
167 | dependency: transitive
168 | description:
169 | name: meta
170 | sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
171 | url: "https://pub.dev"
172 | source: hosted
173 | version: "1.15.0"
174 | path:
175 | dependency: transitive
176 | description:
177 | name: path
178 | sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
179 | url: "https://pub.dev"
180 | source: hosted
181 | version: "1.9.0"
182 | path_provider:
183 | dependency: transitive
184 | description:
185 | name: path_provider
186 | sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378
187 | url: "https://pub.dev"
188 | source: hosted
189 | version: "2.1.4"
190 | path_provider_android:
191 | dependency: transitive
192 | description:
193 | name: path_provider_android
194 | sha256: "6f01f8e37ec30b07bc424b4deabac37cacb1bc7e2e515ad74486039918a37eb7"
195 | url: "https://pub.dev"
196 | source: hosted
197 | version: "2.2.10"
198 | path_provider_foundation:
199 | dependency: transitive
200 | description:
201 | name: path_provider_foundation
202 | sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16
203 | url: "https://pub.dev"
204 | source: hosted
205 | version: "2.4.0"
206 | path_provider_linux:
207 | dependency: transitive
208 | description:
209 | name: path_provider_linux
210 | sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279
211 | url: "https://pub.dev"
212 | source: hosted
213 | version: "2.2.1"
214 | path_provider_platform_interface:
215 | dependency: transitive
216 | description:
217 | name: path_provider_platform_interface
218 | sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334"
219 | url: "https://pub.dev"
220 | source: hosted
221 | version: "2.1.2"
222 | path_provider_windows:
223 | dependency: transitive
224 | description:
225 | name: path_provider_windows
226 | sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7
227 | url: "https://pub.dev"
228 | source: hosted
229 | version: "2.3.0"
230 | platform:
231 | dependency: transitive
232 | description:
233 | name: platform
234 | sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
235 | url: "https://pub.dev"
236 | source: hosted
237 | version: "3.1.5"
238 | platform_detect:
239 | dependency: transitive
240 | description:
241 | name: platform_detect
242 | sha256: a62f99417fc4fa2d099ce0ccdbb1bd3977920f2a64292c326271f049d4bc3a4f
243 | url: "https://pub.dev"
244 | source: hosted
245 | version: "2.1.0"
246 | plugin_platform_interface:
247 | dependency: transitive
248 | description:
249 | name: plugin_platform_interface
250 | sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
251 | url: "https://pub.dev"
252 | source: hosted
253 | version: "2.1.8"
254 | pub_semver:
255 | dependency: transitive
256 | description:
257 | name: pub_semver
258 | sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c"
259 | url: "https://pub.dev"
260 | source: hosted
261 | version: "2.1.4"
262 | simple_peer:
263 | dependency: "direct main"
264 | description:
265 | path: ".."
266 | relative: true
267 | source: path
268 | version: "1.0.0"
269 | sky_engine:
270 | dependency: transitive
271 | description: flutter
272 | source: sdk
273 | version: "0.0.99"
274 | source_span:
275 | dependency: transitive
276 | description:
277 | name: source_span
278 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
279 | url: "https://pub.dev"
280 | source: hosted
281 | version: "1.10.0"
282 | stack_trace:
283 | dependency: transitive
284 | description:
285 | name: stack_trace
286 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
287 | url: "https://pub.dev"
288 | source: hosted
289 | version: "1.11.1"
290 | stream_channel:
291 | dependency: transitive
292 | description:
293 | name: stream_channel
294 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
295 | url: "https://pub.dev"
296 | source: hosted
297 | version: "2.1.2"
298 | string_scanner:
299 | dependency: transitive
300 | description:
301 | name: string_scanner
302 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
303 | url: "https://pub.dev"
304 | source: hosted
305 | version: "1.2.0"
306 | synchronized:
307 | dependency: transitive
308 | description:
309 | name: synchronized
310 | sha256: a824e842b8a054f91a728b783c177c1e4731f6b124f9192468457a8913371255
311 | url: "https://pub.dev"
312 | source: hosted
313 | version: "3.2.0"
314 | term_glyph:
315 | dependency: transitive
316 | description:
317 | name: term_glyph
318 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
319 | url: "https://pub.dev"
320 | source: hosted
321 | version: "1.2.1"
322 | test_api:
323 | dependency: transitive
324 | description:
325 | name: test_api
326 | sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
327 | url: "https://pub.dev"
328 | source: hosted
329 | version: "0.7.2"
330 | vector_math:
331 | dependency: transitive
332 | description:
333 | name: vector_math
334 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
335 | url: "https://pub.dev"
336 | source: hosted
337 | version: "2.1.4"
338 | vm_service:
339 | dependency: transitive
340 | description:
341 | name: vm_service
342 | sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
343 | url: "https://pub.dev"
344 | source: hosted
345 | version: "14.2.5"
346 | web:
347 | dependency: transitive
348 | description:
349 | name: web
350 | sha256: d43c1d6b787bf0afad444700ae7f4db8827f701bc61c255ac8d328c6f4d52062
351 | url: "https://pub.dev"
352 | source: hosted
353 | version: "1.0.0"
354 | webrtc_interface:
355 | dependency: transitive
356 | description:
357 | name: webrtc_interface
358 | sha256: abec3ab7956bd5ac539cf34a42fa0c82ea26675847c0966bb85160400eea9388
359 | url: "https://pub.dev"
360 | source: hosted
361 | version: "1.2.0"
362 | xdg_directories:
363 | dependency: transitive
364 | description:
365 | name: xdg_directories
366 | sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d
367 | url: "https://pub.dev"
368 | source: hosted
369 | version: "1.0.4"
370 | sdks:
371 | dart: ">=3.5.0 <4.0.0"
372 | flutter: ">=3.22.0"
373 |
--------------------------------------------------------------------------------
/example/macos/Runner/Base.lproj/MainMenu.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 |
--------------------------------------------------------------------------------
/example/macos/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 54;
7 | objects = {
8 |
9 | /* Begin PBXAggregateTarget section */
10 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
11 | isa = PBXAggregateTarget;
12 | buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
13 | buildPhases = (
14 | 33CC111E2044C6BF0003C045 /* ShellScript */,
15 | );
16 | dependencies = (
17 | );
18 | name = "Flutter Assemble";
19 | productName = FLX;
20 | };
21 | /* End PBXAggregateTarget section */
22 |
23 | /* Begin PBXBuildFile section */
24 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
25 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
26 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
27 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
28 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
29 | BD78A1EBF918D329FC9A10D0 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B674E35679CE2DA8F8552A9E /* Pods_Runner.framework */; };
30 | /* End PBXBuildFile section */
31 |
32 | /* Begin PBXContainerItemProxy section */
33 | 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
34 | isa = PBXContainerItemProxy;
35 | containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
36 | proxyType = 1;
37 | remoteGlobalIDString = 33CC111A2044C6BA0003C045;
38 | remoteInfo = FLX;
39 | };
40 | /* End PBXContainerItemProxy section */
41 |
42 | /* Begin PBXCopyFilesBuildPhase section */
43 | 33CC110E2044A8840003C045 /* Bundle Framework */ = {
44 | isa = PBXCopyFilesBuildPhase;
45 | buildActionMask = 2147483647;
46 | dstPath = "";
47 | dstSubfolderSpec = 10;
48 | files = (
49 | );
50 | name = "Bundle Framework";
51 | runOnlyForDeploymentPostprocessing = 0;
52 | };
53 | /* End PBXCopyFilesBuildPhase section */
54 |
55 | /* Begin PBXFileReference section */
56 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; };
57 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; };
58 | 33CC10ED2044A3C60003C045 /* example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = example.app; sourceTree = BUILT_PRODUCTS_DIR; };
59 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
60 | 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; };
61 | 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; };
62 | 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; };
63 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; };
64 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; };
65 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; };
66 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; };
67 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; };
68 | 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; };
69 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; };
70 | 5483915FFD8311DA7C11AD10 /* 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 = ""; };
71 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; };
72 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; };
73 | A32750295AB591F8D23ECB1A /* 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 = ""; };
74 | B507B2AB37B1859EBD543322 /* 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 = ""; };
75 | B674E35679CE2DA8F8552A9E /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
76 | /* End PBXFileReference section */
77 |
78 | /* Begin PBXFrameworksBuildPhase section */
79 | 33CC10EA2044A3C60003C045 /* Frameworks */ = {
80 | isa = PBXFrameworksBuildPhase;
81 | buildActionMask = 2147483647;
82 | files = (
83 | BD78A1EBF918D329FC9A10D0 /* Pods_Runner.framework in Frameworks */,
84 | );
85 | runOnlyForDeploymentPostprocessing = 0;
86 | };
87 | /* End PBXFrameworksBuildPhase section */
88 |
89 | /* Begin PBXGroup section */
90 | 33BA886A226E78AF003329D5 /* Configs */ = {
91 | isa = PBXGroup;
92 | children = (
93 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */,
94 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
95 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
96 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
97 | );
98 | path = Configs;
99 | sourceTree = "";
100 | };
101 | 33CC10E42044A3C60003C045 = {
102 | isa = PBXGroup;
103 | children = (
104 | 33FAB671232836740065AC1E /* Runner */,
105 | 33CEB47122A05771004F2AC0 /* Flutter */,
106 | 33CC10EE2044A3C60003C045 /* Products */,
107 | D73912EC22F37F3D000D13A0 /* Frameworks */,
108 | 8381DD2CEFB142AB646E7D6A /* Pods */,
109 | );
110 | sourceTree = "";
111 | };
112 | 33CC10EE2044A3C60003C045 /* Products */ = {
113 | isa = PBXGroup;
114 | children = (
115 | 33CC10ED2044A3C60003C045 /* example.app */,
116 | );
117 | name = Products;
118 | sourceTree = "";
119 | };
120 | 33CC11242044D66E0003C045 /* Resources */ = {
121 | isa = PBXGroup;
122 | children = (
123 | 33CC10F22044A3C60003C045 /* Assets.xcassets */,
124 | 33CC10F42044A3C60003C045 /* MainMenu.xib */,
125 | 33CC10F72044A3C60003C045 /* Info.plist */,
126 | );
127 | name = Resources;
128 | path = ..;
129 | sourceTree = "";
130 | };
131 | 33CEB47122A05771004F2AC0 /* Flutter */ = {
132 | isa = PBXGroup;
133 | children = (
134 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
135 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
136 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
137 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
138 | );
139 | path = Flutter;
140 | sourceTree = "";
141 | };
142 | 33FAB671232836740065AC1E /* Runner */ = {
143 | isa = PBXGroup;
144 | children = (
145 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */,
146 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
147 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */,
148 | 33E51914231749380026EE4D /* Release.entitlements */,
149 | 33CC11242044D66E0003C045 /* Resources */,
150 | 33BA886A226E78AF003329D5 /* Configs */,
151 | );
152 | path = Runner;
153 | sourceTree = "";
154 | };
155 | 8381DD2CEFB142AB646E7D6A /* Pods */ = {
156 | isa = PBXGroup;
157 | children = (
158 | B507B2AB37B1859EBD543322 /* Pods-Runner.debug.xcconfig */,
159 | 5483915FFD8311DA7C11AD10 /* Pods-Runner.release.xcconfig */,
160 | A32750295AB591F8D23ECB1A /* Pods-Runner.profile.xcconfig */,
161 | );
162 | name = Pods;
163 | path = Pods;
164 | sourceTree = "";
165 | };
166 | D73912EC22F37F3D000D13A0 /* Frameworks */ = {
167 | isa = PBXGroup;
168 | children = (
169 | B674E35679CE2DA8F8552A9E /* Pods_Runner.framework */,
170 | );
171 | name = Frameworks;
172 | sourceTree = "";
173 | };
174 | /* End PBXGroup section */
175 |
176 | /* Begin PBXNativeTarget section */
177 | 33CC10EC2044A3C60003C045 /* Runner */ = {
178 | isa = PBXNativeTarget;
179 | buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
180 | buildPhases = (
181 | 8D7D327DD53CE12BE102EE91 /* [CP] Check Pods Manifest.lock */,
182 | 33CC10E92044A3C60003C045 /* Sources */,
183 | 33CC10EA2044A3C60003C045 /* Frameworks */,
184 | 33CC10EB2044A3C60003C045 /* Resources */,
185 | 33CC110E2044A8840003C045 /* Bundle Framework */,
186 | 3399D490228B24CF009A79C7 /* ShellScript */,
187 | 572DA4F5FCF9BB5FC0224754 /* [CP] Embed Pods Frameworks */,
188 | );
189 | buildRules = (
190 | );
191 | dependencies = (
192 | 33CC11202044C79F0003C045 /* PBXTargetDependency */,
193 | );
194 | name = Runner;
195 | productName = Runner;
196 | productReference = 33CC10ED2044A3C60003C045 /* example.app */;
197 | productType = "com.apple.product-type.application";
198 | };
199 | /* End PBXNativeTarget section */
200 |
201 | /* Begin PBXProject section */
202 | 33CC10E52044A3C60003C045 /* Project object */ = {
203 | isa = PBXProject;
204 | attributes = {
205 | LastSwiftUpdateCheck = 0920;
206 | LastUpgradeCheck = 1510;
207 | ORGANIZATIONNAME = "";
208 | TargetAttributes = {
209 | 33CC10EC2044A3C60003C045 = {
210 | CreatedOnToolsVersion = 9.2;
211 | LastSwiftMigration = 1100;
212 | ProvisioningStyle = Automatic;
213 | SystemCapabilities = {
214 | com.apple.Sandbox = {
215 | enabled = 1;
216 | };
217 | };
218 | };
219 | 33CC111A2044C6BA0003C045 = {
220 | CreatedOnToolsVersion = 9.2;
221 | ProvisioningStyle = Manual;
222 | };
223 | };
224 | };
225 | buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
226 | compatibilityVersion = "Xcode 9.3";
227 | developmentRegion = en;
228 | hasScannedForEncodings = 0;
229 | knownRegions = (
230 | en,
231 | Base,
232 | );
233 | mainGroup = 33CC10E42044A3C60003C045;
234 | productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
235 | projectDirPath = "";
236 | projectRoot = "";
237 | targets = (
238 | 33CC10EC2044A3C60003C045 /* Runner */,
239 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */,
240 | );
241 | };
242 | /* End PBXProject section */
243 |
244 | /* Begin PBXResourcesBuildPhase section */
245 | 33CC10EB2044A3C60003C045 /* Resources */ = {
246 | isa = PBXResourcesBuildPhase;
247 | buildActionMask = 2147483647;
248 | files = (
249 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
250 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
251 | );
252 | runOnlyForDeploymentPostprocessing = 0;
253 | };
254 | /* End PBXResourcesBuildPhase section */
255 |
256 | /* Begin PBXShellScriptBuildPhase section */
257 | 3399D490228B24CF009A79C7 /* ShellScript */ = {
258 | isa = PBXShellScriptBuildPhase;
259 | alwaysOutOfDate = 1;
260 | buildActionMask = 2147483647;
261 | files = (
262 | );
263 | inputFileListPaths = (
264 | );
265 | inputPaths = (
266 | );
267 | outputFileListPaths = (
268 | );
269 | outputPaths = (
270 | );
271 | runOnlyForDeploymentPostprocessing = 0;
272 | shellPath = /bin/sh;
273 | shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
274 | };
275 | 33CC111E2044C6BF0003C045 /* ShellScript */ = {
276 | isa = PBXShellScriptBuildPhase;
277 | buildActionMask = 2147483647;
278 | files = (
279 | );
280 | inputFileListPaths = (
281 | Flutter/ephemeral/FlutterInputs.xcfilelist,
282 | );
283 | inputPaths = (
284 | Flutter/ephemeral/tripwire,
285 | );
286 | outputFileListPaths = (
287 | Flutter/ephemeral/FlutterOutputs.xcfilelist,
288 | );
289 | outputPaths = (
290 | );
291 | runOnlyForDeploymentPostprocessing = 0;
292 | shellPath = /bin/sh;
293 | shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
294 | };
295 | 572DA4F5FCF9BB5FC0224754 /* [CP] Embed Pods Frameworks */ = {
296 | isa = PBXShellScriptBuildPhase;
297 | buildActionMask = 2147483647;
298 | files = (
299 | );
300 | inputFileListPaths = (
301 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
302 | );
303 | name = "[CP] Embed Pods Frameworks";
304 | outputFileListPaths = (
305 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
306 | );
307 | runOnlyForDeploymentPostprocessing = 0;
308 | shellPath = /bin/sh;
309 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
310 | showEnvVarsInLog = 0;
311 | };
312 | 8D7D327DD53CE12BE102EE91 /* [CP] Check Pods Manifest.lock */ = {
313 | isa = PBXShellScriptBuildPhase;
314 | buildActionMask = 2147483647;
315 | files = (
316 | );
317 | inputFileListPaths = (
318 | );
319 | inputPaths = (
320 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
321 | "${PODS_ROOT}/Manifest.lock",
322 | );
323 | name = "[CP] Check Pods Manifest.lock";
324 | outputFileListPaths = (
325 | );
326 | outputPaths = (
327 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
328 | );
329 | runOnlyForDeploymentPostprocessing = 0;
330 | shellPath = /bin/sh;
331 | 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";
332 | showEnvVarsInLog = 0;
333 | };
334 | /* End PBXShellScriptBuildPhase section */
335 |
336 | /* Begin PBXSourcesBuildPhase section */
337 | 33CC10E92044A3C60003C045 /* Sources */ = {
338 | isa = PBXSourcesBuildPhase;
339 | buildActionMask = 2147483647;
340 | files = (
341 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
342 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
343 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
344 | );
345 | runOnlyForDeploymentPostprocessing = 0;
346 | };
347 | /* End PBXSourcesBuildPhase section */
348 |
349 | /* Begin PBXTargetDependency section */
350 | 33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
351 | isa = PBXTargetDependency;
352 | target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
353 | targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
354 | };
355 | /* End PBXTargetDependency section */
356 |
357 | /* Begin PBXVariantGroup section */
358 | 33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
359 | isa = PBXVariantGroup;
360 | children = (
361 | 33CC10F52044A3C60003C045 /* Base */,
362 | );
363 | name = MainMenu.xib;
364 | path = Runner;
365 | sourceTree = "";
366 | };
367 | /* End PBXVariantGroup section */
368 |
369 | /* Begin XCBuildConfiguration section */
370 | 338D0CE9231458BD00FA5F75 /* Profile */ = {
371 | isa = XCBuildConfiguration;
372 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
373 | buildSettings = {
374 | ALWAYS_SEARCH_USER_PATHS = NO;
375 | CLANG_ANALYZER_NONNULL = YES;
376 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
377 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
378 | CLANG_CXX_LIBRARY = "libc++";
379 | CLANG_ENABLE_MODULES = YES;
380 | CLANG_ENABLE_OBJC_ARC = YES;
381 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
382 | CLANG_WARN_BOOL_CONVERSION = YES;
383 | CLANG_WARN_CONSTANT_CONVERSION = YES;
384 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
385 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
386 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
387 | CLANG_WARN_EMPTY_BODY = YES;
388 | CLANG_WARN_ENUM_CONVERSION = YES;
389 | CLANG_WARN_INFINITE_RECURSION = YES;
390 | CLANG_WARN_INT_CONVERSION = YES;
391 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
392 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
393 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
394 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
395 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
396 | CODE_SIGN_IDENTITY = "-";
397 | COPY_PHASE_STRIP = NO;
398 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
399 | ENABLE_NS_ASSERTIONS = NO;
400 | ENABLE_STRICT_OBJC_MSGSEND = YES;
401 | GCC_C_LANGUAGE_STANDARD = gnu11;
402 | GCC_NO_COMMON_BLOCKS = YES;
403 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
404 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
405 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
406 | GCC_WARN_UNUSED_FUNCTION = YES;
407 | GCC_WARN_UNUSED_VARIABLE = YES;
408 | MACOSX_DEPLOYMENT_TARGET = 10.14;
409 | MTL_ENABLE_DEBUG_INFO = NO;
410 | SDKROOT = macosx;
411 | SWIFT_COMPILATION_MODE = wholemodule;
412 | SWIFT_OPTIMIZATION_LEVEL = "-O";
413 | };
414 | name = Profile;
415 | };
416 | 338D0CEA231458BD00FA5F75 /* Profile */ = {
417 | isa = XCBuildConfiguration;
418 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
419 | buildSettings = {
420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
421 | CLANG_ENABLE_MODULES = YES;
422 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
423 | CODE_SIGN_STYLE = Automatic;
424 | COMBINE_HIDPI_IMAGES = YES;
425 | INFOPLIST_FILE = Runner/Info.plist;
426 | LD_RUNPATH_SEARCH_PATHS = (
427 | "$(inherited)",
428 | "@executable_path/../Frameworks",
429 | );
430 | PROVISIONING_PROFILE_SPECIFIER = "";
431 | SWIFT_VERSION = 5.0;
432 | };
433 | name = Profile;
434 | };
435 | 338D0CEB231458BD00FA5F75 /* Profile */ = {
436 | isa = XCBuildConfiguration;
437 | buildSettings = {
438 | CODE_SIGN_STYLE = Manual;
439 | PRODUCT_NAME = "$(TARGET_NAME)";
440 | };
441 | name = Profile;
442 | };
443 | 33CC10F92044A3C60003C045 /* Debug */ = {
444 | isa = XCBuildConfiguration;
445 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
446 | buildSettings = {
447 | ALWAYS_SEARCH_USER_PATHS = NO;
448 | CLANG_ANALYZER_NONNULL = YES;
449 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
450 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
451 | CLANG_CXX_LIBRARY = "libc++";
452 | CLANG_ENABLE_MODULES = YES;
453 | CLANG_ENABLE_OBJC_ARC = YES;
454 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
455 | CLANG_WARN_BOOL_CONVERSION = YES;
456 | CLANG_WARN_CONSTANT_CONVERSION = YES;
457 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
458 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
459 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
460 | CLANG_WARN_EMPTY_BODY = YES;
461 | CLANG_WARN_ENUM_CONVERSION = YES;
462 | CLANG_WARN_INFINITE_RECURSION = YES;
463 | CLANG_WARN_INT_CONVERSION = YES;
464 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
465 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
466 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
467 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
468 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
469 | CODE_SIGN_IDENTITY = "-";
470 | COPY_PHASE_STRIP = NO;
471 | DEBUG_INFORMATION_FORMAT = dwarf;
472 | ENABLE_STRICT_OBJC_MSGSEND = YES;
473 | ENABLE_TESTABILITY = YES;
474 | GCC_C_LANGUAGE_STANDARD = gnu11;
475 | GCC_DYNAMIC_NO_PIC = NO;
476 | GCC_NO_COMMON_BLOCKS = YES;
477 | GCC_OPTIMIZATION_LEVEL = 0;
478 | GCC_PREPROCESSOR_DEFINITIONS = (
479 | "DEBUG=1",
480 | "$(inherited)",
481 | );
482 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
483 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
484 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
485 | GCC_WARN_UNUSED_FUNCTION = YES;
486 | GCC_WARN_UNUSED_VARIABLE = YES;
487 | MACOSX_DEPLOYMENT_TARGET = 10.14;
488 | MTL_ENABLE_DEBUG_INFO = YES;
489 | ONLY_ACTIVE_ARCH = YES;
490 | SDKROOT = macosx;
491 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
492 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
493 | };
494 | name = Debug;
495 | };
496 | 33CC10FA2044A3C60003C045 /* Release */ = {
497 | isa = XCBuildConfiguration;
498 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
499 | buildSettings = {
500 | ALWAYS_SEARCH_USER_PATHS = NO;
501 | CLANG_ANALYZER_NONNULL = YES;
502 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
503 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
504 | CLANG_CXX_LIBRARY = "libc++";
505 | CLANG_ENABLE_MODULES = YES;
506 | CLANG_ENABLE_OBJC_ARC = YES;
507 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
508 | CLANG_WARN_BOOL_CONVERSION = YES;
509 | CLANG_WARN_CONSTANT_CONVERSION = YES;
510 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
511 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
512 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
513 | CLANG_WARN_EMPTY_BODY = YES;
514 | CLANG_WARN_ENUM_CONVERSION = YES;
515 | CLANG_WARN_INFINITE_RECURSION = YES;
516 | CLANG_WARN_INT_CONVERSION = YES;
517 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
518 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
519 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
520 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
521 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
522 | CODE_SIGN_IDENTITY = "-";
523 | COPY_PHASE_STRIP = NO;
524 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
525 | ENABLE_NS_ASSERTIONS = NO;
526 | ENABLE_STRICT_OBJC_MSGSEND = YES;
527 | GCC_C_LANGUAGE_STANDARD = gnu11;
528 | GCC_NO_COMMON_BLOCKS = YES;
529 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
530 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
531 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
532 | GCC_WARN_UNUSED_FUNCTION = YES;
533 | GCC_WARN_UNUSED_VARIABLE = YES;
534 | MACOSX_DEPLOYMENT_TARGET = 10.14;
535 | MTL_ENABLE_DEBUG_INFO = NO;
536 | SDKROOT = macosx;
537 | SWIFT_COMPILATION_MODE = wholemodule;
538 | SWIFT_OPTIMIZATION_LEVEL = "-O";
539 | };
540 | name = Release;
541 | };
542 | 33CC10FC2044A3C60003C045 /* Debug */ = {
543 | isa = XCBuildConfiguration;
544 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
545 | buildSettings = {
546 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
547 | CLANG_ENABLE_MODULES = YES;
548 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
549 | CODE_SIGN_STYLE = Automatic;
550 | COMBINE_HIDPI_IMAGES = YES;
551 | INFOPLIST_FILE = Runner/Info.plist;
552 | LD_RUNPATH_SEARCH_PATHS = (
553 | "$(inherited)",
554 | "@executable_path/../Frameworks",
555 | );
556 | PROVISIONING_PROFILE_SPECIFIER = "";
557 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
558 | SWIFT_VERSION = 5.0;
559 | };
560 | name = Debug;
561 | };
562 | 33CC10FD2044A3C60003C045 /* Release */ = {
563 | isa = XCBuildConfiguration;
564 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
565 | buildSettings = {
566 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
567 | CLANG_ENABLE_MODULES = YES;
568 | CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
569 | CODE_SIGN_STYLE = Automatic;
570 | COMBINE_HIDPI_IMAGES = YES;
571 | INFOPLIST_FILE = Runner/Info.plist;
572 | LD_RUNPATH_SEARCH_PATHS = (
573 | "$(inherited)",
574 | "@executable_path/../Frameworks",
575 | );
576 | PROVISIONING_PROFILE_SPECIFIER = "";
577 | SWIFT_VERSION = 5.0;
578 | };
579 | name = Release;
580 | };
581 | 33CC111C2044C6BA0003C045 /* Debug */ = {
582 | isa = XCBuildConfiguration;
583 | buildSettings = {
584 | CODE_SIGN_STYLE = Manual;
585 | PRODUCT_NAME = "$(TARGET_NAME)";
586 | };
587 | name = Debug;
588 | };
589 | 33CC111D2044C6BA0003C045 /* Release */ = {
590 | isa = XCBuildConfiguration;
591 | buildSettings = {
592 | CODE_SIGN_STYLE = Automatic;
593 | PRODUCT_NAME = "$(TARGET_NAME)";
594 | };
595 | name = Release;
596 | };
597 | /* End XCBuildConfiguration section */
598 |
599 | /* Begin XCConfigurationList section */
600 | 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
601 | isa = XCConfigurationList;
602 | buildConfigurations = (
603 | 33CC10F92044A3C60003C045 /* Debug */,
604 | 33CC10FA2044A3C60003C045 /* Release */,
605 | 338D0CE9231458BD00FA5F75 /* Profile */,
606 | );
607 | defaultConfigurationIsVisible = 0;
608 | defaultConfigurationName = Release;
609 | };
610 | 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
611 | isa = XCConfigurationList;
612 | buildConfigurations = (
613 | 33CC10FC2044A3C60003C045 /* Debug */,
614 | 33CC10FD2044A3C60003C045 /* Release */,
615 | 338D0CEA231458BD00FA5F75 /* Profile */,
616 | );
617 | defaultConfigurationIsVisible = 0;
618 | defaultConfigurationName = Release;
619 | };
620 | 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
621 | isa = XCConfigurationList;
622 | buildConfigurations = (
623 | 33CC111C2044C6BA0003C045 /* Debug */,
624 | 33CC111D2044C6BA0003C045 /* Release */,
625 | 338D0CEB231458BD00FA5F75 /* Profile */,
626 | );
627 | defaultConfigurationIsVisible = 0;
628 | defaultConfigurationName = Release;
629 | };
630 | /* End XCConfigurationList section */
631 | };
632 | rootObject = 33CC10E52044A3C60003C045 /* Project object */;
633 | }
634 |
--------------------------------------------------------------------------------