Skip to content

Commit

Permalink
tvOS12 1080p + 4K, Swift 4.2, Video descriptions, fix Done button (Jo…
Browse files Browse the repository at this point in the history
…hnCoates#501)

* experimental 4k

* bundle swift 3

* fix swift 3.2 warnings

* enhanced logging, fix cache count

* fix issue where videos were being reused incorrectly

* use autolayout to fix cut off titles

* Update download link

* Added support for tvOS 12's new videos

* Update Readme.md

* Added support for tvOS 12's new videos

* Update Readme.md

* Fixed AerialApp test app
Fixed the color of PathControl in Cache pane for Dark Mode

* Dark Mode

* Update to Swift 4.2

* - Add switch for 1080p/4K

* Show video name at the beggining of play with a fadein/out

* Add checkbox for showDescriptions

* Fix version number in Screensaver mode

* Update Readme.md

* Update travis for xcode 10

* Fix Done button 🎉

* bump version

* - Add support for H264 videos and removed the day/night sublevel

* Add the ability to always show descriptions

* Update Readme.md
  • Loading branch information
glouel authored and JohnCoates committed Sep 28, 2018
1 parent bb4e0ff commit bca3249
Show file tree
Hide file tree
Showing 18 changed files with 582 additions and 219 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,5 +1,5 @@
language: objective-c
osx_image: xcode8
osx_image: xcode10
after_success:
- bash <(curl -s https://raw.githubusercontent.com/codecov/codecov-bash/04845559fe1caefe990968cc9e3851573012b756/codecov) -J 'AerialApp'
script:
Expand Down
28 changes: 21 additions & 7 deletions Aerial.xcodeproj/project.pbxproj
Expand Up @@ -7,6 +7,8 @@
objects = {

/* Begin PBXBuildFile section */
030D9B7C21551A8D00961E95 /* AerialPlayerItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA7E2E5D1FC62E8B00E5F320 /* AerialPlayerItem.swift */; };
AA7E2E5E1FC62E8B00E5F320 /* AerialPlayerItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA7E2E5D1FC62E8B00E5F320 /* AerialPlayerItem.swift */; };
FA143CE61BDA3EEF0041A82B /* AVKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FA143CE51BDA3EEF0041A82B /* AVKit.framework */; };
FA36BD3F1BE57F8E00D5E03B /* VideoDownload.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA36BD3E1BE57F8E00D5E03B /* VideoDownload.swift */; };
FA36BD401BE57F8E00D5E03B /* VideoDownload.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA36BD3E1BE57F8E00D5E03B /* VideoDownload.swift */; };
Expand Down Expand Up @@ -57,6 +59,7 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
AA7E2E5D1FC62E8B00E5F320 /* AerialPlayerItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AerialPlayerItem.swift; sourceTree = "<group>"; };
FA143CD61BDA3E880041A82B /* AerialApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AerialApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
FA143CE51BDA3EEF0041A82B /* AVKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVKit.framework; path = System/Library/Frameworks/AVKit.framework; sourceTree = SDKROOT; };
FA36BD3E1BE57F8E00D5E03B /* VideoDownload.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = VideoDownload.swift; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
Expand Down Expand Up @@ -218,6 +221,7 @@
children = (
FAC36F431BE1756D007F2A20 /* AerialView.swift */,
FAC36F441BE1756D007F2A20 /* CheckCellView.swift */,
AA7E2E5D1FC62E8B00E5F320 /* AerialPlayerItem.swift */,
);
path = Views;
sourceTree = "<group>";
Expand Down Expand Up @@ -331,10 +335,11 @@
TargetAttributes = {
FA143CD51BDA3E880041A82B = {
CreatedOnToolsVersion = 7.0;
LastSwiftMigration = 0800;
LastSwiftMigration = 1000;
};
FA71996D1D94EC5A00FBC99B = {
CreatedOnToolsVersion = 8.0;
LastSwiftMigration = 1000;
ProvisioningStyle = Automatic;
TestTargetID = FA143CD51BDA3E880041A82B;
};
Expand Down Expand Up @@ -419,6 +424,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
030D9B7C21551A8D00961E95 /* AerialPlayerItem.swift in Sources */,
FAC36F651BE1772F007F2A20 /* CollectionType+Shuffling.swift in Sources */,
FAC36F5E1BE1756D007F2A20 /* CheckCellView.swift in Sources */,
FAC36F5C1BE1756D007F2A20 /* AerialView.swift in Sources */,
Expand Down Expand Up @@ -454,6 +460,7 @@
FAC36F571BE1756D007F2A20 /* PreferencesWindowController.swift in Sources */,
FAC36F671BE1778C007F2A20 /* ManifestLoader.swift in Sources */,
FAC36F591BE1756D007F2A20 /* AerialVideo.swift in Sources */,
AA7E2E5E1FC62E8B00E5F320 /* AerialPlayerItem.swift in Sources */,
FAF450211BE2B45D00C1F98A /* VideoLoader.swift in Sources */,
FAC36F6A1BE1780B007F2A20 /* Debug.swift in Sources */,
FAB22A7E1BE17D7D0065C0F5 /* AssetLoaderDelegate.swift in Sources */,
Expand Down Expand Up @@ -497,7 +504,8 @@
PRODUCT_BUNDLE_IDENTIFIER = "com.johncoates.Aerial-Test";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -513,7 +521,8 @@
MACOSX_DEPLOYMENT_TARGET = 10.9;
PRODUCT_BUNDLE_IDENTIFIER = "com.johncoates.Aerial-Test";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand All @@ -533,7 +542,8 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.2;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AerialApp.app/Contents/MacOS/AerialApp";
};
name = Debug;
Expand All @@ -552,7 +562,8 @@
MACOSX_DEPLOYMENT_TARGET = 10.12;
PRODUCT_BUNDLE_IDENTIFIER = "com.johncoates.Aerial-Tests";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.2;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AerialApp.app/Contents/MacOS/AerialApp";
};
name = Release;
Expand Down Expand Up @@ -598,6 +609,7 @@
ONLY_ACTIVE_ARCH = YES;
OTHER_SWIFT_FLAGS = "-D DEBUG";
SDKROOT = macosx;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand Down Expand Up @@ -636,6 +648,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand All @@ -652,7 +665,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.johncoates.Aerial;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.2;
WRAPPER_EXTENSION = saver;
};
name = Debug;
Expand All @@ -669,7 +682,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.johncoates.Aerial;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.2;
WRAPPER_EXTENSION = saver;
};
name = Release;
Expand All @@ -693,6 +706,7 @@
FA7199771D94EC5A00FBC99B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
FACAF19F1BD9FC6000E539DC /* Build configuration list for PBXProject "Aerial" */ = {
isa = XCConfigurationList;
Expand Down
13 changes: 5 additions & 8 deletions Aerial/App/AppDelegate.swift
Expand Up @@ -28,11 +28,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {

private func setUp(preferencesWindow window: NSWindow) {
window.makeKeyAndOrderFront(self)
window.styleMask = [
NSTitledWindowMask,
NSClosableWindowMask,
NSMiniaturizableWindowMask
]
window.styleMask = [.closable, .titled, .miniaturizable]

var frame = window.frame
frame.origin = window.frame.origin
Expand All @@ -41,10 +37,11 @@ class AppDelegate: NSObject, NSApplicationDelegate {

private func objectsFromNib(loadNibNamed nibName: String) -> [AnyObject] {
let bundle = Bundle.main
var topLevelObjects = NSArray()
bundle.loadNibNamed(nibName,
var topLevelObjects:NSArray? = NSArray()
bundle.loadNibNamed(NSNib.Name(nibName),
owner: preferencesWindowController,
topLevelObjects: &topLevelObjects)
return topLevelObjects as [AnyObject]

return topLevelObjects! as [AnyObject]
}
}
10 changes: 5 additions & 5 deletions Aerial/App/Resources/Info.plist
Expand Up @@ -17,22 +17,22 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.4b8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 John Coates. All rights reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 John Coates. All rights reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
Expand Down
18 changes: 9 additions & 9 deletions Aerial/Resources/Info.plist
Expand Up @@ -2,13 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
Expand All @@ -22,11 +15,18 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<string>1.4b8</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.2.0</string>
<string>1.4.0</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSPrincipalClass</key>
<string>AerialView</string>
</dict>
Expand Down

0 comments on commit bca3249

Please sign in to comment.