Skip to content

Commit

Permalink
Work checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
below committed Jul 29, 2022
1 parent 7ec4995 commit 15c9e19
Show file tree
Hide file tree
Showing 10 changed files with 298 additions and 156 deletions.
8 changes: 4 additions & 4 deletions GeofenceTester.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@
objects = {

/* Begin PBXBuildFile section */
CB268BA0285A19DC00B16C3A /* PersistantStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB268B9F285A19DC00B16C3A /* PersistantStorage.swift */; };
CB655F6628534E2600EBCABA /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB655F6528534E2600EBCABA /* AppDelegate.swift */; };
CB655F6828534E2600EBCABA /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB655F6728534E2600EBCABA /* SceneDelegate.swift */; };
CB655F6A28534E2600EBCABA /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB655F6928534E2600EBCABA /* ViewController.swift */; };
CB655F6D28534E2600EBCABA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CB655F6B28534E2600EBCABA /* Main.storyboard */; };
CB655F6F28534E2700EBCABA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CB655F6E28534E2700EBCABA /* Assets.xcassets */; };
CB655F7228534E2700EBCABA /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CB655F7028534E2700EBCABA /* LaunchScreen.storyboard */; };
CB655F7C2856854E00EBCABA /* RegionsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB655F7B2856854E00EBCABA /* RegionsTableViewController.swift */; };
CB655F7E2856A43B00EBCABA /* RegionsDetailControllerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB655F7D2856A43B00EBCABA /* RegionsDetailControllerViewController.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
CB268B9F285A19DC00B16C3A /* PersistantStorage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PersistantStorage.swift; sourceTree = "<group>"; };
CB655F6228534E2600EBCABA /* GeofenceTester.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GeofenceTester.app; sourceTree = BUILT_PRODUCTS_DIR; };
CB655F6528534E2600EBCABA /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
CB655F6728534E2600EBCABA /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
Expand All @@ -26,7 +27,6 @@
CB655F6E28534E2700EBCABA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
CB655F7128534E2700EBCABA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
CB655F7328534E2700EBCABA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
CB655F7B2856854E00EBCABA /* RegionsTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RegionsTableViewController.swift; sourceTree = "<group>"; };
CB655F7D2856A43B00EBCABA /* RegionsDetailControllerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RegionsDetailControllerViewController.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -63,8 +63,8 @@
CB655F6528534E2600EBCABA /* AppDelegate.swift */,
CB655F6728534E2600EBCABA /* SceneDelegate.swift */,
CB655F6928534E2600EBCABA /* ViewController.swift */,
CB655F7B2856854E00EBCABA /* RegionsTableViewController.swift */,
CB655F7D2856A43B00EBCABA /* RegionsDetailControllerViewController.swift */,
CB268B9F285A19DC00B16C3A /* PersistantStorage.swift */,
CB655F6B28534E2600EBCABA /* Main.storyboard */,
CB655F6E28534E2700EBCABA /* Assets.xcassets */,
CB655F7028534E2700EBCABA /* LaunchScreen.storyboard */,
Expand Down Expand Up @@ -146,9 +146,9 @@
files = (
CB655F6A28534E2600EBCABA /* ViewController.swift in Sources */,
CB655F6628534E2600EBCABA /* AppDelegate.swift in Sources */,
CB655F7C2856854E00EBCABA /* RegionsTableViewController.swift in Sources */,
CB655F6828534E2600EBCABA /* SceneDelegate.swift in Sources */,
CB655F7E2856A43B00EBCABA /* RegionsDetailControllerViewController.swift in Sources */,
CB268BA0285A19DC00B16C3A /* PersistantStorage.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
84 changes: 41 additions & 43 deletions GeofenceTester/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="spF-mv-FWq">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21179.7" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="spF-mv-FWq">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21169.4"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
Expand All @@ -17,7 +18,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" enabled="NO" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="VoG-xx-xJh">
<rect key="frame" x="133.5" y="147" width="147" height="31"/>
<rect key="frame" x="123" y="150.5" width="168.5" height="34.5"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Set Current Region"/>
<connections>
Expand All @@ -32,29 +33,29 @@
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Mcn-jb-Dun">
<rect key="frame" x="127.5" y="108" width="159" height="31"/>
<rect key="frame" x="115.5" y="108" width="183" height="34.5"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Get Current Location"/>
</button>
<textField opaque="NO" contentMode="scaleToFill" enabled="NO" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="9qx-GH-il9">
<rect key="frame" x="20" y="186" width="374" height="34"/>
<rect key="frame" x="20" y="193" width="374" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hLi-CB-Mcm">
<rect key="frame" x="163" y="267" width="88" height="31"/>
<rect key="frame" x="158" y="277.5" width="98.5" height="34.5"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Test Push"/>
<connections>
<action selector="testPushNotification" destination="BYZ-38-t0r" eventType="touchUpInside" id="Fhs-lq-T5j"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Jmy-JI-HeE">
<rect key="frame" x="149.5" y="228" width="115" height="31"/>
<rect key="frame" x="141.5" y="235" width="131.5" height="34.5"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="plain" title="Show Regions"/>
<connections>
<segue destination="wCN-jJ-9nF" kind="show" id="kmF-u4-CXE"/>
<segue destination="Mm7-Ts-hYc" kind="show" id="tMQ-V7-XaU"/>
</connections>
</button>
</subviews>
Expand Down Expand Up @@ -89,37 +90,30 @@
</objects>
<point key="canvasLocation" x="-72" y="80"/>
</scene>
<!--Regions Table View Controller-->
<scene sceneID="fox-by-NQx">
<!--View Controller-->
<scene sceneID="YKZ-k1-aQM">
<objects>
<tableViewController id="wCN-jJ-9nF" customClass="RegionsTableViewController" customModule="GeofenceTester" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" id="SDU-K0-9kQ">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<viewController id="abz-U4-dF9" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Xr6-ey-GEK">
<rect key="frame" x="0.0" y="0.0" width="414" height="842"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="pRa-cH-jsG">
<rect key="frame" x="170" y="388" width="74" height="35"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="Button"/>
<buttonConfiguration key="configuration" style="filled" title="Delete">
<color key="baseBackgroundColor" systemColor="systemRedColor"/>
</buttonConfiguration>
</button>
</subviews>
<viewLayoutGuide key="safeArea" id="Vg1-62-cZ1"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="RegionCell" id="3Gl-gk-AA6">
<rect key="frame" x="0.0" y="44.5" width="414" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="3Gl-gk-AA6" id="Lnh-Dn-gak">
<rect key="frame" x="0.0" y="0.0" width="414" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
</tableViewCellContentView>
<connections>
<segue destination="Mm7-Ts-hYc" kind="show" id="Vjg-7e-b8Q"/>
</connections>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="wCN-jJ-9nF" id="bAy-u6-i5M"/>
<outlet property="delegate" destination="wCN-jJ-9nF" id="p8b-Lw-w3V"/>
</connections>
</tableView>
<navigationItem key="navigationItem" id="kIJ-LN-iGW"/>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="5bl-uB-JiD" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="USa-UM-Vqe" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="880" y="80"/>
<point key="canvasLocation" x="-72" y="878"/>
</scene>
<!--Regions Detail Controller View Controller-->
<scene sceneID="Muk-EI-eLV">
Expand All @@ -129,8 +123,8 @@
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<mapView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" mapType="standard" translatesAutoresizingMaskIntoConstraints="NO" id="PTq-kR-Xju">
<rect key="frame" x="20" y="88" width="374" height="774"/>
<mapView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" mapType="standard" showsUserLocation="YES" translatesAutoresizingMaskIntoConstraints="NO" id="PTq-kR-Xju">
<rect key="frame" x="0.0" y="88" width="414" height="808"/>
<connections>
<outlet property="delegate" destination="Mm7-Ts-hYc" id="XWT-AW-D1g"/>
</connections>
Expand All @@ -139,20 +133,21 @@
<viewLayoutGuide key="safeArea" id="Cgu-SU-7L9"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="PTq-kR-Xju" firstAttribute="bottom" secondItem="Cgu-SU-7L9" secondAttribute="bottom" id="DpO-kA-8Eb"/>
<constraint firstItem="PTq-kR-Xju" firstAttribute="top" secondItem="Cgu-SU-7L9" secondAttribute="top" id="Zl5-yo-yjU"/>
<constraint firstItem="Cgu-SU-7L9" firstAttribute="trailing" secondItem="PTq-kR-Xju" secondAttribute="trailing" constant="20" id="cVJ-tE-JWC"/>
<constraint firstItem="PTq-kR-Xju" firstAttribute="leading" secondItem="Cgu-SU-7L9" secondAttribute="leading" constant="20" id="ljU-vx-Efw"/>
<constraint firstItem="PTq-kR-Xju" firstAttribute="bottom" secondItem="Lrv-Dt-3tV" secondAttribute="bottom" id="DpO-kA-8Eb"/>
<constraint firstItem="PTq-kR-Xju" firstAttribute="top" secondItem="Lrv-Dt-3tV" secondAttribute="top" constant="88" id="Zl5-yo-yjU"/>
<constraint firstAttribute="trailing" secondItem="PTq-kR-Xju" secondAttribute="trailing" id="cVJ-tE-JWC"/>
<constraint firstItem="PTq-kR-Xju" firstAttribute="leading" secondItem="Cgu-SU-7L9" secondAttribute="leading" id="ljU-vx-Efw"/>
</constraints>
</view>
<navigationItem key="navigationItem" id="1LR-FO-FdF"/>
<connections>
<outlet property="mapView" destination="PTq-kR-Xju" id="Xpb-Pa-2kJ"/>
<segue destination="abz-U4-dF9" kind="showDetail" identifier="RegionDetail" id="r59-b2-f5b"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="8T9-hw-ljf" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1876.8115942028987" y="79.6875"/>
<point key="canvasLocation" x="-997" y="878"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="E3L-WX-VYA">
Expand All @@ -173,10 +168,13 @@
</scenes>
<resources>
<systemColor name="labelColor">
<color white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
<systemColor name="systemRedColor">
<color red="1" green="0.23137254901960785" blue="0.18823529411764706" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources>
</document>
5 changes: 5 additions & 0 deletions GeofenceTester/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
</array>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>This is a region monitoring testing app. It needs background location updates</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>gps</string>
<string>location-services</string>
</array>
<key>NSLocationWhenInUseUsageDescription</key>
<string>In Use will not do the trick</string>
</dict>
Expand Down
Loading

0 comments on commit 15c9e19

Please sign in to comment.