diff --git a/NearFuture.xcodeproj/project.pbxproj b/NearFuture.xcodeproj/project.pbxproj index 9fc78d3..550a47e 100644 --- a/NearFuture.xcodeproj/project.pbxproj +++ b/NearFuture.xcodeproj/project.pbxproj @@ -30,8 +30,6 @@ A949F8562DCAABE00064DCA0 /* ExportView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8432DCAABE00064DCA0 /* ExportView.swift */; }; A949F8592DCAAD670064DCA0 /* NearFutureTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F8572DCAAD670064DCA0 /* NearFutureTests.swift */; }; A949F85F2DCABB420064DCA0 /* Buttons.swift in Sources */ = {isa = PBXBuildFile; fileRef = A949F85D2DCABB420064DCA0 /* Buttons.swift */; }; - A979F6052D270AF00094C0B3 /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A979F6042D270AF00094C0B3 /* WidgetKit.framework */; }; - A979F6072D270AF00094C0B3 /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A979F6062D270AF00094C0B3 /* SwiftUI.framework */; }; A979F60A2D270AF00094C0B3 /* NearFutureWidgetsBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = A979F6092D270AF00094C0B3 /* NearFutureWidgetsBundle.swift */; }; A979F60C2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift in Sources */ = {isa = PBXBuildFile; fileRef = A979F60B2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift */; }; A979F6102D270AF90094C0B3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A979F60F2D270AF80094C0B3 /* Assets.xcassets */; }; @@ -81,7 +79,6 @@ A920C2872D24011400E4F9B1 /* NearFutureApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureApp.swift; sourceTree = ""; }; A920C28B2D24011400E4F9B1 /* Event.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Event.swift; sourceTree = ""; }; A920C28D2D24011A00E4F9B1 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - A920C28F2D24011A00E4F9B1 /* NearFuture.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = NearFuture.entitlements; sourceTree = ""; }; A920C2912D24011A00E4F9B1 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; A949F82E2DCAAA640064DCA0 /* NearFutureIcon.pxd */ = {isa = PBXFileReference; lastKnownFileType = file; path = NearFutureIcon.pxd; sourceTree = ""; }; A949F82F2DCAAA640064DCA0 /* NearFutureIconDark.pxd */ = {isa = PBXFileReference; lastKnownFileType = file; path = NearFutureIconDark.pxd; sourceTree = ""; }; @@ -100,22 +97,11 @@ A949F8482DCAABE00064DCA0 /* StatsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatsView.swift; sourceTree = ""; }; A949F8572DCAAD670064DCA0 /* NearFutureTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureTests.swift; sourceTree = ""; }; A949F85D2DCABB420064DCA0 /* Buttons.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Buttons.swift; sourceTree = ""; }; - A979F58B2D2700680094C0B3 /* NearFutureWidgetsBundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgetsBundle.swift; sourceTree = ""; }; - A979F58D2D2700680094C0B3 /* NearFutureWidgetsLiveActivity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgetsLiveActivity.swift; sourceTree = ""; }; - A979F58F2D2700680094C0B3 /* NearFutureWidgets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgets.swift; sourceTree = ""; }; - A979F5912D2700680094C0B3 /* AppIntent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppIntent.swift; sourceTree = ""; }; - A979F5932D27006D0094C0B3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - A979F5952D27006D0094C0B3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; A979F6022D270AF00094C0B3 /* NearFutureWidgetsExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = NearFutureWidgetsExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; - A979F6042D270AF00094C0B3 /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; }; - A979F6062D270AF00094C0B3 /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; }; A979F6092D270AF00094C0B3 /* NearFutureWidgetsBundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgetsBundle.swift; sourceTree = ""; }; A979F60B2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgetsLiveActivity.swift; sourceTree = ""; }; A979F60F2D270AF80094C0B3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - A979F6112D270AF90094C0B3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - A980FC302D920097006A778F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; A980FC372D93FB2B006A778F /* NearFutureTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NearFutureTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - A9C05E412D2805D7007DC497 /* NearFutureWidgetsExtension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = NearFutureWidgetsExtension.entitlements; sourceTree = ""; }; A9FC7EE92D28238A0020D75B /* NearFutureWidgets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NearFutureWidgets.swift; sourceTree = ""; }; /* End PBXFileReference section */ @@ -132,8 +118,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - A979F6072D270AF00094C0B3 /* SwiftUI.framework in Frameworks */, - A979F6052D270AF00094C0B3 /* WidgetKit.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -163,7 +147,6 @@ A920C2862D24011400E4F9B1 /* NearFuture */, A979F6082D270AF00094C0B3 /* NearFutureWidgets */, A949F8582DCAAD670064DCA0 /* NearFutureTests */, - A979F6032D270AF00094C0B3 /* Frameworks */, A920C2852D24011400E4F9B1 /* Products */, ); sourceTree = ""; @@ -182,10 +165,8 @@ isa = PBXGroup; children = ( A920C2872D24011400E4F9B1 /* NearFutureApp.swift */, - A90D49202DDE0A3B00781124 /* Model */, A949F84A2DCAABE00064DCA0 /* Views */, - A980FC302D920097006A778F /* Info.plist */, - A920C28F2D24011A00E4F9B1 /* NearFuture.entitlements */, + A90D49202DDE0A3B00781124 /* Model */, A949F8002DCAA0340064DCA0 /* Resources */, A920C2902D24011A00E4F9B1 /* Preview Content */, ); @@ -195,7 +176,6 @@ A920C2902D24011A00E4F9B1 /* Preview Content */ = { isa = PBXGroup; children = ( - A979F58A2D2700680094C0B3 /* NearFutureWidgets */, A920C2912D24011A00E4F9B1 /* Preview Assets.xcassets */, ); path = "Preview Content"; @@ -291,28 +271,6 @@ path = Misc; sourceTree = ""; }; - A979F58A2D2700680094C0B3 /* NearFutureWidgets */ = { - isa = PBXGroup; - children = ( - A979F58B2D2700680094C0B3 /* NearFutureWidgetsBundle.swift */, - A979F58D2D2700680094C0B3 /* NearFutureWidgetsLiveActivity.swift */, - A979F58F2D2700680094C0B3 /* NearFutureWidgets.swift */, - A979F5912D2700680094C0B3 /* AppIntent.swift */, - A979F5932D27006D0094C0B3 /* Assets.xcassets */, - A979F5952D27006D0094C0B3 /* Info.plist */, - ); - path = NearFutureWidgets; - sourceTree = ""; - }; - A979F6032D270AF00094C0B3 /* Frameworks */ = { - isa = PBXGroup; - children = ( - A979F6042D270AF00094C0B3 /* WidgetKit.framework */, - A979F6062D270AF00094C0B3 /* SwiftUI.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; A979F6082D270AF00094C0B3 /* NearFutureWidgets */ = { isa = PBXGroup; children = ( @@ -320,8 +278,6 @@ A979F6092D270AF00094C0B3 /* NearFutureWidgetsBundle.swift */, A979F60B2D270AF00094C0B3 /* NearFutureWidgetsLiveActivity.swift */, A979F60F2D270AF80094C0B3 /* Assets.xcassets */, - A979F6112D270AF90094C0B3 /* Info.plist */, - A9C05E412D2805D7007DC497 /* NearFutureWidgetsExtension.entitlements */, ); path = NearFutureWidgets; sourceTree = ""; @@ -670,7 +626,6 @@ ENABLE_HARDENED_RUNTIME = NO; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = NearFuture/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "$(NAME)"; INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; @@ -723,7 +678,6 @@ ENABLE_HARDENED_RUNTIME = NO; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = NearFuture/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "$(NAME)"; INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO; "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; @@ -768,7 +722,6 @@ CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)"; DEVELOPMENT_TEAM = "$(TEAM_ID)"; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = NearFutureWidgets/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = NearFutureWidgets; INFOPLIST_KEY_NSHumanReadableCopyright = ""; IPHONEOS_DEPLOYMENT_TARGET = 17; @@ -809,7 +762,6 @@ CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)"; DEVELOPMENT_TEAM = "$(TEAM_ID)"; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = NearFutureWidgets/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = NearFutureWidgets; INFOPLIST_KEY_NSHumanReadableCopyright = ""; IPHONEOS_DEPLOYMENT_TARGET = 17; diff --git a/NearFuture/Info.plist b/NearFuture/Info.plist deleted file mode 100644 index dfce773..0000000 --- a/NearFuture/Info.plist +++ /dev/null @@ -1,10 +0,0 @@ - - - - - AppIntents - - com.neon443.NearFuture.CompleteEvent - - - diff --git a/NearFuture/NearFuture.entitlements b/NearFuture/NearFuture.entitlements index 057d0cc..82eaccb 100644 --- a/NearFuture/NearFuture.entitlements +++ b/NearFuture/NearFuture.entitlements @@ -2,10 +2,6 @@ - aps-environment - development - com.apple.developer.aps-environment - development com.apple.developer.icloud-container-identifiers com.apple.developer.ubiquity-kvstore-identifier diff --git a/NearFuture/Preview Content/NearFutureWidgets/AppIntent.swift b/NearFuture/Preview Content/NearFutureWidgets/AppIntent.swift deleted file mode 100644 index 21e1c5b..0000000 --- a/NearFuture/Preview Content/NearFutureWidgets/AppIntent.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// AppIntent.swift -// NearFutureWidgets -// -// Created by neon443 on 02/01/2025. -// - -import WidgetKit -import AppIntents - -struct ConfigurationAppIntent: WidgetConfigurationIntent { - static var title: LocalizedStringResource = "Configuration" - static var description = IntentDescription("This is an example widget.") - - // An example configurable parameter. - @Parameter(title: "Favorite Emoji", default: "😃") - var favoriteEmoji: String -} diff --git a/NearFuture/Preview Content/NearFutureWidgets/Assets.xcassets/AccentColor.colorset/Contents.json b/NearFuture/Preview Content/NearFutureWidgets/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb87897..0000000 --- a/NearFuture/Preview Content/NearFutureWidgets/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/NearFuture/Preview Content/NearFutureWidgets/Assets.xcassets/AppIcon.appiconset/Contents.json b/NearFuture/Preview Content/NearFutureWidgets/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 13613e3..0000000 --- a/NearFuture/Preview Content/NearFutureWidgets/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "platform" : "ios", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/NearFuture/Preview Content/NearFutureWidgets/Assets.xcassets/Contents.json b/NearFuture/Preview Content/NearFutureWidgets/Assets.xcassets/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/NearFuture/Preview Content/NearFutureWidgets/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/NearFuture/Preview Content/NearFutureWidgets/Assets.xcassets/WidgetBackground.colorset/Contents.json b/NearFuture/Preview Content/NearFutureWidgets/Assets.xcassets/WidgetBackground.colorset/Contents.json deleted file mode 100644 index eb87897..0000000 --- a/NearFuture/Preview Content/NearFutureWidgets/Assets.xcassets/WidgetBackground.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/NearFuture/Preview Content/NearFutureWidgets/Info.plist b/NearFuture/Preview Content/NearFutureWidgets/Info.plist deleted file mode 100644 index 0f118fb..0000000 --- a/NearFuture/Preview Content/NearFutureWidgets/Info.plist +++ /dev/null @@ -1,11 +0,0 @@ - - - - - NSExtension - - NSExtensionPointIdentifier - com.apple.widgetkit-extension - - - diff --git a/NearFuture/Preview Content/NearFutureWidgets/NearFutureWidgets.swift b/NearFuture/Preview Content/NearFutureWidgets/NearFutureWidgets.swift deleted file mode 100644 index 9bb45d4..0000000 --- a/NearFuture/Preview Content/NearFutureWidgets/NearFutureWidgets.swift +++ /dev/null @@ -1,84 +0,0 @@ -// -// NearFutureWidgets.swift -// NearFutureWidgets -// -// Created by neon443 on 02/01/2025. -// - -import WidgetKit -import SwiftUI - -struct Provider: AppIntentTimelineProvider { - func placeholder(in context: Context) -> SimpleEntry { - SimpleEntry(date: Date(), configuration: ConfigurationAppIntent()) - } - - func snapshot(for configuration: ConfigurationAppIntent, in context: Context) async -> SimpleEntry { - SimpleEntry(date: Date(), configuration: configuration) - } - - func timeline(for configuration: ConfigurationAppIntent, in context: Context) async -> 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, configuration: configuration) - entries.append(entry) - } - - return Timeline(entries: entries, policy: .atEnd) - } -} - -struct SimpleEntry: TimelineEntry { - let date: Date - let configuration: ConfigurationAppIntent -} - -struct NearFutureWidgetsEntryView : View { - var entry: Provider.Entry - - var body: some View { - VStack { - Text("Time:") - Text(entry.date, style: .time) - - Text("Favorite Emoji:") - Text(entry.configuration.favoriteEmoji) - } - } -} - -struct NearFutureWidgets: Widget { - let kind: String = "NearFutureWidgets" - - var body: some WidgetConfiguration { - AppIntentConfiguration(kind: kind, intent: ConfigurationAppIntent.self, provider: Provider()) { entry in - NearFutureWidgetsEntryView(entry: entry) - .containerBackground(.fill.tertiary, for: .widget) - } - } -} - -extension ConfigurationAppIntent { - fileprivate static var smiley: ConfigurationAppIntent { - let intent = ConfigurationAppIntent() - intent.favoriteEmoji = "😀" - return intent - } - - fileprivate static var starEyes: ConfigurationAppIntent { - let intent = ConfigurationAppIntent() - intent.favoriteEmoji = "🤩" - return intent - } -} - -#Preview(as: .systemSmall) { - NearFutureWidgets() -} timeline: { - SimpleEntry(date: .now, configuration: .smiley) - SimpleEntry(date: .now, configuration: .starEyes) -} diff --git a/NearFuture/Preview Content/NearFutureWidgets/NearFutureWidgetsBundle.swift b/NearFuture/Preview Content/NearFutureWidgets/NearFutureWidgetsBundle.swift deleted file mode 100644 index 31a0562..0000000 --- a/NearFuture/Preview Content/NearFutureWidgets/NearFutureWidgetsBundle.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// NearFutureWidgetsBundle.swift -// NearFutureWidgets -// -// Created by neon443 on 02/01/2025. -// - -import WidgetKit -import SwiftUI - -@main -struct NearFutureWidgetsBundle: WidgetBundle { - var body: some Widget { - NearFutureWidgets() - NearFutureWidgetsLiveActivity() - } -} diff --git a/NearFuture/Preview Content/NearFutureWidgets/NearFutureWidgetsLiveActivity.swift b/NearFuture/Preview Content/NearFutureWidgets/NearFutureWidgetsLiveActivity.swift deleted file mode 100644 index 3eef6ad..0000000 --- a/NearFuture/Preview Content/NearFutureWidgets/NearFutureWidgetsLiveActivity.swift +++ /dev/null @@ -1,80 +0,0 @@ -// -// NearFutureWidgetsLiveActivity.swift -// NearFutureWidgets -// -// Created by neon443 on 02/01/2025. -// - -import ActivityKit -import WidgetKit -import SwiftUI - -struct NearFutureWidgetsAttributes: ActivityAttributes { - public struct ContentState: Codable, Hashable { - // Dynamic stateful properties about your activity go here! - var emoji: String - } - - // Fixed non-changing properties about your activity go here! - var name: String -} - -struct NearFutureWidgetsLiveActivity: Widget { - var body: some WidgetConfiguration { - ActivityConfiguration(for: NearFutureWidgetsAttributes.self) { context in - // Lock screen/banner UI goes here - VStack { - Text("Hello \(context.state.emoji)") - } - .activityBackgroundTint(Color.cyan) - .activitySystemActionForegroundColor(Color.black) - - } dynamicIsland: { context in - DynamicIsland { - // Expanded UI goes here. Compose the expanded UI through - // various regions, like leading/trailing/center/bottom - DynamicIslandExpandedRegion(.leading) { - Text("Leading") - } - DynamicIslandExpandedRegion(.trailing) { - Text("Trailing") - } - DynamicIslandExpandedRegion(.bottom) { - Text("Bottom \(context.state.emoji)") - // more content - } - } compactLeading: { - Text("L") - } compactTrailing: { - Text("T \(context.state.emoji)") - } minimal: { - Text(context.state.emoji) - } - .widgetURL(URL(string: "http://www.apple.com")) - .keylineTint(Color.red) - } - } -} - -extension NearFutureWidgetsAttributes { - fileprivate static var preview: NearFutureWidgetsAttributes { - NearFutureWidgetsAttributes(name: "World") - } -} - -extension NearFutureWidgetsAttributes.ContentState { - fileprivate static var smiley: NearFutureWidgetsAttributes.ContentState { - NearFutureWidgetsAttributes.ContentState(emoji: "😀") - } - - fileprivate static var starEyes: NearFutureWidgetsAttributes.ContentState { - NearFutureWidgetsAttributes.ContentState(emoji: "🤩") - } -} - -#Preview("Notification", as: .content, using: NearFutureWidgetsAttributes.preview) { - NearFutureWidgetsLiveActivity() -} contentStates: { - NearFutureWidgetsAttributes.ContentState.smiley - NearFutureWidgetsAttributes.ContentState.starEyes -} diff --git a/NearFutureWidgets/Info.plist b/NearFutureWidgets/Info.plist deleted file mode 100644 index 0f118fb..0000000 --- a/NearFutureWidgets/Info.plist +++ /dev/null @@ -1,11 +0,0 @@ - - - - - NSExtension - - NSExtensionPointIdentifier - com.apple.widgetkit-extension - - -