Skip to content
This repository was archived by the owner on Oct 28, 2020. It is now read-only.

Commit c9e9bb0

Browse files
committed
More cleanup and bump to 0.1.4
1 parent 3e17392 commit c9e9bb0

File tree

20 files changed

+261
-574
lines changed

20 files changed

+261
-574
lines changed

Pusher Platform iOS Example/Pusher Platform iOS Example.xcodeproj/project.pbxproj

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
3302638B1DC2475E007D7317 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 330263891DC2475E007D7317 /* LaunchScreen.storyboard */; };
1212
33CC931A1E38E48C003E6325 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC93151E38E48C003E6325 /* AppDelegate.swift */; };
1313
33CC931B1E38E48C003E6325 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC93161E38E48C003E6325 /* Assets.xcassets */; };
14-
33CC931C1E38E48C003E6325 /* FeedsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC93181E38E48C003E6325 /* FeedsViewController.swift */; };
14+
33CC931C1E38E48C003E6325 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC93181E38E48C003E6325 /* ViewController.swift */; };
1515
33CEFD9F1E38F6B800FC9F03 /* PusherPlatform.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 33CEFD9E1E38F6B800FC9F03 /* PusherPlatform.framework */; };
1616
33CEFDA01E38F6B800FC9F03 /* PusherPlatform.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 33CEFD9E1E38F6B800FC9F03 /* PusherPlatform.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1717
/* End PBXBuildFile section */
@@ -37,7 +37,7 @@
3737
33CC93151E38E48C003E6325 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = "Pusher Platform iOS Example/AppDelegate.swift"; sourceTree = SOURCE_ROOT; };
3838
33CC93161E38E48C003E6325 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = "Pusher Platform iOS Example/Assets.xcassets"; sourceTree = SOURCE_ROOT; };
3939
33CC93171E38E48C003E6325 /* Pusher Platform iOS Example.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; name = "Pusher Platform iOS Example.entitlements"; path = "Pusher Platform iOS Example/Pusher Platform iOS Example.entitlements"; sourceTree = SOURCE_ROOT; };
40-
33CC93181E38E48C003E6325 /* FeedsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FeedsViewController.swift; path = "Pusher Platform iOS Example/FeedsViewController.swift"; sourceTree = SOURCE_ROOT; };
40+
33CC93181E38E48C003E6325 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ViewController.swift; path = "Pusher Platform iOS Example/ViewController.swift"; sourceTree = SOURCE_ROOT; };
4141
33CC93191E38E48C003E6325 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = "Pusher Platform iOS Example/Info.plist"; sourceTree = SOURCE_ROOT; };
4242
33CEFD9E1E38F6B800FC9F03 /* PusherPlatform.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = PusherPlatform.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4343
/* End PBXFileReference section */
@@ -83,17 +83,25 @@
8383
isa = PBXGroup;
8484
children = (
8585
33CC93151E38E48C003E6325 /* AppDelegate.swift */,
86-
33CC93181E38E48C003E6325 /* FeedsViewController.swift */,
86+
33CC93181E38E48C003E6325 /* ViewController.swift */,
8787
330263841DC2475E007D7317 /* Main.storyboard */,
8888
330263891DC2475E007D7317 /* LaunchScreen.storyboard */,
8989
33CC93161E38E48C003E6325 /* Assets.xcassets */,
90-
33CC93171E38E48C003E6325 /* Pusher Platform iOS Example.entitlements */,
91-
33CC93191E38E48C003E6325 /* Info.plist */,
90+
3388D5FE1EAE67020072A742 /* Supporting Files */,
9291
);
9392
name = "PusherPlatform iOS Example";
9493
path = "Pusher Platform iOS Example";
9594
sourceTree = "<group>";
9695
};
96+
3388D5FE1EAE67020072A742 /* Supporting Files */ = {
97+
isa = PBXGroup;
98+
children = (
99+
33CC93171E38E48C003E6325 /* Pusher Platform iOS Example.entitlements */,
100+
33CC93191E38E48C003E6325 /* Info.plist */,
101+
);
102+
name = "Supporting Files";
103+
sourceTree = "<group>";
104+
};
97105
/* End PBXGroup section */
98106

