Skip to content

Commit

Permalink
Add Big Sur Music icon
Browse files Browse the repository at this point in the history
  • Loading branch information
spotlightishere committed Sep 8, 2020
1 parent c994228 commit a12d481
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
8 changes: 5 additions & 3 deletions Ongaku.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0820;
LastUpgradeCheck = 1140;
LastUpgradeCheck = 1200;
ORGANIZATIONNAME = "Spotlight Deveaux";
TargetAttributes = {
42024DE320145BF900AEBA10 = {
Expand Down Expand Up @@ -357,6 +357,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -415,6 +416,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -462,7 +464,7 @@
"$(PROJECT_DIR)",
);
MACOSX_DEPLOYMENT_TARGET = 10.12;
MARKETING_VERSION = 3.0;
MARKETING_VERSION = 4.0;
PRODUCT_BUNDLE_IDENTIFIER = io.github.spotlightishere.Ongaku;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -493,7 +495,7 @@
"$(PROJECT_DIR)",
);
MACOSX_DEPLOYMENT_TARGET = 10.12;
MARKETING_VERSION = 3.0;
MARKETING_VERSION = 4.0;
PRODUCT_BUNDLE_IDENTIFIER = io.github.spotlightishere.Ongaku;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
11 changes: 1 addition & 10 deletions Ongaku.xcodeproj/xcshareddata/xcschemes/Ongaku.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1140"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -27,15 +27,6 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "42024DE320145BF900AEBA10"
BuildableName = "Ongaku.app"
BlueprintName = "Ongaku"
ReferencedContainer = "container:Ongaku.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand Down
14 changes: 8 additions & 6 deletions Ongaku/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,19 @@ class ViewController: NSViewController {
// This is the Ongaku app ID.
// You're welcome to change as you want.
let rpc = SwordRPC(appId: "402370117901484042")
var appName = ""

// The app's named Music.
// While com.apple.iTunes.playerInfo is sent as well,
// it's best to update now and plan for the future.
var appName = "com.apple.Music"
var assetName = ""

override func viewDidLoad() {
super.viewDidLoad()

if #available(OSX 10.15, *) {
// The app's named Music.
// While com.apple.iTunes.playerInfo is sent as well,
// it's best to update now and plan for the future.
appName = "com.apple.Music"
if #available(macOS 11.0, *) {
assetName = "big_sur_logo"
} else if #available(macOS 10.15, *){
assetName = "music_logo"
} else {
appName = "com.apple.iTunes"
Expand Down

0 comments on commit a12d481

Please sign in to comment.