Skip to content

Commit

Permalink
Merge pull request #218 from Esri/hotfix_v1.1.2
Browse files Browse the repository at this point in the history
Hotfix v1.1.2
  • Loading branch information
mhdostal authored Nov 8, 2019
2 parents 9f76916 + 9a8a0f0 commit 42fc43d
Show file tree
Hide file tree
Showing 24 changed files with 1,267 additions and 6 deletions.
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Release 1.1.2

- Fix for [iPad crash](https://github.com/Esri/data-collection-ios/issues/209).
- Fix for [illegal attachment name characters](https://github.com/Esri/data-collection-ios/issues/188).
- Adds [app documentation](/docs/index.md) from the ArcGIS for Developers site.

# Release 1.1.1

- Support for iOS 13
Expand Down
2 changes: 1 addition & 1 deletion data-collection/Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.1</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand Down
2 changes: 2 additions & 0 deletions data-collection/data-collection.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1747,6 +1747,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Resources/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.1.2;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = "com.esri.arcgisruntime-example-apps.data-collection";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -1769,6 +1770,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Resources/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.1.2;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = "com.esri.arcgisruntime-example-apps.data-collection";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,16 @@ public struct ImagePickerPermissions {

let viewController = delegate.imagePickerPermissionsRequestsPresentingViewController()

let alertController = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
let style: UIAlertController.Style
if #available(iOS 13.0, *) {
// In iOS 12.x, this used to crash without using `.alert` or setting either
// a UIBarButtonItem or sourceView and rect. Fixed in iOS 13.
style = .actionSheet
}
else {
style = .alert
}
let alertController = UIAlertController(title: nil, message: nil, preferredStyle: style)

for permission in permissions {

Expand All @@ -184,9 +193,9 @@ public struct ImagePickerPermissions {

alertController.addAction(alertAction)
}

alertController.addAction(.cancel())

viewController.present(alertController, animated: true)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class AppContainerViewController: UIViewController {
}

@IBAction func userTapsRightButton(_ sender: Any) {
mapViewController?.userRequestsAddNewFeature()
mapViewController?.userRequestsAddNewFeature(sender as? UIBarButtonItem)
}

override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extension MapViewController {

// MARK : New Feature

func userRequestsAddNewFeature() {
func userRequestsAddNewFeature(_ barButtonItem: UIBarButtonItem?) {

guard mapViewMode != .disabled else {
return
Expand Down Expand Up @@ -78,6 +78,7 @@ extension MapViewController {

action.addAction(.cancel())

action.popoverPresentationController?.barButtonItem = barButtonItem
present(action, animated: true, completion: nil)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ class RichPopupEditStagedAttachmentViewController: UITableViewController, UIText
return true
}

func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
return string.rangeOfCharacter(from: CharacterSet(charactersIn: #"^\:/*?"<>|"#)) == nil
}

// MARK: Table View Mapping

private func cellForMappedAttachmentSize(_ desiredSize: AGSPopupAttachmentSize) -> UITableViewCell? {
Expand Down
Binary file added docs/images/add-feature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/anatomy-app-context-drawer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/anatomy-identified-feature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/anatomy-map-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/anatomy-new-feature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/anatomy-offline-extent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/anatomy-popup-edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/anatomy-popup-view-relationships.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/anatomy-popup-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/anatomy-small-popup-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/configure-url-type.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/dataset-schema.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/featured-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/hamburger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/identity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/zoom-to-location.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,239 changes: 1,239 additions & 0 deletions docs/index.md

Large diffs are not rendered by default.

0 comments on commit 42fc43d

Please sign in to comment.