Skip to content

Commit c59c809

Browse files
authored
Merge pull request #84 from protect-earth/al/83
2 parents dd12ea8 + 81c7d40 commit c59c809

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

Tree Tracker/AppDelegate.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
99
let config = RollbarConfig()
1010
config.destination.accessToken = Secrets.rollbarAuthToken
1111
config.destination.environment = Constants.Http.protectEarthEnvironmentName
12+
config.person.id = UIDevice.current.identifierForVendor?.uuidString ?? "unknown"
1213

1314
Rollbar.initWithConfiguration(config)
1415
Rollbar.infoMessage("App startup")

Tree Tracker/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>0.10.3</string>
20+
<string>0.10.4</string>
2121
<key>CFBundleVersion</key>
2222
<string>$(CURRENT_PROJECT_VERSION)</string>
2323
<key>ITSAppUsesNonExemptEncryption</key>

Tree Tracker/Screens/Settings/SettingsController.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SettingsController: UITableViewController {
2424

2525
// MARK: - Datasource
2626
override func numberOfSections(in tableView: UITableView) -> Int {
27-
return 2
27+
return 3
2828
}
2929

3030
override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
@@ -33,6 +33,8 @@ class SettingsController: UITableViewController {
3333
return "Entities"
3434
case 1:
3535
return "API"
36+
case 2:
37+
return "Device ID"
3638
default:
3739
return "Error"
3840
}
@@ -44,6 +46,8 @@ class SettingsController: UITableViewController {
4446
return entityTypes.count
4547
case 1:
4648
return apiProperties.count
49+
case 2:
50+
return 1
4751
default:
4852
return 0
4953
}
@@ -58,6 +62,9 @@ class SettingsController: UITableViewController {
5862
case 1:
5963
cell.textLabel?.text = apiProperties[indexPath.item]
6064
cell.selectionStyle = .none
65+
case 2:
66+
cell.textLabel?.text = UIDevice.current.identifierForVendor?.uuidString ?? "unknown"
67+
cell.selectionStyle = .none
6168
default:
6269
break
6370
}

Unit Tests/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.10.3</string>
18+
<string>0.10.4</string>
1919
<key>CFBundleVersion</key>
2020
<string>1</string>
2121
</dict>

0 commit comments

Comments
 (0)