Skip to content

Commit

Permalink
Fix messaging with Vivaldi and migrate to Swift5
Browse files Browse the repository at this point in the history
  • Loading branch information
Ty3uK committed Mar 28, 2019
1 parent de55c58 commit d2099fe
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions native/Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github "JohnSundell/Files" "2.3.0"
github "JohnSundell/Files" "3.0.0"
github "ReactiveX/RxSwift" "4.4.2"
github "SwiftyBeaver/SwiftyBeaver" "1.6.2"
github "SwiftyBeaver/SwiftyBeaver" "1.7.0"
github "Ty3uK/MediaKeyTap" "066ab19ffb1d44a02780f058af33a6155550e8ab"
5 changes: 3 additions & 2 deletions native/YMC.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
TargetAttributes = {
CE0E362A2212898700877823 = {
CreatedOnToolsVersion = 10.1;
LastSwiftMigration = 1020;
SystemCapabilities = {
com.apple.HardenedRuntime = {
enabled = 0;
Expand Down Expand Up @@ -435,7 +436,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = info.karelov.YMC;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -457,7 +458,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = info.karelov.YMC;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down
4 changes: 3 additions & 1 deletion native/YMC/Application/AppDelegate/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
let statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength)
let popover = NSPopover()

let runStdinMonitoring = CommandLine.arguments.first(where: { $0.contains("ymc.json") }) != nil
let runStdinMonitoring = CommandLine.arguments.first(where: {
$0.contains("ymc.json") || $0.contains("chrome-extension://")
}) != nil
var playerViewController: PlayerViewController? = nil
var mediaKeyTap: MediaKeyTap? = nil
var isAccessibilityAvailable = false
Expand Down
2 changes: 1 addition & 1 deletion native/YMC/Classes/Player.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Player {
}
public var coverImage: NSImage? {
get {
guard let result = try? _coverImage$.value() else { return nil }
guard let result = ((try? _coverImage$.value()) as NSImage??) else { return nil }
return result
}
}
Expand Down
4 changes: 2 additions & 2 deletions native/YMC/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.2</string>
<string>1.0.3</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand All @@ -30,7 +30,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>3</string>
<string>4</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSUIElement</key>
Expand Down

0 comments on commit d2099fe

Please sign in to comment.