Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV.to offline page #156

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github "Daltron/NotificationBanner" "2.1.0"
github "SnapKit/SnapKit" "4.2.0"
github "cbpowell/MarqueeLabel" "3.2.1"
github "pusher/push-notifications-swift" "2.0.0"
github "pusher/push-notifications-swift" "2.0.2"
24 changes: 24 additions & 0 deletions DEV-Simple.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
objects = {

/* Begin PBXBuildFile section */
16800D5B22CD05C300429E36 /* OfflineViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16800D5A22CD05C300429E36 /* OfflineViewController.swift */; };
16800D5F22CD067D00429E36 /* DEVColorCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16800D5D22CD067D00429E36 /* DEVColorCollectionViewCell.swift */; };
16800D6022CD067D00429E36 /* DEVColorCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 16800D5E22CD067D00429E36 /* DEVColorCollectionViewCell.xib */; };
16800D6222CD0C9500429E36 /* DEVCanvasView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16800D6122CD0C9500429E36 /* DEVCanvasView.swift */; };
1B032B1821E409FE00A2108A /* Globals.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B032B1721E409FE00A2108A /* Globals.swift */; };
1BA17C87220C8470007A8EF5 /* invertedImages.css in Resources */ = {isa = PBXBuildFile; fileRef = 1BA17C86220C8470007A8EF5 /* invertedImages.css */; };
73D7673C218BA66700BD13B6 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 73D7673B218BA66700BD13B6 /* AppDelegate.swift */; };
Expand Down Expand Up @@ -44,6 +48,10 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
16800D5A22CD05C300429E36 /* OfflineViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OfflineViewController.swift; sourceTree = "<group>"; };
16800D5D22CD067D00429E36 /* DEVColorCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DEVColorCollectionViewCell.swift; sourceTree = "<group>"; };
16800D5E22CD067D00429E36 /* DEVColorCollectionViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DEVColorCollectionViewCell.xib; sourceTree = "<group>"; };
16800D6122CD0C9500429E36 /* DEVCanvasView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DEVCanvasView.swift; sourceTree = "<group>"; };
1B032B1721E409FE00A2108A /* Globals.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Globals.swift; sourceTree = "<group>"; };
1BA17C86220C8470007A8EF5 /* invertedImages.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = invertedImages.css; sourceTree = "<group>"; };
73D76738218BA66700BD13B6 /* DEV-Simple.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "DEV-Simple.app"; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -99,11 +107,23 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
16800D5C22CD065300429E36 /* UICollectionViewCells */ = {
isa = PBXGroup;
children = (
16800D5D22CD067D00429E36 /* DEVColorCollectionViewCell.swift */,
16800D5E22CD067D00429E36 /* DEVColorCollectionViewCell.xib */,
);
path = UICollectionViewCells;
sourceTree = "<group>";
};
1BA17C88220C847B007A8EF5 /* views */ = {
isa = PBXGroup;
children = (
16800D5C22CD065300429E36 /* UICollectionViewCells */,
73D7673D218BA66700BD13B6 /* ViewController.swift */,
73E8ACC62192165E009CE057 /* BrowserViewController.swift */,
16800D5A22CD05C300429E36 /* OfflineViewController.swift */,
16800D6122CD0C9500429E36 /* DEVCanvasView.swift */,
);
path = views;
sourceTree = "<group>";
Expand Down Expand Up @@ -322,6 +342,7 @@
73D76746218BA66B00BD13B6 /* LaunchScreen.storyboard in Resources */,
73D76743218BA66B00BD13B6 /* Assets.xcassets in Resources */,
73D76741218BA66700BD13B6 /* Main.storyboard in Resources */,
16800D6022CD067D00429E36 /* DEVColorCollectionViewCell.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -392,8 +413,11 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
16800D5B22CD05C300429E36 /* OfflineViewController.swift in Sources */,
73D7673E218BA66700BD13B6 /* ViewController.swift in Sources */,
16800D5F22CD067D00429E36 /* DEVColorCollectionViewCell.swift in Sources */,
73E8ACC72192165E009CE057 /* BrowserViewController.swift in Sources */,
16800D6222CD0C9500429E36 /* DEVCanvasView.swift in Sources */,
73D7673C218BA66700BD13B6 /* AppDelegate.swift in Sources */,
1B032B1821E409FE00A2108A /* Globals.swift in Sources */,
BD5C906C21B63CCC000D9F79 /* NetworkReachability.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "DEV-Rainbow.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion DEV-Simple/core/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
let pushNotifications = PushNotifications.shared

func application(_ application: UIApplication, didFinishLaunchingWithOptions
launchOptions:[UIApplication.LaunchOptionsKey:Any]?) -> Bool {
launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
self.pushNotifications.start(instanceId: "cdaf9857-fad0-4bfb-b360-64c1b2693ef3")
self.pushNotifications.registerForRemoteNotifications()
try? self.pushNotifications.addDeviceInterest(interest: "broadcast")
Expand Down
1 change: 1 addition & 0 deletions DEV-Simple/core/Globals.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ import Foundation

struct DoAction {
static var openExternalURL = "showExternalPage"
static let offlineViewController = "showOffline"
}
Loading