Skip to content

Commit

Permalink
Merge pull request #79 from protect-earth/al/notap-api-endpoint
Browse files Browse the repository at this point in the history
Ignore taps on API endpoint setting
  • Loading branch information
allanlang authored Sep 10, 2022
2 parents 377c471 + 9fa6af6 commit 4441671
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
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.1</string>
<string>0.10.2</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>ITSAppUsesNonExemptEncryption</key>
Expand Down
21 changes: 12 additions & 9 deletions Tree Tracker/Screens/Settings/SettingsController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class SettingsController: UITableViewController {
cell.textLabel?.text = entityTypes[indexPath.item]
case 1:
cell.textLabel?.text = Constants.Http.protectEarthApiBaseUrl
cell.selectionStyle = .none
default:
break
}
Expand All @@ -63,15 +64,17 @@ class SettingsController: UITableViewController {

// MARK: - Delegate
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
switch entityTypes[indexPath.item] {
case "Sites":
self.navigationController?.pushViewController(sitesController, animated: true)
case "Supervisors":
self.navigationController?.pushViewController(supervisorsController, animated: true)
case "Species":
self.navigationController?.pushViewController(speciesController, animated: true)
default:
break
if indexPath.section == 0 {
switch entityTypes[indexPath.item] {
case "Sites":
self.navigationController?.pushViewController(sitesController, animated: true)
case "Supervisors":
self.navigationController?.pushViewController(supervisorsController, animated: true)
case "Species":
self.navigationController?.pushViewController(speciesController, animated: true)
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.1</string>
<string>0.10.2</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down

0 comments on commit 4441671

Please sign in to comment.