Unverified Commit 8b591540 authored by Zach Knox's avatar Zach Knox
Browse files

starting on Notification deep linking

parent 23c1cdb1
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="M4Y-Lb-cyx">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Notification View Controller-->
<scene sceneID="cwh-vc-ff4">
<objects>
<viewController id="M4Y-Lb-cyx" userLabel="Notification View Controller" customClass="NotificationViewController" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" simulatedAppContext="notificationCenter" id="S3S-Oj-5AN">
<rect key="frame" x="0.0" y="0.0" width="320" height="37"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="top" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Hello World" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="280" translatesAutoresizingMaskIntoConstraints="NO" id="GcN-lo-r42">
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.45882353186607361" green="0.74901962280273438" blue="0.66666668653488159" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="2BE-c3-nQJ" firstAttribute="bottom" secondItem="GcN-lo-r42" secondAttribute="bottom" constant="8" symbolic="YES" id="0Q0-KW-PJ6"/>
<constraint firstItem="GcN-lo-r42" firstAttribute="leading" secondItem="2BE-c3-nQJ" secondAttribute="leading" constant="20" symbolic="YES" id="6Vq-gs-PHe"/>
<constraint firstItem="2BE-c3-nQJ" firstAttribute="trailing" secondItem="GcN-lo-r42" secondAttribute="trailing" constant="20" symbolic="YES" id="L8K-9R-egU"/>
<constraint firstItem="GcN-lo-r42" firstAttribute="top" secondItem="2BE-c3-nQJ" secondAttribute="top" constant="8" symbolic="YES" id="mYS-Cv-VNx"/>
</constraints>
<viewLayoutGuide key="safeArea" id="2BE-c3-nQJ"/>
</view>
<extendedEdge key="edgesForExtendedLayout"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<size key="freeformSize" width="320" height="37"/>
<connections>
<outlet property="label" destination="GcN-lo-r42" id="lpW-cU-7IG"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="vXp-U4-Rya" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>AlertNotificationExtention</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>UNNotificationExtensionCategory</key>
<string>myNotificationCategory</string>
<key>UNNotificationExtensionInitialContentSizeRatio</key>
<real>1</real>
</dict>
<key>NSExtensionMainStoryboard</key>
<string>MainInterface</string>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.usernotifications.content-extension</string>
</dict>
</dict>
</plist>
//
// NotificationViewController.swift
// AlertNotificationExtention
//
// Created by Zach Knox on 1/25/19.
// Copyright © 2019 SRCT. All rights reserved.
//
import UIKit
import UserNotifications
import UserNotificationsUI
class NotificationViewController: UIViewController, UNNotificationContentExtension {
@IBOutlet var label: UILabel?
override func viewDidLoad() {
super.viewDidLoad()
// Do any required interface initialization here.
}
func didReceive(_ notification: UNNotification) {
self.label?.text = notification.request.content.body
}
}
......@@ -16,7 +16,6 @@
9203CB892023D51A006ACC3B /* AlertCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92FF6C721FFEEEE900D836AE /* AlertCollectionViewCell.swift */; };
9203CB8A2023D51A006ACC3B /* CheckingTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92108A321ED755F100675E16 /* CheckingTableViewCell.swift */; };
9203CB8B2023D51A006ACC3B /* FacilitiesListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92182EBF1E95BD2C00192ABA /* FacilitiesListViewController.swift */; };
9203CB8C2023D51A006ACC3B /* AlertDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92B89E2D20093E3600928284 /* AlertDetailViewController.swift */; };
9203CB8E2023D51A006ACC3B /* AboutScreenViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9265F3A21F2C0B1500A54A21 /* AboutScreenViewController.swift */; };
9203CB912023D51A006ACC3B /* SetIconTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9281AD7B2002CF1700D09203 /* SetIconTableViewController.swift */; };
9203CB922023D51A006ACC3B /* FacilityCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 924840F71EA915F200DBFF4E /* FacilityCollectionViewCell.swift */; };
......@@ -77,10 +76,15 @@
928EC26421604DD800D8F9FE /* DownloadController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD3C97481DC18AB300A84434 /* DownloadController.swift */; };
928EC26521605CD700D8F9FE /* Model.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD763A791DE24EF100ADFD6B /* Model.swift */; };
928EC26721611E5900D8F9FE /* DatabaseController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 928EC26621611E5900D8F9FE /* DatabaseController.swift */; };
929680AC21FBBE2F00A87E86 /* UserNotifications.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 929680AB21FBBE2F00A87E86 /* UserNotifications.framework */; };
929680AE21FBBE2F00A87E86 /* UserNotificationsUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 929680AD21FBBE2F00A87E86 /* UserNotificationsUI.framework */; };
929680B121FBBE2F00A87E86 /* NotificationViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 929680B021FBBE2F00A87E86 /* NotificationViewController.swift */; };
929680B421FBBE2F00A87E86 /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 929680B221FBBE2F00A87E86 /* MainInterface.storyboard */; };
929680B821FBBE2F00A87E86 /* AlertNotificationExtention.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 929680AA21FBBE2F00A87E86 /* AlertNotificationExtention.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
929680BD21FCCE3800A87E86 /* AlertDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92B89E2D20093E3600928284 /* AlertDetailViewController.swift */; };
9296814D21CED36600FA2238 /* ViewInMapsActionActivity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9296814C21CED36600FA2238 /* ViewInMapsActionActivity.swift */; };
9296814E21CEDC3E00FA2238 /* ViewInMapsActionActivity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9296814C21CED36600FA2238 /* ViewInMapsActionActivity.swift */; };
92B2D2FF1FF8599500349E90 /* FilterSelectionTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92B2D2FE1FF8599500349E90 /* FilterSelectionTableViewController.swift */; };
92B89E2E20093E3600928284 /* AlertDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92B89E2D20093E3600928284 /* AlertDetailViewController.swift */; };
92B89E302009444E00928284 /* PullingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92B89E2F2009444E00928284 /* PullingViewController.swift */; };
92F681581FC1353700393DF4 /* Pods-WhatsOpen-acknowledgements.plist in Resources */ = {isa = PBXBuildFile; fileRef = 92F681571FC1353700393DF4 /* Pods-WhatsOpen-acknowledgements.plist */; };
92F6815A1FC137CF00393DF4 /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 92F681591FC137CF00393DF4 /* Settings.bundle */; };
......@@ -131,6 +135,13 @@
remoteGlobalIDString = 928EC2512160475900D8F9FE;
remoteInfo = WhatsOpenKit;
};
929680B621FBBE2F00A87E86 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = CD81F5111DC0334600009FBD /* Project object */;
proxyType = 1;
remoteGlobalIDString = 929680A921FBBE2F00A87E86;
remoteInfo = AlertNotificationExtention;
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
......@@ -153,6 +164,7 @@
files = (
9273EEE021659B6200CE63DC /* ShortcutsExtensionUI.appex in Embed App Extensions */,
92589A6C21612D0E0002814F /* TodayWidget.appex in Embed App Extensions */,
929680B821FBBE2F00A87E86 /* AlertNotificationExtention.appex in Embed App Extensions */,
9273EEE321659B6200CE63DC /* ShortcutsExtension.appex in Embed App Extensions */,
);
name = "Embed App Extensions";
......@@ -237,6 +249,12 @@
9281AD7B2002CF1700D09203 /* SetIconTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SetIconTableViewController.swift; sourceTree = "<group>"; };
928EC2522160475900D8F9FE /* WhatsOpenKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WhatsOpenKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
928EC26621611E5900D8F9FE /* DatabaseController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DatabaseController.swift; sourceTree = "<group>"; };
929680AA21FBBE2F00A87E86 /* AlertNotificationExtention.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = AlertNotificationExtention.appex; sourceTree = BUILT_PRODUCTS_DIR; };
929680AB21FBBE2F00A87E86 /* UserNotifications.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UserNotifications.framework; path = System/Library/Frameworks/UserNotifications.framework; sourceTree = SDKROOT; };
929680AD21FBBE2F00A87E86 /* UserNotificationsUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UserNotificationsUI.framework; path = System/Library/Frameworks/UserNotificationsUI.framework; sourceTree = SDKROOT; };
929680B021FBBE2F00A87E86 /* NotificationViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationViewController.swift; sourceTree = "<group>"; };
929680B321FBBE2F00A87E86 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = "<group>"; };
929680B521FBBE2F00A87E86 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
9296814C21CED36600FA2238 /* ViewInMapsActionActivity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewInMapsActionActivity.swift; sourceTree = "<group>"; };
92B2D2FE1FF8599500349E90 /* FilterSelectionTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilterSelectionTableViewController.swift; sourceTree = "<group>"; };
92B89E2D20093E3600928284 /* AlertDetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertDetailViewController.swift; sourceTree = "<group>"; };
......@@ -332,6 +350,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
929680A721FBBE2F00A87E86 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
929680AE21FBBE2F00A87E86 /* UserNotificationsUI.framework in Frameworks */,
929680AC21FBBE2F00A87E86 /* UserNotifications.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
CD81F5161DC0334600009FBD /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
......@@ -420,6 +447,7 @@
9255C5A921556E410094C947 /* WhatsOpenKit */ = {
isa = PBXGroup;
children = (
92B89E2D20093E3600928284 /* AlertDetailViewController.swift */,
92EA81961FB7D1B500B1F6E3 /* PaddedUILabel.swift */,
92182EC31E95C38400192ABA /* FacilityDetailViewController.swift */,
928EC26621611E5900D8F9FE /* DatabaseController.swift */,
......@@ -476,10 +504,19 @@
name = "Recovered References";
sourceTree = "<group>";
};
929680AF21FBBE2F00A87E86 /* AlertNotificationExtention */ = {
isa = PBXGroup;
children = (
929680B021FBBE2F00A87E86 /* NotificationViewController.swift */,
929680B221FBBE2F00A87E86 /* MainInterface.storyboard */,
929680B521FBBE2F00A87E86 /* Info.plist */,
);
path = AlertNotificationExtention;
sourceTree = "<group>";
};
92A2757120C8992600E1A102 /* Primary Views */ = {
isa = PBXGroup;
children = (
92B89E2D20093E3600928284 /* AlertDetailViewController.swift */,
92182EBF1E95BD2C00192ABA /* FacilitiesListViewController.swift */,
);
path = "Primary Views";
......@@ -503,6 +540,7 @@
92589A6321612D0D0002814F /* TodayWidget */,
9273EECC21659B6200CE63DC /* ShortcutsExtension */,
9273EED721659B6200CE63DC /* ShortcutsExtensionUI */,
929680AF21FBBE2F00A87E86 /* AlertNotificationExtention */,
CD81F51A1DC0334600009FBD /* Products */,
2EAE8AD7B1F0ADDED5057982 /* Pods */,
FD2AE174B8FDE3008F34206E /* Frameworks */,
......@@ -520,6 +558,7 @@
92589A6021612D0D0002814F /* TodayWidget.appex */,
9273EECB21659B6200CE63DC /* ShortcutsExtension.appex */,
9273EED421659B6200CE63DC /* ShortcutsExtensionUI.appex */,
929680AA21FBBE2F00A87E86 /* AlertNotificationExtention.appex */,
);
name = Products;
sourceTree = "<group>";
......@@ -554,6 +593,8 @@
ABAAA7AD48CF2CBD44512166 /* Pods_Watch_Extension.framework */,
4EE3CD0842CD297B8F2FEEA4 /* Pods_Watch.framework */,
D024256135674B9023108E02 /* Pods_WhatsOpenKitWatch.framework */,
929680AB21FBBE2F00A87E86 /* UserNotifications.framework */,
929680AD21FBBE2F00A87E86 /* UserNotificationsUI.framework */,
);
name = Frameworks;
sourceTree = "<group>";
......@@ -611,6 +652,7 @@
92589A6B21612D0E0002814F /* PBXTargetDependency */,
9273EEDF21659B6200CE63DC /* PBXTargetDependency */,
9273EEE221659B6200CE63DC /* PBXTargetDependency */,
929680B721FBBE2F00A87E86 /* PBXTargetDependency */,
);
name = "WhatsOpen - AppStore";
productName = WhatsOpen;
......@@ -693,6 +735,23 @@
productReference = 928EC2522160475900D8F9FE /* WhatsOpenKit.framework */;
productType = "com.apple.product-type.framework";
};
929680A921FBBE2F00A87E86 /* AlertNotificationExtention */ = {
isa = PBXNativeTarget;
buildConfigurationList = 929680BC21FBBE2F00A87E86 /* Build configuration list for PBXNativeTarget "AlertNotificationExtention" */;
buildPhases = (
929680A621FBBE2F00A87E86 /* Sources */,
929680A721FBBE2F00A87E86 /* Frameworks */,
929680A821FBBE2F00A87E86 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = AlertNotificationExtention;
productName = AlertNotificationExtention;
productReference = 929680AA21FBBE2F00A87E86 /* AlertNotificationExtention.appex */;
productType = "com.apple.product-type.app-extension";
};
CD81F5181DC0334600009FBD /* WhatsOpen */ = {
isa = PBXNativeTarget;
buildConfigurationList = CD81F52B1DC0334600009FBD /* Build configuration list for PBXNativeTarget "WhatsOpen" */;
......@@ -724,7 +783,7 @@
isa = PBXProject;
attributes = {
CLASSPREFIX = "";
LastSwiftUpdateCheck = 1000;
LastSwiftUpdateCheck = 1010;
LastUpgradeCheck = 0900;
ORGANIZATIONNAME = SRCT;
TargetAttributes = {
......@@ -789,6 +848,11 @@
DevelopmentTeam = N5GM564QWL;
ProvisioningStyle = Automatic;
};
929680A921FBBE2F00A87E86 = {
CreatedOnToolsVersion = 10.1;
DevelopmentTeam = K5MMVK2UFR;
ProvisioningStyle = Automatic;
};
CD81F5181DC0334600009FBD = {
CreatedOnToolsVersion = 8.0;
DevelopmentTeam = N5GM564QWL;
......@@ -817,6 +881,7 @@
92589A5F21612D0D0002814F /* TodayWidget */,
9273EECA21659B6200CE63DC /* ShortcutsExtension */,
9273EED321659B6200CE63DC /* ShortcutsExtensionUI */,
929680A921FBBE2F00A87E86 /* AlertNotificationExtention */,
);
};
/* End PBXProject section */
......@@ -873,6 +938,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
929680A821FBBE2F00A87E86 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
929680B421FBBE2F00A87E86 /* MainInterface.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
CD81F5171DC0334600009FBD /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
......@@ -1191,7 +1264,6 @@
9296814E21CEDC3E00FA2238 /* ViewInMapsActionActivity.swift in Sources */,
9203CB8A2023D51A006ACC3B /* CheckingTableViewCell.swift in Sources */,
9203CB8B2023D51A006ACC3B /* FacilitiesListViewController.swift in Sources */,
9203CB8C2023D51A006ACC3B /* AlertDetailViewController.swift in Sources */,
924E0E322085851500C1F2AF /* DetailViewButtonsViewController.swift in Sources */,
9203CB8E2023D51A006ACC3B /* AboutScreenViewController.swift in Sources */,
9203CB912023D51A006ACC3B /* SetIconTableViewController.swift in Sources */,
......@@ -1240,6 +1312,7 @@
files = (
928EC26721611E5900D8F9FE /* DatabaseController.swift in Sources */,
928EC26421604DD800D8F9FE /* DownloadController.swift in Sources */,
929680BD21FCCE3800A87E86 /* AlertDetailViewController.swift in Sources */,
928EC26321604ADD00D8F9FE /* Utilities.swift in Sources */,
928EC262216049F900D8F9FE /* Filters.swift in Sources */,
9273EEF12165AFD400CE63DC /* WOPViewFacilityIntentHandler.swift in Sources */,
......@@ -1250,6 +1323,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
929680A621FBBE2F00A87E86 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
929680B121FBBE2F00A87E86 /* NotificationViewController.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
CD81F5151DC0334600009FBD /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
......@@ -1259,7 +1340,6 @@
9296814D21CED36600FA2238 /* ViewInMapsActionActivity.swift in Sources */,
92108A331ED755F100675E16 /* CheckingTableViewCell.swift in Sources */,
92182EC01E95BD2C00192ABA /* FacilitiesListViewController.swift in Sources */,
92B89E2E20093E3600928284 /* AlertDetailViewController.swift in Sources */,
924E0E312085851400C1F2AF /* DetailViewButtonsViewController.swift in Sources */,
9265F3A31F2C0B1500A54A21 /* AboutScreenViewController.swift in Sources */,
9281AD7C2002CF1700D09203 /* SetIconTableViewController.swift in Sources */,
......@@ -1304,6 +1384,11 @@
target = 928EC2512160475900D8F9FE /* WhatsOpenKit */;
targetProxy = 928EC2572160475A00D8F9FE /* PBXContainerItemProxy */;
};
929680B721FBBE2F00A87E86 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 929680A921FBBE2F00A87E86 /* AlertNotificationExtention */;
targetProxy = 929680B621FBBE2F00A87E86 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
......@@ -1323,6 +1408,14 @@
name = MainInterface.storyboard;
sourceTree = "<group>";
};
929680B221FBBE2F00A87E86 /* MainInterface.storyboard */ = {
isa = PBXVariantGroup;
children = (
929680B321FBBE2F00A87E86 /* Base */,
);
name = MainInterface.storyboard;
sourceTree = "<group>";
};
CD81F5201DC0334600009FBD /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
......@@ -1942,6 +2035,85 @@
};
name = "App Store";
};
929680B921FBBE2F00A87E86 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "iPhone Distribution";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = K5MMVK2UFR;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = AlertNotificationExtention/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = edu.gmu.srct.whatsopen.AlertNotificationExtention;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
929680BA21FBBE2F00A87E86 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = K5MMVK2UFR;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = AlertNotificationExtention/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = edu.gmu.srct.whatsopen.AlertNotificationExtention;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
929680BB21FBBE2F00A87E86 /* App Store */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_IDENTITY = "iPhone Distribution";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = K5MMVK2UFR;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = AlertNotificationExtention/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = edu.gmu.srct.whatsopen.AlertNotificationExtention;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = "App Store";
};
CD81F5291DC0334600009FBD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
......@@ -2177,6 +2349,16 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
929680BC21FBBE2F00A87E86 /* Build configuration list for PBXNativeTarget "AlertNotificationExtention" */ = {
isa = XCConfigurationList;
buildConfigurations = (
929680B921FBBE2F00A87E86 /* Debug */,
929680BA21FBBE2F00A87E86 /* Release */,
929680BB21FBBE2F00A87E86 /* App Store */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
CD81F5141DC0334600009FBD /* Build configuration list for PBXProject "WhatsOpen" */ = {
isa = XCConfigurationList;
buildConfigurations = (
......
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0920"
version = "2.0">
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
......@@ -50,8 +50,7 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
launchAutomaticallySubstyle = "1">
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
......
......@@ -8,8 +8,8 @@
import UIKit
import UserNotifications
import RealmSwift
import RealmSwift
import Fabric
import Crashlytics
......@@ -41,6 +41,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
application.setMinimumBackgroundFetchInterval(3600)
UNUserNotificationCenter.current().delegate = self
return true
}
......@@ -75,6 +76,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
}
func migrateDefaults() {
let oldDefaults = WOPDatabaseController.getDefaults()
if oldDefaults.integer(forKey: "migrated") <= 0 && oldDefaults.value(forKey: "mapsApp") != nil {
......@@ -262,29 +265,20 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
return
}
}
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
extension AppDelegate: UNUserNotificationCenterDelegate {
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
if response.actionIdentifier == UNNotificationDefaultActionIdentifier {
let notification = response.notification
NotificationCenter.default.post(name: Notification.Name(rawValue: "openAlert"), object: notification)
}
completionHandler()
}
func userNotificationCenter(_ center: UNUserNotificationCenter, openSettingsFor notification: UNNotification?) {
NotificationCenter.default.post(Notification(name: Notification.Name(rawValue: "launchToNotificationSettings"), object: notification, userInfo: nil))
}
}
......@@ -565,60 +565,6 @@
</objects>
<point key="canvasLocation" x="-6034.3999999999996" y="-349.47526236881561"/>
</scene>
<!--Alert Detail View Controller-->
<scene sceneID="fvA-S0-fxZ">
<objects>
<viewController storyboardIdentifier="alertDetail" useStoryboardIdentifierAsRestorationIdentifier="YES" id="CQV-Ih-fJc" customClass="AlertDetailViewController" customModule="WhatsOpen" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="qgs-Jx-pkN">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Major Alert" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumScaleFactor="0.80000000000000004" translatesAutoresizingMaskIntoConstraints="NO" id="uww-Cq-IAo">