diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e916eb0 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +pigeon: # Generates the typesafe bridge between host and flutter + flutter pub run pigeon \ + --input lib/src/HostApisDefinition.dart \ + --dart_out lib/src/HostApis.dart \ + --objc_header_out ios/Classes/HostApis.h \ + --objc_source_out ios/Classes/HostApis.m \ + --java_out ./android/src/main/java/com/gianlucaparadise/flutter_cast_framework/HostApis.java \ + --java_package "com.gianlucaparadise.flutter_cast_framework" \ No newline at end of file diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index fa5bbf8..54b79f0 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -3,12 +3,15 @@ PODS: - flutter_cast_framework (0.0.1): - Flutter - google-cast-sdk-no-bluetooth (~> 4.4.4) - - google-cast-sdk-no-bluetooth (4.4.4): - - google-cast-sdk-no-bluetooth/Core (= 4.4.4) - - Protobuf (~> 3.0) - - google-cast-sdk-no-bluetooth/Core (4.4.4): - - Protobuf (~> 3.0) - - Protobuf (3.9.0) + - google-cast-sdk-no-bluetooth (4.4.8): + - google-cast-sdk-no-bluetooth/Core (= 4.4.8) + - GTMSessionFetcher/Core (~> 1.0) + - Protobuf (~> 3.12) + - google-cast-sdk-no-bluetooth/Core (4.4.8): + - GTMSessionFetcher/Core (~> 1.0) + - Protobuf (~> 3.12) + - GTMSessionFetcher/Core (1.7.0) + - Protobuf (3.19.0) DEPENDENCIES: - Flutter (from `Flutter`) @@ -17,6 +20,7 @@ DEPENDENCIES: SPEC REPOS: trunk: - google-cast-sdk-no-bluetooth + - GTMSessionFetcher - Protobuf EXTERNAL SOURCES: @@ -28,8 +32,9 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a flutter_cast_framework: 2728e840a40f44fb3cbcedbcd2c8d3f4efd53839 - google-cast-sdk-no-bluetooth: e0af19280673fba052f7fc3ddde6116c733ce505 - Protobuf: 1097ca58584c8d9be81bfbf2c5ff5975648dd87a + google-cast-sdk-no-bluetooth: d5a60530c72b0907fb302d835952b6cb0ba5f128 + GTMSessionFetcher: 43748f93435c2aa068b1cbe39655aaf600652e91 + Protobuf: e9b99dd5da72f665ec503b19191f245a22188b4d PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 21d48ac..a72fe91 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -272,10 +272,12 @@ ); inputPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/GTMSessionFetcher/GTMSessionFetcher.framework", "${BUILT_PRODUCTS_DIR}/Protobuf/Protobuf.framework", ); name = "[CP] Embed Pods Frameworks"; outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GTMSessionFetcher.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Protobuf.framework", ); runOnlyForDeploymentPostprocessing = 0; @@ -290,8 +292,8 @@ ); inputPaths = ( "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh", - "${PODS_ROOT}/google-cast-sdk-no-bluetooth/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCastCoreResources.bundle", - "${PODS_ROOT}/google-cast-sdk-no-bluetooth/GoogleCastSDK-ios-4.4.4_static/GoogleCast.framework/GoogleCastUIResources.bundle", + "${PODS_ROOT}/google-cast-sdk-no-bluetooth/GoogleCastSDK-ios-4.4.8_static/GoogleCast.framework/GoogleCastCoreResources.bundle", + "${PODS_ROOT}/google-cast-sdk-no-bluetooth/GoogleCastSDK-ios-4.4.8_static/GoogleCast.framework/GoogleCastUIResources.bundle", ); name = "[CP] Copy Pods Resources"; outputPaths = ( diff --git a/example/pubspec.lock b/example/pubspec.lock index ad96907..4aecbca 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -49,7 +49,7 @@ packages: name: cupertino_icons url: "https://pub.dartlang.org" source: hosted - version: "0.1.2" + version: "0.1.3" fake_async: dependency: transitive description: @@ -108,7 +108,7 @@ packages: name: path_drawing url: "https://pub.dartlang.org" source: hosted - version: "0.5.1" + version: "0.5.1+1" path_parsing: dependency: transitive description: @@ -122,7 +122,7 @@ packages: name: petitparser url: "https://pub.dartlang.org" source: hosted - version: "4.3.0" + version: "4.4.0" sky_engine: dependency: transitive description: flutter @@ -190,7 +190,7 @@ packages: name: xml url: "https://pub.dartlang.org" source: hosted - version: "5.3.0" + version: "5.3.1" sdks: dart: ">=2.14.0 <3.0.0" flutter: ">=1.24.0-7.0" diff --git a/pubspec.lock b/pubspec.lock index cd19d6f..9af0e54 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1,6 +1,27 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: + _fe_analyzer_shared: + dependency: transitive + description: + name: _fe_analyzer_shared + url: "https://pub.dartlang.org" + source: hosted + version: "30.0.0" + analyzer: + dependency: transitive + description: + name: analyzer + url: "https://pub.dartlang.org" + source: hosted + version: "2.7.0" + args: + dependency: transitive + description: + name: args + url: "https://pub.dartlang.org" + source: hosted + version: "2.3.0" async: dependency: transitive description: @@ -29,6 +50,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.3.1" + cli_util: + dependency: transitive + description: + name: cli_util + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.5" clock: dependency: transitive description: @@ -43,6 +71,20 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.15.0" + convert: + dependency: transitive + description: + name: convert + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.1" + crypto: + dependency: transitive + description: + name: crypto + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.1" fake_async: dependency: transitive description: @@ -50,6 +92,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.2.0" + file: + dependency: transitive + description: + name: file + url: "https://pub.dartlang.org" + source: hosted + version: "6.1.2" flutter: dependency: "direct main" description: flutter @@ -67,6 +116,13 @@ packages: description: flutter source: sdk version: "0.0.0" + glob: + dependency: transitive + description: + name: glob + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.2" matcher: dependency: transitive description: @@ -81,6 +137,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.7.0" + package_config: + dependency: transitive + description: + name: package_config + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.2" path: dependency: transitive description: @@ -94,7 +157,7 @@ packages: name: path_drawing url: "https://pub.dartlang.org" source: hosted - version: "0.5.1" + version: "0.5.1+1" path_parsing: dependency: transitive description: @@ -108,7 +171,21 @@ packages: name: petitparser url: "https://pub.dartlang.org" source: hosted - version: "4.3.0" + version: "4.4.0" + pigeon: + dependency: "direct dev" + description: + name: pigeon + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.8" + pub_semver: + dependency: transitive + description: + name: pub_semver + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" sky_engine: dependency: transitive description: flutter @@ -170,13 +247,27 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.1.0" + watcher: + dependency: transitive + description: + name: watcher + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" xml: dependency: transitive description: name: xml url: "https://pub.dartlang.org" source: hosted - version: "5.3.0" + version: "5.3.1" + yaml: + dependency: transitive + description: + name: yaml + url: "https://pub.dartlang.org" + source: hosted + version: "3.1.0" sdks: dart: ">=2.14.0 <3.0.0" flutter: ">=1.24.0-7.0" diff --git a/pubspec.yaml b/pubspec.yaml index b4dd2d1..61420c9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -14,6 +14,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter + pigeon: ^1.0.8 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec