Skip to content

Commit

Permalink
Ignore taps on API endpoint setting
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlang committed Sep 10, 2022
1 parent 377c471 commit 9fa6af6
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 9fa6af6

Please sign in to comment.