Skip to content

Commit 1ac3525

Browse files
committed
* Error fixes
* Added analytics
1 parent e24f804 commit 1ac3525

File tree

6 files changed

+11
-22
lines changed

6 files changed

+11
-22
lines changed

GeofenceTester.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@
379379
"$(inherited)",
380380
"@executable_path/Frameworks",
381381
);
382-
MARKETING_VERSION = 1.1;
382+
MARKETING_VERSION = 1.1.1;
383383
PRODUCT_BUNDLE_IDENTIFIER = com.telekom.below.GeofenceTester;
384384
PRODUCT_NAME = "$(TARGET_NAME)";
385385
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -410,7 +410,7 @@
410410
"$(inherited)",
411411
"@executable_path/Frameworks",
412412
);
413-
MARKETING_VERSION = 1.1;
413+
MARKETING_VERSION = 1.1.1;
414414
PRODUCT_BUNDLE_IDENTIFIER = com.telekom.below.GeofenceTester;
415415
PRODUCT_NAME = "$(TARGET_NAME)";
416416
SWIFT_EMIT_LOC_STRINGS = YES;

GeofenceTester/Base.lproj/Main.storyboard

+7-3
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@
125125
<nil key="textColor"/>
126126
<nil key="highlightedColor"/>
127127
</label>
128-
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="pYo-z7-B7n">
129-
<rect key="frame" x="84" y="773" width="248" height="35"/>
130-
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
128+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="pYo-z7-B7n">
129+
<rect key="frame" x="100.5" y="777" width="213.5" height="31"/>
131130
<state key="normal" title="Button"/>
132131
<buttonConfiguration key="configuration" style="plain" title="Contact Alexander von Below"/>
133132
<connections>
@@ -141,13 +140,18 @@
141140
<constraint firstItem="Uh8-Vt-H18" firstAttribute="leading" secondItem="aSJ-3D-P8v" secondAttribute="leading" constant="20" id="B4L-Dc-wpp"/>
142141
<constraint firstAttribute="trailing" secondItem="9CP-Ze-oHL" secondAttribute="trailing" constant="20" symbolic="YES" id="E7T-Mm-gI6"/>
143142
<constraint firstItem="eMq-lx-nFN" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="Uh8-Vt-H18" secondAttribute="trailing" constant="8" symbolic="YES" id="G1a-RN-7uU"/>
143+
<constraint firstItem="aSJ-3D-P8v" firstAttribute="bottom" secondItem="pYo-z7-B7n" secondAttribute="bottom" constant="34" id="Nb9-9D-GSn"/>
144144
<constraint firstItem="9CP-Ze-oHL" firstAttribute="leading" secondItem="aSJ-3D-P8v" secondAttribute="leading" constant="20" id="PMu-Be-mDZ"/>
145145
<constraint firstItem="eMq-lx-nFN" firstAttribute="top" secondItem="HWG-Yu-6t4" secondAttribute="topMargin" constant="39" id="QAl-jS-DcR"/>
146146
<constraint firstItem="aSJ-3D-P8v" firstAttribute="trailing" secondItem="eMq-lx-nFN" secondAttribute="trailing" constant="20" id="WiV-jt-ech"/>
147147
<constraint firstItem="9CP-Ze-oHL" firstAttribute="top" secondItem="eMq-lx-nFN" secondAttribute="bottom" constant="8" symbolic="YES" id="X9W-Wb-2C5"/>
148148
<constraint firstItem="eMq-lx-nFN" firstAttribute="centerY" secondItem="Uh8-Vt-H18" secondAttribute="centerY" id="q8X-TL-DZ0"/>
149+
<constraint firstItem="pYo-z7-B7n" firstAttribute="centerX" secondItem="HWG-Yu-6t4" secondAttribute="centerX" id="tj3-gn-xNo"/>
149150
</constraints>
150151
</view>
152+
<connections>
153+
<outlet property="pauseSwitch" destination="eMq-lx-nFN" id="NXw-JK-yun"/>
154+
</connections>
151155
</viewController>
152156
<placeholder placeholderIdentifier="IBFirstResponder" id="1VJ-An-WBD" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
153157
</objects>

GeofenceTester/Info.plist

-9
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,5 @@
2525
<array>
2626
<string>location</string>
2727
</array>
28-
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
29-
<string>This is a region monitoring testing app. It needs background location updates</string>
30-
<key>UIRequiredDeviceCapabilities</key>
31-
<array>
32-
<string>gps</string>
33-
<string>location-services</string>
34-
</array>
35-
<key>NSLocationWhenInUseUsageDescription</key>
36-
<string>In Use will not do the trick</string>
3728
</dict>
3829
</plist>

GeofenceTester/RegionDetailViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import AppCenterAnalytics
1313
class RegionDetailViewController: UIViewController, Loggable, LocationUser {
1414

1515
var locationManager: CLLocationManager!
16-
var logger: Logger!
16+
var logger: os.Logger!
1717

1818
@IBOutlet var identifierField: UITextField!
1919
@IBOutlet var radiusLabel: UILabel!

GeofenceTester/RegionsListViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class RegionsListViewController: UIViewController {
1616

1717
var locationManager: CLLocationManager = CLLocationManager()
1818
var storage = PersistantStorage<EventRecord>()
19-
private var logger = Logger()
19+
private var logger = os.Logger()
2020

2121
@IBOutlet var mapView: MKMapView!
2222
@IBOutlet var addButton: UIBarButtonItem!

MyPlayground.playground/timeline.xctimeline

-6
This file was deleted.

0 commit comments

Comments
 (0)