99107
/* Begin PBXNativeTarget section */
@@ -174,7 +182,7 @@
174182
buildActionMask = 2147483647;
175183
files = (
176184
33CC931A1E38E48C003E6325 /* AppDelegate.swift in Sources */,
177-
33CC931C1E38E48C003E6325 /* FeedsViewController.swift in Sources */,
185+
33CC931C1E38E48C003E6325 /* ViewController.swift in Sources */,
178186
);
179187
runOnlyForDeploymentPostprocessing = 0;
180188
};
Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,12 @@
1-
//
2-
// AppDelegate.swift
3-
// Pusher Platform iOS Example
4-
//
5-
// Created by Hamilton Chapman on 27/10/2016.
6-
// Copyright © 2016 Pusher. All rights reserved.
7-
//
8-
91
import UIKit
102
import PusherPlatform
113

124
@UIApplicationMain
135
class AppDelegate: UIResponder, UIApplicationDelegate {
146

157
var window: UIWindow?
16-
public var app: App!
178

189
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
19-
let authorizer = HTTPEndpointAuthorizer(url: "https://your-endpoint.com/auth") { authRequest in
20-
// these are all optional and just examples of what you can do
21-
authRequest.body = ["something": "you want"]
22-
authRequest.headers = ["SomeHeader": "HeaderValue"]
23-
authRequest.queryItems = [URLQueryItem(name: "querykey", value: "some_value")]
24-
return authRequest
25-
}
26-
27-
app = App(id: "your-app-id", authorizer: authorizer)
28-
2910
return true
3011
}
3112
}
Lines changed: 10 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,31 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11762" systemVersion="16D32" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="rIz-bf-ulW">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12120" systemVersion="16E195" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="1Ks-6c-4dh">
33
<device id="retina5_5" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
66
<dependencies>
77
<deployment identifier="iOS"/>
8-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11757"/>
9-
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12088"/>
109
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1110
</dependencies>
1211
<scenes>
13-
<!--Feeds-->
14-
<scene sceneID="XeT-Ii-5JX">
12+
<!--View Controller-->
13+
<scene sceneID="yUj-7s-25T">
1514
<objects>
16-
<viewController id="q24-2i-bmd" customClass="FeedsViewController" customModule="Pusher_Platform_iOS_Example" customModuleProvider="target" sceneMemberID="viewController">
15+
<viewController id="1Ks-6c-4dh" customClass="ViewController" customModule="Pusher_Platform_iOS_Example" customModuleProvider="target" sceneMemberID="viewController">
1716
<layoutGuides>
18-
<viewControllerLayoutGuide type="top" id="rsB-3N-lRi"/>
19-
<viewControllerLayoutGuide type="bottom" id="BOK-xR-gs1"/>
17+
<viewControllerLayoutGuide type="top" id="7CQ-8q-DaY"/>
18+
<viewControllerLayoutGuide type="bottom" id="NFq-JM-CMv"/>
2019
</layoutGuides>
21-
<view key="view" contentMode="scaleToFill" id="fCr-Mf-LFa">
20+
<view key="view" contentMode="scaleToFill" id="fLn-LR-r4w">
2221
<rect key="frame" x="0.0" y="0.0" width="414" height="736"/>
2322
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
24-
<subviews>
25-
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="On1-6j-Ace">
26-
<rect key="frame" x="0.0" y="61" width="414" height="626"/>
27-
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
28-
</tableView>
29-
</subviews>
3023
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
31-
<constraints>
32-
<constraint firstItem="On1-6j-Ace" firstAttribute="top" secondItem="rsB-3N-lRi" secondAttribute="bottom" constant="41" id="2S3-Cx-6T7"/>
33-
<constraint firstItem="On1-6j-Ace" firstAttribute="leading" secondItem="fCr-Mf-LFa" secondAttribute="leadingMargin" constant="-20" id="9oE-mo-zeN"/>
34-
<constraint firstItem="BOK-xR-gs1" firstAttribute="top" secondItem="On1-6j-Ace" secondAttribute="bottom" id="BmN-iW-4rZ"/>
35-
<constraint firstAttribute="trailingMargin" secondItem="On1-6j-Ace" secondAttribute="trailing" constant="-20" id="c8x-kP-y8p"/>
36-
</constraints>
3724
</view>
38-
<tabBarItem key="tabBarItem" title="Feeds" id="3wm-As-BnJ" userLabel="Feeds"/>
39-
<connections>
40-
<outlet property="feedTableView" destination="On1-6j-Ace" id="B4Q-gZ-lXI"/>
41-
</connections>
4225
</viewController>
43-
<placeholder placeholderIdentifier="IBFirstResponder" id="5Vw-aH-Fli" userLabel="First Responder" sceneMemberID="firstResponder"/>
26+
<placeholder placeholderIdentifier="IBFirstResponder" id="Xwy-LM-q7G" userLabel="First Responder" sceneMemberID="firstResponder"/>
4427
</objects>
45-
<point key="canvasLocation" x="389.85507246376812" y="336.68478260869568"/>
46-
</scene>
47-
<!--Tab Bar Controller-->
48-
<scene sceneID="H2z-n5-xeN">
49-
<objects>
50-
<tabBarController id="rIz-bf-ulW" sceneMemberID="viewController">
51-
<tabBar key="tabBar" contentMode="scaleToFill" id="Gi6-9p-GXA">
52-
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
53-
<autoresizingMask key="autoresizingMask"/>
54-
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
55-
</tabBar>
56-
<connections>
57-
<segue destination="q24-2i-bmd" kind="relationship" relationship="viewControllers" id="QAK-hs-nqx"/>
58-
</connections>
59-
</tabBarController>
60-
<placeholder placeholderIdentifier="IBFirstResponder" id="pbQ-Qz-o7v" userLabel="First Responder" sceneMemberID="firstResponder"/>
61-
</objects>
62-
<point key="canvasLocation" x="-562" y="10"/>
28+
<point key="canvasLocation" x="-516" y="-255"/>
6329
</scene>
6430
</scenes>
6531
</document>

