-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
541 additions
and
23 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+28.5 KB
(100%)
...codeproj/project.xcworkspace/xcuserdata/rasmus.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
123 changes: 123 additions & 0 deletions
123
AmpFin.xcodeproj/xcshareddata/xcschemes/Widget Extension.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1510" | ||
wasCreatedForAppExtension = "YES" | ||
version = "2.0"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "3A442BE22B483C0B008FECE2" | ||
BuildableName = "widget Extension.appex" | ||
BlueprintName = "widget Extension" | ||
ReferencedContainer = "container:AmpFin.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "3ABAFCA92AA7D6C40011BFD6" | ||
BuildableName = "iOS.app" | ||
BlueprintName = "iOS" | ||
ReferencedContainer = "container:AmpFin.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
shouldAutocreateTestPlan = "YES"> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "" | ||
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn" | ||
launchStyle = "0" | ||
askForAppToLaunch = "Yes" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES" | ||
launchAutomaticallySubstyle = "2"> | ||
<RemoteRunnable | ||
runnableDebuggingMode = "2" | ||
BundleIdentifier = "com.apple.springboard"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "3A442BE22B483C0B008FECE2" | ||
BuildableName = "widget Extension.appex" | ||
BlueprintName = "widget Extension" | ||
ReferencedContainer = "container:AmpFin.xcodeproj"> | ||
</BuildableReference> | ||
</RemoteRunnable> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "3ABAFCA92AA7D6C40011BFD6" | ||
BuildableName = "iOS.app" | ||
BlueprintName = "iOS" | ||
ReferencedContainer = "container:AmpFin.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
<EnvironmentVariables> | ||
<EnvironmentVariable | ||
key = "_XCWidgetKind" | ||
value = "" | ||
isEnabled = "YES"> | ||
</EnvironmentVariable> | ||
<EnvironmentVariable | ||
key = "_XCWidgetDefaultView" | ||
value = "timeline" | ||
isEnabled = "YES"> | ||
</EnvironmentVariable> | ||
<EnvironmentVariable | ||
key = "_XCWidgetFamily" | ||
value = "systemMedium" | ||
isEnabled = "YES"> | ||
</EnvironmentVariable> | ||
</EnvironmentVariables> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES" | ||
askForAppToLaunch = "Yes" | ||
launchAutomaticallySubstyle = "2"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "3ABAFCA92AA7D6C40011BFD6" | ||
BuildableName = "iOS.app" | ||
BlueprintName = "iOS" | ||
ReferencedContainer = "container:AmpFin.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -274,6 +274,7 @@ | |
} | ||
}, | ||
"developedBy" : { | ||
"extractionState" : "stale", | ||
"localizations" : { | ||
"de" : { | ||
"stringUnit" : { | ||
|
11 changes: 11 additions & 0 deletions
11
widget Extension/Assets.xcassets/AccentColor.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
widget Extension/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
widget Extension/Assets.xcassets/WidgetBackground.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// DebugTokenTimelineProvider.swift | ||
// widget Extension | ||
// | ||
// Created by Rasmus Krämer on 05.01.24. | ||
// | ||
|
||
import SwiftUI | ||
import WidgetKit | ||
import AFBaseKit | ||
|
||
struct DebugTokenWidget: Widget { | ||
var body: some WidgetConfiguration { | ||
StaticConfiguration( | ||
kind: "io.rfk.ampfin.debug.token", | ||
provider: DebugTokenTimelineProvider()) { entry in | ||
Text(entry.token) | ||
.containerBackground(.ultraThickMaterial, for: .widget) | ||
} | ||
.configurationDisplayName(String(localized: "debug.title")) | ||
.description(String(localized: "debug.description")) | ||
} | ||
} | ||
|
||
struct DebugTokenTimelineProvider: TimelineProvider { | ||
typealias Entry = DebugTokenEntry | ||
|
||
func placeholder(in context: Context) -> DebugTokenEntry { | ||
DebugTokenEntry(date: Date()) | ||
} | ||
|
||
func getSnapshot(in context: Context, completion: @escaping (Entry) -> Void) { | ||
completion(DebugTokenEntry(date: Date())) | ||
} | ||
func getTimeline(in context: Context, completion: @escaping (Timeline<Entry>) -> Void) { | ||
completion(Timeline(entries: [DebugTokenEntry(date: Date())], policy: .never)) | ||
} | ||
} | ||
|
||
struct DebugTokenEntry: TimelineEntry { | ||
var date: Date | ||
let token = JellyfinClient.shared.token ?? String(localized: "token.missing") | ||
} | ||
|
||
#Preview(as: .systemSmall) { | ||
DebugTokenWidget() | ||
} timeline: { | ||
DebugTokenEntry(date: Date()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.security.application-groups</key> | ||
<array> | ||
<string>group.io.rfk.ampfin</string> | ||
</array> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>NSExtension</key> | ||
<dict> | ||
<key>NSExtensionPointIdentifier</key> | ||
<string>com.apple.widgetkit-extension</string> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"sourceLanguage" : "en", | ||
"strings" : { | ||
"debug.description" : { | ||
|
||
}, | ||
"debug.title" : { | ||
|
||
}, | ||
"token.missing" : { | ||
|
||
} | ||
}, | ||
"version" : "1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// widgetsBundle.swift | ||
// widgets | ||
// | ||
// Created by Rasmus Krämer on 05.01.24. | ||
// | ||
|
||
import WidgetKit | ||
import SwiftUI | ||
|
||
@main | ||
struct WidgetExtension: WidgetBundle { | ||
var body: some Widget { | ||
DebugTokenWidget() | ||
} | ||
} |