diff --git a/ios/Podfile.lock b/ios/Podfile.lock index d16b2f4a..3fc2c971 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -4,13 +4,15 @@ PODS: - Flutter - google_maps_flutter_ios (0.0.1): - Flutter - - GoogleMaps + - GoogleMaps (< 8.0) - GoogleMaps (6.2.1): - GoogleMaps/Maps (= 6.2.1) - GoogleMaps/Base (6.2.1) - GoogleMaps/Maps (6.2.1): - GoogleMaps/Base - - image_gallery_saver (1.5.0): + - home_widget (0.0.1): + - Flutter + - image_gallery_saver (2.0.2): - Flutter - package_info_plus (0.4.5): - Flutter @@ -31,6 +33,7 @@ DEPENDENCIES: - Flutter (from `Flutter`) - flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`) - google_maps_flutter_ios (from `.symlinks/plugins/google_maps_flutter_ios/ios`) + - home_widget (from `.symlinks/plugins/home_widget/ios`) - image_gallery_saver (from `.symlinks/plugins/image_gallery_saver/ios`) - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`) @@ -50,6 +53,8 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/flutter_native_splash/ios" google_maps_flutter_ios: :path: ".symlinks/plugins/google_maps_flutter_ios/ios" + home_widget: + :path: ".symlinks/plugins/home_widget/ios" image_gallery_saver: :path: ".symlinks/plugins/image_gallery_saver/ios" package_info_plus: @@ -68,15 +73,16 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 flutter_native_splash: 52501b97d1c0a5f898d687f1646226c1f93c56ef - google_maps_flutter_ios: 66201f392bf62d500f07670a30488a247b9bb5b9 + google_maps_flutter_ios: abdac20d6ce8931f6ebc5f46616df241bfaa2cfd GoogleMaps: 20d7b12be49a14287f797e88e0e31bc4156aaeb4 - image_gallery_saver: 259eab68fb271cfd57d599904f7acdc7832e7ef2 + home_widget: 0434835a4c9a75704264feff6be17ea40e0f0d57 + image_gallery_saver: cb43cc43141711190510e92c460eb1655cd343cb package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e - path_provider_foundation: 37748e03f12783f9de2cb2c4eadfaa25fe6d4852 + path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943 share_plus: 056a1e8ac890df3e33cb503afffaf1e9b4fbae68 - shared_preferences_foundation: 297b3ebca31b34ec92be11acd7fb0ba932c822ca - url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de - webview_flutter_wkwebview: b7e70ef1ddded7e69c796c7390ee74180182971f + shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126 + url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4 + webview_flutter_wkwebview: 2e2d318f21a5e036e2c3f26171342e95908bd60a PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 60ecffa1..f47fa968 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -8,6 +8,14 @@ /* Begin PBXBuildFile section */ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 297F6FC72AD06E0D00FF159E /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 297F6FC62AD06E0D00FF159E /* WidgetKit.framework */; }; + 297F6FC92AD06E0D00FF159E /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 297F6FC82AD06E0D00FF159E /* SwiftUI.framework */; }; + 297F6FCC2AD06E0D00FF159E /* Wonderous_WidgetBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 297F6FCB2AD06E0D00FF159E /* Wonderous_WidgetBundle.swift */; }; + 297F6FCE2AD06E0D00FF159E /* Wonderous_Widget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 297F6FCD2AD06E0D00FF159E /* Wonderous_Widget.swift */; }; + 297F6FD12AD06E0F00FF159E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 297F6FD02AD06E0F00FF159E /* Assets.xcassets */; }; + 297F6FD32AD06E0F00FF159E /* Wonderous_Widget.intentdefinition in Sources */ = {isa = PBXBuildFile; fileRef = 297F6FCF2AD06E0D00FF159E /* Wonderous_Widget.intentdefinition */; }; + 297F6FD42AD06E0F00FF159E /* Wonderous_Widget.intentdefinition in Sources */ = {isa = PBXBuildFile; fileRef = 297F6FCF2AD06E0D00FF159E /* Wonderous_Widget.intentdefinition */; }; + 297F6FD72AD06E0F00FF159E /* Wonderous WidgetExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 297F6FC52AD06E0D00FF159E /* Wonderous WidgetExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 323DE3CFA8490EAB3C4E249C /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A44ACC5DE81A9C3E5BDA151 /* Pods_Runner.framework */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; @@ -17,6 +25,13 @@ /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ + 297F6FD52AD06E0F00FF159E /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 297F6FC42AD06E0D00FF159E; + remoteInfo = "Wonderous WidgetExtension"; + }; E214FC8827C5A18E005F78FB /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 97C146E61CF9000F007C117D /* Project object */; @@ -27,6 +42,17 @@ /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ + 297F6FD82AD06E0F00FF159E /* Embed Foundation Extensions */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 13; + files = ( + 297F6FD72AD06E0F00FF159E /* Wonderous WidgetExtension.appex in Embed Foundation Extensions */, + ); + name = "Embed Foundation Extensions"; + runOnlyForDeploymentPostprocessing = 0; + }; 9705A1C41CF9048500538489 /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; @@ -43,6 +69,14 @@ 1475293CB8660AC785DF56AB /* 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 = ""; }; 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 297F6FC52AD06E0D00FF159E /* Wonderous WidgetExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Wonderous WidgetExtension.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; + 297F6FC62AD06E0D00FF159E /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; }; + 297F6FC82AD06E0D00FF159E /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; }; + 297F6FCB2AD06E0D00FF159E /* Wonderous_WidgetBundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Wonderous_WidgetBundle.swift; sourceTree = ""; }; + 297F6FCD2AD06E0D00FF159E /* Wonderous_Widget.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Wonderous_Widget.swift; sourceTree = ""; }; + 297F6FCF2AD06E0D00FF159E /* Wonderous_Widget.intentdefinition */ = {isa = PBXFileReference; lastKnownFileType = file.intentdefinition; path = Wonderous_Widget.intentdefinition; sourceTree = ""; }; + 297F6FD02AD06E0F00FF159E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 297F6FD22AD06E0F00FF159E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 4A44ACC5DE81A9C3E5BDA151 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; @@ -62,6 +96,15 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 297F6FC22AD06E0D00FF159E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 297F6FC92AD06E0D00FF159E /* SwiftUI.framework in Frameworks */, + 297F6FC72AD06E0D00FF159E /* WidgetKit.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 97C146EB1CF9000F007C117D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -80,10 +123,24 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 297F6FCA2AD06E0D00FF159E /* Wonderous Widget */ = { + isa = PBXGroup; + children = ( + 297F6FCB2AD06E0D00FF159E /* Wonderous_WidgetBundle.swift */, + 297F6FCD2AD06E0D00FF159E /* Wonderous_Widget.swift */, + 297F6FCF2AD06E0D00FF159E /* Wonderous_Widget.intentdefinition */, + 297F6FD02AD06E0F00FF159E /* Assets.xcassets */, + 297F6FD22AD06E0F00FF159E /* Info.plist */, + ); + path = "Wonderous Widget"; + sourceTree = ""; + }; 5073AC1D92C10773F20D12A2 /* Frameworks */ = { isa = PBXGroup; children = ( 4A44ACC5DE81A9C3E5BDA151 /* Pods_Runner.framework */, + 297F6FC62AD06E0D00FF159E /* WidgetKit.framework */, + 297F6FC82AD06E0D00FF159E /* SwiftUI.framework */, ); name = Frameworks; sourceTree = ""; @@ -104,6 +161,7 @@ children = ( 9740EEB11CF90186004384FC /* Flutter */, 97C146F01CF9000F007C117D /* Runner */, + 297F6FCA2AD06E0D00FF159E /* Wonderous Widget */, 97C146EF1CF9000F007C117D /* Products */, 5073AC1D92C10773F20D12A2 /* Frameworks */, E090BB04291350D10AF9DE4E /* Pods */, @@ -115,6 +173,7 @@ children = ( 97C146EE1CF9000F007C117D /* Runner.app */, E214FC8227C5A18D005F78FB /* wondersUITests.xctest */, + 297F6FC52AD06E0D00FF159E /* Wonderous WidgetExtension.appex */, ); name = Products; sourceTree = ""; @@ -148,6 +207,23 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ + 297F6FC42AD06E0D00FF159E /* Wonderous WidgetExtension */ = { + isa = PBXNativeTarget; + buildConfigurationList = 297F6FDC2AD06E0F00FF159E /* Build configuration list for PBXNativeTarget "Wonderous WidgetExtension" */; + buildPhases = ( + 297F6FC12AD06E0D00FF159E /* Sources */, + 297F6FC22AD06E0D00FF159E /* Frameworks */, + 297F6FC32AD06E0D00FF159E /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Wonderous WidgetExtension"; + productName = "Wonderous WidgetExtension"; + productReference = 297F6FC52AD06E0D00FF159E /* Wonderous WidgetExtension.appex */; + productType = "com.apple.product-type.app-extension"; + }; 97C146ED1CF9000F007C117D /* Runner */ = { isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; @@ -161,10 +237,12 @@ 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 9DAF500633B345EE15CA82E0 /* [CP] Embed Pods Frameworks */, B727DC94BF66FDBF036EDFA6 /* [CP] Copy Pods Resources */, + 297F6FD82AD06E0F00FF159E /* Embed Foundation Extensions */, ); buildRules = ( ); dependencies = ( + 297F6FD62AD06E0F00FF159E /* PBXTargetDependency */, ); name = Runner; productName = Runner; @@ -198,10 +276,13 @@ KnownAssetTags = ( New, ); - LastSwiftUpdateCheck = 1320; + LastSwiftUpdateCheck = 1430; LastUpgradeCheck = 1430; ORGANIZATIONNAME = ""; TargetAttributes = { + 297F6FC42AD06E0D00FF159E = { + CreatedOnToolsVersion = 14.3.1; + }; 97C146ED1CF9000F007C117D = { CreatedOnToolsVersion = 7.3.1; LastSwiftMigration = 1100; @@ -227,11 +308,20 @@ targets = ( 97C146ED1CF9000F007C117D /* Runner */, E214FC8127C5A18D005F78FB /* wondersUITests */, + 297F6FC42AD06E0D00FF159E /* Wonderous WidgetExtension */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 297F6FC32AD06E0D00FF159E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 297F6FD12AD06E0F00FF159E /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 97C146EC1CF9000F007C117D /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -343,10 +433,21 @@ /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ + 297F6FC12AD06E0D00FF159E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 297F6FD32AD06E0F00FF159E /* Wonderous_Widget.intentdefinition in Sources */, + 297F6FCE2AD06E0D00FF159E /* Wonderous_Widget.swift in Sources */, + 297F6FCC2AD06E0D00FF159E /* Wonderous_WidgetBundle.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 97C146EA1CF9000F007C117D /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 297F6FD42AD06E0F00FF159E /* Wonderous_Widget.intentdefinition in Sources */, 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, ); @@ -362,6 +463,11 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ + 297F6FD62AD06E0F00FF159E /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 297F6FC42AD06E0D00FF159E /* Wonderous WidgetExtension */; + targetProxy = 297F6FD52AD06E0F00FF159E /* PBXContainerItemProxy */; + }; E214FC8927C5A18E005F78FB /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 97C146ED1CF9000F007C117D /* Runner */; @@ -445,6 +551,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; @@ -469,6 +576,117 @@ }; name = Profile; }; + 297F6FD92AD06E0F00FF159E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = S3TL5AY6Y3; + GCC_C_LANGUAGE_STANDARD = gnu11; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "Wonderous Widget/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "Wonderous Widget"; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MARKETING_VERSION = 1.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "com.gskinner.flutter.wonders.Wonderous-Widget"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 297F6FDA2AD06E0F00FF159E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = S3TL5AY6Y3; + GCC_C_LANGUAGE_STANDARD = gnu11; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "Wonderous Widget/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "Wonderous Widget"; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MARKETING_VERSION = 1.0; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "com.gskinner.flutter.wonders.Wonderous-Widget"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 297F6FDB2AD06E0F00FF159E /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = S3TL5AY6Y3; + GCC_C_LANGUAGE_STANDARD = gnu11; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "Wonderous Widget/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "Wonderous Widget"; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MARKETING_VERSION = 1.0; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "com.gskinner.flutter.wonders.Wonderous-Widget"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Profile; + }; 97C147031CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -584,6 +802,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; @@ -613,6 +832,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; @@ -721,6 +941,16 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 297F6FDC2AD06E0F00FF159E /* Build configuration list for PBXNativeTarget "Wonderous WidgetExtension" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 297F6FD92AD06E0F00FF159E /* Debug */, + 297F6FDA2AD06E0F00FF159E /* Release */, + 297F6FDB2AD06E0F00FF159E /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/ios/Wonderous Widget/Wonderous_Widget.intentdefinition b/ios/Wonderous Widget/Wonderous_Widget.intentdefinition new file mode 100644 index 00000000..bdb40455 --- /dev/null +++ b/ios/Wonderous Widget/Wonderous_Widget.intentdefinition @@ -0,0 +1,59 @@ + + + + + INEnums + + INIntentDefinitionModelVersion + 1.2 + INIntentDefinitionNamespace + 88xZPY + INIntentDefinitionSystemVersion + 20A294 + INIntentDefinitionToolsBuildVersion + 12A6144 + INIntentDefinitionToolsVersion + 12.0 + INIntents + + + INIntentCategory + information + INIntentDescriptionID + tVvJ9c + INIntentEligibleForWidgets + + INIntentIneligibleForSuggestions + + INIntentName + Configuration + INIntentResponse + + INIntentResponseCodes + + + INIntentResponseCodeName + success + INIntentResponseCodeSuccess + + + + INIntentResponseCodeName + failure + + + + INIntentTitle + Configuration + INIntentTitleID + gpCwrM + INIntentType + Custom + INIntentVerb + View + + + INTypes + + + diff --git a/ios/Wonderous Widget/Wonderous_Widget.swift b/ios/Wonderous Widget/Wonderous_Widget.swift index a24f98f5..0c71aad5 100644 --- a/ios/Wonderous Widget/Wonderous_Widget.swift +++ b/ios/Wonderous Widget/Wonderous_Widget.swift @@ -2,30 +2,31 @@ // Wonderous_Widget.swift // Wonderous Widget // -// Created by Shawn on 2023-06-08. +// Created by Shawn on 2023-10-06. // import WidgetKit import SwiftUI +import Intents -struct Provider: TimelineProvider { +struct Provider: IntentTimelineProvider { func placeholder(in context: Context) -> SimpleEntry { - SimpleEntry(date: Date()) + SimpleEntry(date: Date(), configuration: ConfigurationIntent()) } - func getSnapshot(in context: Context, completion: @escaping (SimpleEntry) -> ()) { - let entry = SimpleEntry(date: Date()) + func getSnapshot(for configuration: ConfigurationIntent, in context: Context, completion: @escaping (SimpleEntry) -> ()) { + let entry = SimpleEntry(date: Date(), configuration: configuration) completion(entry) } - func getTimeline(in context: Context, completion: @escaping (Timeline) -> ()) { + func getTimeline(for configuration: ConfigurationIntent, in context: Context, completion: @escaping (Timeline) -> ()) { var entries: [SimpleEntry] = [] // Generate a timeline consisting of five entries an hour apart, starting from the current date. let currentDate = Date() for hourOffset in 0 ..< 5 { let entryDate = Calendar.current.date(byAdding: .hour, value: hourOffset, to: currentDate)! - let entry = SimpleEntry(date: entryDate) + let entry = SimpleEntry(date: entryDate, configuration: configuration) entries.append(entry) } @@ -36,6 +37,7 @@ struct Provider: TimelineProvider { struct SimpleEntry: TimelineEntry { let date: Date + let configuration: ConfigurationIntent } struct Wonderous_WidgetEntryView : View { @@ -50,7 +52,7 @@ struct Wonderous_Widget: Widget { let kind: String = "Wonderous_Widget" var body: some WidgetConfiguration { - StaticConfiguration(kind: kind, provider: Provider()) { entry in + IntentConfiguration(kind: kind, intent: ConfigurationIntent.self, provider: Provider()) { entry in Wonderous_WidgetEntryView(entry: entry) } .configurationDisplayName("My Widget") @@ -60,7 +62,7 @@ struct Wonderous_Widget: Widget { struct Wonderous_Widget_Previews: PreviewProvider { static var previews: some View { - Wonderous_WidgetEntryView(entry: SimpleEntry(date: Date())) + Wonderous_WidgetEntryView(entry: SimpleEntry(date: Date(), configuration: ConfigurationIntent())) .previewContext(WidgetPreviewContext(family: .systemSmall)) } } diff --git a/ios/Wonderous Widget/Wonderous_WidgetBundle.swift b/ios/Wonderous Widget/Wonderous_WidgetBundle.swift index 19af92f9..0e519485 100644 --- a/ios/Wonderous Widget/Wonderous_WidgetBundle.swift +++ b/ios/Wonderous Widget/Wonderous_WidgetBundle.swift @@ -2,7 +2,7 @@ // Wonderous_WidgetBundle.swift // Wonderous Widget // -// Created by Shawn on 2023-06-08. +// Created by Shawn on 2023-10-06. // import WidgetKit diff --git a/pubspec.lock b/pubspec.lock index 936dc540..1cee8742 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -344,6 +344,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.5.4+2" + home_widget: + dependency: "direct main" + description: + name: home_widget + sha256: "9a0ed6094823b07025727a39d3dc2d3e02c5281372af22d72e611137e0b3c10d" + url: "https://pub.dev" + source: hosted + version: "0.3.0" html: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index acde04f1..74896ace 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -31,6 +31,7 @@ dependencies: google_maps_flutter: ^2.5.0 google_maps_flutter_web: ^0.5.4+2 go_router: ^6.5.5 + home_widget: ^0.3.0 http: ^0.13.5 image: ^4.1.3 image_fade: ^0.6.2