Pusher Platform iOS Example/Pusher Platform iOS Example/FeedsViewController.swift

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import UIKit
2+
3+
class ViewController: UIViewController {
4+
override func viewDidLoad() {
5+
super.viewDidLoad()
6+
}
7+
}

Pusher Platform macOS Example/Pusher Platform macOS Example.xcodeproj/project.pbxproj

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,23 @@
8282
children = (
8383
33CC931E1E38E4C0003E6325 /* AppDelegate.swift */,
8484
33CC93221E38E4C0003E6325 /* ViewController.swift */,
85-
33CC931F1E38E4C0003E6325 /* Assets.xcassets */,
86-
33CC93201E38E4C0003E6325 /* Pusher Platform macOS Example.entitlements */,
87-
33CC93211E38E4C0003E6325 /* Info.plist */,
8885
332B5A7E1D9ACA6A00E69AC8 /* Main.storyboard */,
86+
33CC931F1E38E4C0003E6325 /* Assets.xcassets */,
87+
3388D5FF1EAE67140072A742 /* Supporting Files */,
8988
);
9089
name = "PusherPlatform macOS Example";
9190
path = "Pusher Platform macOS Example";
9291
sourceTree = "<group>";
9392
};
93+
3388D5FF1EAE67140072A742 /* Supporting Files */ = {
94+
isa = PBXGroup;
95+
children = (
96+
33CC93201E38E4C0003E6325 /* Pusher Platform macOS Example.entitlements */,
97+
33CC93211E38E4C0003E6325 /* Info.plist */,
98+
);
99+
name = "Supporting Files";
100+
sourceTree = "<group>";
101+
};
94102
/* End PBXGroup section */
95103

96104
/* Begin PBXNativeTarget section */

0 commit comments

Comments
 (0)