multiple windows, warnings, updating deps
This commit is contained in:
parent
32af8e8432
commit
17a7600a9d
@ -674,10 +674,12 @@
|
|||||||
DEVELOPMENT_TEAM = 8UZ2659FDY;
|
DEVELOPMENT_TEAM = 8UZ2659FDY;
|
||||||
ENABLE_PREVIEWS = YES;
|
ENABLE_PREVIEWS = YES;
|
||||||
INFOPLIST_FILE = Mixonomer/Info.plist;
|
INFOPLIST_FILE = Mixonomer/Info.plist;
|
||||||
|
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.music";
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
|
MARKETING_VERSION = 0.1;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = xyz.sarsoo.Mixonomer;
|
PRODUCT_BUNDLE_IDENTIFIER = xyz.sarsoo.Mixonomer;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
@ -701,10 +703,12 @@
|
|||||||
DEVELOPMENT_TEAM = 8UZ2659FDY;
|
DEVELOPMENT_TEAM = 8UZ2659FDY;
|
||||||
ENABLE_PREVIEWS = YES;
|
ENABLE_PREVIEWS = YES;
|
||||||
INFOPLIST_FILE = Mixonomer/Info.plist;
|
INFOPLIST_FILE = Mixonomer/Info.plist;
|
||||||
|
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.music";
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
|
MARKETING_VERSION = 0.1;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = xyz.sarsoo.Mixonomer;
|
PRODUCT_BUNDLE_IDENTIFIER = xyz.sarsoo.Mixonomer;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/alamofire/alamofire.git",
|
"location" : "https://github.com/alamofire/alamofire.git",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "0c8cb78d05b6d067ee331c05058ff4dedcb45ffa",
|
"revision" : "78424be314842833c04bc3bef5b72e85fff99204",
|
||||||
"version" : "5.0.0"
|
"version" : "5.6.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -14,8 +14,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/apppear/chartview",
|
"location" : "https://github.com/apppear/chartview",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "04989ad159380290a74729dbce1d39d64b893ab2",
|
"revision" : "9115a992c91fa19cbb4f2241084240d38654a1fc",
|
||||||
"version" : "1.4.9"
|
"version" : "1.5.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -23,8 +23,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/kishikawakatsumi/keychainaccess",
|
"location" : "https://github.com/kishikawakatsumi/keychainaccess",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "b920ad7df3c73189dcdd4aa05c540849b2010dbf",
|
"revision" : "84e546727d66f1adc5439debad16270d0fdd04e7",
|
||||||
"version" : "4.1.0"
|
"version" : "4.2.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -32,8 +32,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/swiftyjson/swiftyjson",
|
"location" : "https://github.com/swiftyjson/swiftyjson",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "2b6054efa051565954e1d2b9da831680026cd768",
|
"revision" : "b3dcd7dbd0d488e1a7077cb33b00f2083e382f07",
|
||||||
"version" : "5.0.0"
|
"version" : "5.0.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -42,7 +42,7 @@
|
|||||||
"location" : "https://github.com/quanshousio/ToastUI",
|
"location" : "https://github.com/quanshousio/ToastUI",
|
||||||
"state" : {
|
"state" : {
|
||||||
"branch" : "main",
|
"branch" : "main",
|
||||||
"revision" : "b064788dd92a64fbd01208a65af10beded99062c"
|
"revision" : "1828801ea49e2ab900ca5e6bb18245312fda66a2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -13,6 +13,7 @@ import KeychainAccess
|
|||||||
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||||
|
|
||||||
var window: UIWindow?
|
var window: UIWindow?
|
||||||
|
private var liveUser: LiveUser?
|
||||||
|
|
||||||
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
||||||
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
|
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
|
||||||
@ -27,9 +28,9 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|||||||
// Use a UIHostingController as window root view controller.
|
// Use a UIHostingController as window root view controller.
|
||||||
if let windowScene = scene as? UIWindowScene {
|
if let windowScene = scene as? UIWindowScene {
|
||||||
let window = UIWindow(windowScene: windowScene)
|
let window = UIWindow(windowScene: windowScene)
|
||||||
let liveUser = LiveUser(playlists: [], tags: [], username: keychain["username"] ?? "", loggedIn: false).load_user_defaults()
|
liveUser = LiveUser(playlists: [], tags: [], username: keychain["username"] ?? "", loggedIn: false).load_user_defaults()
|
||||||
|
|
||||||
window.rootViewController = UIHostingController(rootView: contentView.environmentObject(liveUser))
|
window.rootViewController = UIHostingController(rootView: contentView.environmentObject(liveUser!))
|
||||||
self.window = window
|
self.window = window
|
||||||
window.makeKeyAndVisible()
|
window.makeKeyAndVisible()
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<key>UIApplicationSceneManifest</key>
|
<key>UIApplicationSceneManifest</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>UIApplicationSupportsMultipleScenes</key>
|
<key>UIApplicationSupportsMultipleScenes</key>
|
||||||
<false/>
|
<true/>
|
||||||
<key>UISceneConfigurations</key>
|
<key>UISceneConfigurations</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>UIWindowSceneSessionRoleApplication</key>
|
<key>UIWindowSceneSessionRoleApplication</key>
|
||||||
@ -41,12 +41,12 @@
|
|||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
<key>UILaunchStoryboardName</key>
|
|
||||||
<string>LaunchScreen</string>
|
|
||||||
<key>UIBackgroundModes</key>
|
<key>UIBackgroundModes</key>
|
||||||
<array>
|
<array>
|
||||||
<string>remote-notification</string>
|
<string>remote-notification</string>
|
||||||
</array>
|
</array>
|
||||||
|
<key>UILaunchStoryboardName</key>
|
||||||
|
<string>LaunchScreen</string>
|
||||||
<key>UIRequiredDeviceCapabilities</key>
|
<key>UIRequiredDeviceCapabilities</key>
|
||||||
<array>
|
<array>
|
||||||
<string>armv7</string>
|
<string>armv7</string>
|
||||||
|
@ -36,7 +36,7 @@ struct UserView: View {
|
|||||||
HStack {
|
HStack {
|
||||||
Text("Last.fm")
|
Text("Last.fm")
|
||||||
Spacer()
|
Spacer()
|
||||||
Text(user.lastfm_username ?? "")
|
Text(user.lastfm_username)
|
||||||
.foregroundColor(.gray)
|
.foregroundColor(.gray)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,21 +27,21 @@ struct PlaylistView: View {
|
|||||||
|
|
||||||
var trackChartStyle: ChartStyle {
|
var trackChartStyle: ChartStyle {
|
||||||
get {
|
get {
|
||||||
let _style = ChartStyle(backgroundColor: .white, accentColor: Color(red: 0.4765, green: 0.5976, blue: 0.7578), gradientColor: GradientColors.bluPurpl, textColor: .black, legendTextColor: .gray)
|
let _style = ChartStyle(backgroundColor: .white, accentColor: Color(red: 0.4765, green: 0.5976, blue: 0.7578), gradientColor: GradientColors.bluPurpl, textColor: .black, legendTextColor: .gray, dropShadowColor: .gray)
|
||||||
return _style
|
return _style
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var albumChartStyle: ChartStyle {
|
var albumChartStyle: ChartStyle {
|
||||||
get {
|
get {
|
||||||
let _style = ChartStyle(backgroundColor: .white, accentColor: Color(red: 0.6367, green: 0.2968, blue: 0.4648), gradientColor: GradientColors.bluPurpl, textColor: .black, legendTextColor: .gray)
|
let _style = ChartStyle(backgroundColor: .white, accentColor: Color(red: 0.6367, green: 0.2968, blue: 0.4648), gradientColor: GradientColors.bluPurpl, textColor: .black, legendTextColor: .gray, dropShadowColor: .gray)
|
||||||
return _style
|
return _style
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var artistChartStyle: ChartStyle {
|
var artistChartStyle: ChartStyle {
|
||||||
get {
|
get {
|
||||||
let _style = ChartStyle(backgroundColor: .white, accentColor: Color(red: 0.3476, green: 0.5195, blue: 0.3359), gradientColor: GradientColors.bluPurpl, textColor: .black, legendTextColor: .gray)
|
let _style = ChartStyle(backgroundColor: .white, accentColor: Color(red: 0.3476, green: 0.5195, blue: 0.3359), gradientColor: GradientColors.bluPurpl, textColor: .black, legendTextColor: .gray, dropShadowColor: .gray)
|
||||||
return _style
|
return _style
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -234,9 +234,11 @@ struct PlaylistView: View {
|
|||||||
|
|
||||||
}
|
}
|
||||||
.navigationBarTitle(Text(playlist.name))
|
.navigationBarTitle(Text(playlist.name))
|
||||||
|
#if os(iOS)
|
||||||
.refreshable {
|
.refreshable {
|
||||||
self.refreshPlaylist()
|
self.refreshPlaylist()
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
func runPlaylist() {
|
func runPlaylist() {
|
||||||
|
Loading…
Reference in New Issue
Block a user