Skip to content

Commit

Permalink
Merge pull request #84 from protect-earth/al/83
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlang authored Sep 18, 2022
2 parents dd12ea8 + 81c7d40 commit c59c809
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions Tree Tracker/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
let config = RollbarConfig()
config.destination.accessToken = Secrets.rollbarAuthToken
config.destination.environment = Constants.Http.protectEarthEnvironmentName
config.person.id = UIDevice.current.identifierForVendor?.uuidString ?? "unknown"

Rollbar.initWithConfiguration(config)
Rollbar.infoMessage("App startup")
Expand Down
2 changes: 1 addition & 1 deletion Tree Tracker/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>0.10.3</string>
<string>0.10.4</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>ITSAppUsesNonExemptEncryption</key>
Expand Down
9 changes: 8 additions & 1 deletion Tree Tracker/Screens/Settings/SettingsController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class SettingsController: UITableViewController {

// MARK: - Datasource
override func numberOfSections(in tableView: UITableView) -> Int {
return 2
return 3
}

override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
Expand All @@ -33,6 +33,8 @@ class SettingsController: UITableViewController {
return "Entities"
case 1:
return "API"
case 2:
return "Device ID"
default:
return "Error"
}
Expand All @@ -44,6 +46,8 @@ class SettingsController: UITableViewController {
return entityTypes.count
case 1:
return apiProperties.count
case 2:
return 1
default:
return 0
}
Expand All @@ -58,6 +62,9 @@ class SettingsController: UITableViewController {
case 1:
cell.textLabel?.text = apiProperties[indexPath.item]
cell.selectionStyle = .none
case 2:
cell.textLabel?.text = UIDevice.current.identifierForVendor?.uuidString ?? "unknown"
cell.selectionStyle = .none
default:
break
}
Expand Down
2 changes: 1 addition & 1 deletion Unit Tests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>0.10.3</string>
<string>0.10.4</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down

0 comments on commit c59c809

Please sign in to comment.