Skip to content

Commit a586283

Browse files
authored
Merge pull request jvanakker#35 from dreampiggy/master
Many improvements to polish the user experience and bugfix
2 parents 3a2817a + 535568c commit a586283

File tree

9 files changed

+313
-309
lines changed

9 files changed

+313
-309
lines changed

Icon

Whitespace-only changes.

_Project/Browser.xcodeproj/project.pbxproj

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
TargetAttributes = {
160160
B002B8611BAE420500C744AF = {
161161
CreatedOnToolsVersion = 7.1;
162-
DevelopmentTeam = R2HYQQ4QDF;
162+
DevelopmentTeam = H7W77QXGX2;
163163
};
164164
};
165165
};
@@ -168,6 +168,7 @@
168168
developmentRegion = English;
169169
hasScannedForEncodings = 0;
170170
knownRegions = (
171+
English,
171172
en,
172173
Base,
173174
);
@@ -350,13 +351,13 @@
350351
ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
351352
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
352353
CODE_SIGN_IDENTITY = "iPhone Developer";
353-
DEVELOPMENT_TEAM = R2HYQQ4QDF;
354+
DEVELOPMENT_TEAM = H7W77QXGX2;
354355
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
355356
ENABLE_ON_DEMAND_RESOURCES = NO;
356357
FRAMEWORK_SEARCH_PATHS = "";
357358
INFOPLIST_FILE = Browser/Info.plist;
358359
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
359-
PRODUCT_BUNDLE_IDENTIFIER = com.jva.tvbrowser;
360+
PRODUCT_BUNDLE_IDENTIFIER = com.dreampiggy.tvbrowser;
360361
PRODUCT_NAME = "$(TARGET_NAME)";
361362
SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO;
362363
TVOS_DEPLOYMENT_TARGET = 9.0;
@@ -371,13 +372,13 @@
371372
ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image";
372373
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
373374
CODE_SIGN_IDENTITY = "iPhone Developer";
374-
DEVELOPMENT_TEAM = R2HYQQ4QDF;
375+
DEVELOPMENT_TEAM = H7W77QXGX2;
375376
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
376377
ENABLE_ON_DEMAND_RESOURCES = NO;
377378
FRAMEWORK_SEARCH_PATHS = "";
378379
INFOPLIST_FILE = Browser/Info.plist;
379380
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
380-
PRODUCT_BUNDLE_IDENTIFIER = com.jva.tvbrowser;
381+
PRODUCT_BUNDLE_IDENTIFIER = com.dreampiggy.tvbrowser;
381382
PRODUCT_NAME = "$(TARGET_NAME)";
382383
SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO;
383384
TVOS_DEPLOYMENT_TARGET = 9.0;

_Project/Browser/AppDelegate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ @implementation AppDelegate
1818
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
1919
// Override point for customization after application launch.
2020
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"MobileMode"]) {
21-
NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:@"Mozilla/5.0 (iPad; CPU OS 10_0 like Mac OS X) AppleWebKit/602.1.38 (KHTML, like Gecko) Version/10.0 Mobile/14A300 Safari/602.1", @"UserAgent", nil];
21+
NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:@"Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Mobile/15E148 Safari/604.1", @"UserAgent", nil];
2222
[[NSUserDefaults standardUserDefaults] registerDefaults:dictionary];
2323
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"MobileMode"];
2424
[[NSUserDefaults standardUserDefaults] synchronize];
2525
}
2626
else {
27-
NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:@"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/602.3.12 (KHTML, like Gecko) Version/10.0.2 Safari/602.3.12", @"UserAgent", nil];
27+
NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:@"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15", @"UserAgent", nil];
2828
[[NSUserDefaults standardUserDefaults] registerDefaults:dictionary];
2929
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"MobileMode"];
3030
[[NSUserDefaults standardUserDefaults] synchronize];
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "mac-osx-pointer-cursor.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"version" : 1,
19+
"author" : "xcode"
20+
}
21+
}
3.8 KB
Loading

_Project/Browser/Base.lproj/Main.storyboard

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder.AppleTV.Storyboard" version="3.0" toolsVersion="14460.31" targetRuntime="AppleTV" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
3-
<device id="appleTV" orientation="landscape">
4-
<adaptation id="light"/>
5-
</device>
2+
<document type="com.apple.InterfaceBuilder.AppleTV.Storyboard" version="3.0" toolsVersion="15505" targetRuntime="AppleTV" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
3+
<device id="appleTV" appearance="light"/>
64
<dependencies>
75
<deployment identifier="tvOS"/>
8-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15509"/>
97
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
108
</dependencies>
119
<scenes>
@@ -25,11 +23,6 @@
2523
<rect key="frame" x="0.0" y="0.0" width="1920" height="1080"/>
2624
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
2725
</view>
28-
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="refresh-button" translatesAutoresizingMaskIntoConstraints="NO" id="ycT-uV-2st">
29-
<rect key="frame" x="10" y="10" width="60" height="60"/>
30-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
31-
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
32-
</imageView>
3326
<visualEffectView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="LDW-dE-x05">
3427
<rect key="frame" x="0.0" y="0.0" width="1920" height="80"/>
3528
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" id="vWz-fJ-GDT">
@@ -149,14 +142,15 @@
149142
</viewController>
150143
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
151144
</objects>
145+
<point key="canvasLocation" x="69" y="69"/>
152146
</scene>
153147
</scenes>
154148
<resources>
155-
<image name="go-back-left-arrow" width="256" height="256"/>
156-
<image name="house-outline" width="240" height="240"/>
157-
<image name="menu-2" width="240" height="240"/>
158-
<image name="refresh-button" width="240" height="240"/>
159-
<image name="resize-arrows" width="256" height="256"/>
160-
<image name="right-arrow-forward" width="240" height="240"/>
149+
<image name="go-back-left-arrow" width="192" height="192"/>
150+
<image name="house-outline" width="192" height="192"/>
151+
<image name="menu-2" width="192" height="192"/>
152+
<image name="refresh-button" width="192" height="192"/>
153+
<image name="resize-arrows" width="192" height="192"/>
154+
<image name="right-arrow-forward" width="192" height="192"/>
161155
</resources>
162156
</document>

_Project/Browser/ViewController.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
#import <GameKit/GameKit.h>
1111

1212
@interface ViewController : GCEventViewController
13-
{
14-
CGFloat topMenuBrowserOffset;
15-
Boolean topMenuShowing;
16-
}
1713

1814
@property (nonatomic, retain) IBOutlet UIVisualEffectView *topMenuView;
1915
@property (nonatomic, retain) IBOutlet UIView *browserContainerView;

0 commit comments

Comments
 (0)