From 798cda68e96a912cfe5b9826be42e444faeea38f Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Mon, 17 Jun 2024 22:00:39 -0400 Subject: [PATCH] Fix googlecast --- .../GoogleCast.Binding.csproj | 10 ++- googlecast/macios/README.md | 3 + .../MauiGoogleCast.xcodeproj/project.pbxproj | 16 ++-- .../macios/sample/GoogleCastButtonHandler.cs | 2 +- googlecast/macios/sample/MainPage.xaml | 6 -- googlecast/macios/sample/MainPage.xaml.cs | 75 +++++++++---------- 6 files changed, 57 insertions(+), 55 deletions(-) diff --git a/googlecast/macios/GoogleCast.Binding/GoogleCast.Binding.csproj b/googlecast/macios/GoogleCast.Binding/GoogleCast.Binding.csproj index 24f624e..de02005 100644 --- a/googlecast/macios/GoogleCast.Binding/GoogleCast.Binding.csproj +++ b/googlecast/macios/GoogleCast.Binding/GoogleCast.Binding.csproj @@ -26,8 +26,14 @@ - 4.8.0 - https://dl.google.com/dl/chromecast/sdk/ios/GoogleCastSDK-ios-$(GoogleCastiOSSdkVersion)_dynamic_xcframework.zip + + https://github.com/react-native-google-cast/google-cast-sdk-dynamic-xcframework-no-bluetooth/archive/refs/tags/4.7.1.zip diff --git a/googlecast/macios/README.md b/googlecast/macios/README.md index 26d153d..98624b7 100644 --- a/googlecast/macios/README.md +++ b/googlecast/macios/README.md @@ -7,6 +7,9 @@ This folder contains a slim binding for the Google Cast SDK. ``` ### Configure +To deploy this sample to a physical iOS device you will need to open `native/MauiGoogleCast.xcodeproj` +in Xcode and configure the signing team/settings in Targets -> MauiGoogleCast -> Signing & Capabilities. + For more details, reference the [Get Started][0] page. [0]: https://developers.google.com/cast diff --git a/googlecast/macios/native/MauiGoogleCast.xcodeproj/project.pbxproj b/googlecast/macios/native/MauiGoogleCast.xcodeproj/project.pbxproj index 82e364a..59895c9 100644 --- a/googlecast/macios/native/MauiGoogleCast.xcodeproj/project.pbxproj +++ b/googlecast/macios/native/MauiGoogleCast.xcodeproj/project.pbxproj @@ -9,18 +9,18 @@ /* Begin PBXBuildFile section */ 64B9934B2B97A71D00BAFB55 /* MauiGoogleCast.h in Headers */ = {isa = PBXBuildFile; fileRef = 64B9934A2B97A71D00BAFB55 /* MauiGoogleCast.h */; settings = {ATTRIBUTES = (Public, ); }; }; 64B993572B97A7B300BAFB55 /* MauiGoogleCast.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64B993562B97A7B300BAFB55 /* MauiGoogleCast.swift */; }; - D0D666252C06BE5F005451D1 /* GoogleCast.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = D0D666232C06BD7B005451D1 /* GoogleCast.xcframework */; }; - D0D666262C06BE5F005451D1 /* GoogleCast.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D0D666232C06BD7B005451D1 /* GoogleCast.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + D0A597A62C211F9D00C52635 /* GoogleCast.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = D0A597A42C211EE600C52635 /* GoogleCast.xcframework */; }; + D0A597A72C211F9D00C52635 /* GoogleCast.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D0A597A42C211EE600C52635 /* GoogleCast.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ - D0D666272C06BE5F005451D1 /* Embed Frameworks */ = { + D0023C6E2C210F8100EFDC57 /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 10; files = ( - D0D666262C06BE5F005451D1 /* GoogleCast.xcframework in Embed Frameworks */, + D0A597A72C211F9D00C52635 /* GoogleCast.xcframework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -31,7 +31,7 @@ 64B993472B97A71D00BAFB55 /* MauiGoogleCast.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MauiGoogleCast.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 64B9934A2B97A71D00BAFB55 /* MauiGoogleCast.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MauiGoogleCast.h; sourceTree = ""; }; 64B993562B97A7B300BAFB55 /* MauiGoogleCast.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MauiGoogleCast.swift; sourceTree = ""; }; - D0D666232C06BD7B005451D1 /* GoogleCast.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = GoogleCast.xcframework; path = "build/deps/GoogleCastSDK-ios-4.8.0_dynamic_xcframework/GoogleCast.xcframework"; sourceTree = ""; }; + D0A597A42C211EE600C52635 /* GoogleCast.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = GoogleCast.xcframework; path = "build/deps/google-cast-sdk-dynamic-xcframework-no-bluetooth-4.7.1/GoogleCast.xcframework"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -39,7 +39,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - D0D666252C06BE5F005451D1 /* GoogleCast.xcframework in Frameworks */, + D0A597A62C211F9D00C52635 /* GoogleCast.xcframework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -75,7 +75,7 @@ 64B993512B97A7A200BAFB55 /* Frameworks */ = { isa = PBXGroup; children = ( - D0D666232C06BD7B005451D1 /* GoogleCast.xcframework */, + D0A597A42C211EE600C52635 /* GoogleCast.xcframework */, ); name = Frameworks; sourceTree = ""; @@ -102,7 +102,7 @@ 64B993432B97A71D00BAFB55 /* Sources */, 64B993442B97A71D00BAFB55 /* Frameworks */, 64B993452B97A71D00BAFB55 /* Resources */, - D0D666272C06BE5F005451D1 /* Embed Frameworks */, + D0023C6E2C210F8100EFDC57 /* Embed Frameworks */, ); buildRules = ( ); diff --git a/googlecast/macios/sample/GoogleCastButtonHandler.cs b/googlecast/macios/sample/GoogleCastButtonHandler.cs index afd07bc..a5366ee 100644 --- a/googlecast/macios/sample/GoogleCastButtonHandler.cs +++ b/googlecast/macios/sample/GoogleCastButtonHandler.cs @@ -31,7 +31,7 @@ protected override NativeGoogleCastButton CreatePlatformView() #if IOS var b = new GoogleCastButton(); b.Frame = new CoreGraphics.CGRect(0, 0, 24, 24); - b.TintColor = UIKit.UIColor.Gray; + b.TintColor = UIKit.UIColor.Orange; return b; #else return null; diff --git a/googlecast/macios/sample/MainPage.xaml b/googlecast/macios/sample/MainPage.xaml index e79a2ac..4c8580f 100644 --- a/googlecast/macios/sample/MainPage.xaml +++ b/googlecast/macios/sample/MainPage.xaml @@ -8,12 +8,6 @@ - -