Skip to content

Commit 21bc9ad

Browse files
committed
2.0.6
Upgrade to 2.0.8 of SDK to correct an observation having no forms but an event does Fix bug in KeyboradConstraint when the view has already transitioned but the keyboard is still going away
1 parent 5adc0ad commit 21bc9ad

File tree

6 files changed

+29
-22
lines changed

6 files changed

+29
-22
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file.
33
Adheres to [Semantic Versioning](http://semver.org/).
44

55
---
6+
## 2.0.6 (https://github.com/ngageoint/mage-ios/releases/tag/2.0.6) (TBD)
7+
8+
##### Bug Fixes
9+
10+
* Upgrade to 2.0.8 SDK which fixes the case where an observation has no forms but an event does
11+
* No more crashing when signing up for an account
12+
613
## 2.0.5 (https://github.com/ngageoint/mage-ios/releases/tag/2.0.5) (TBD)
714

815
##### Release Notes

MAGE.xcodeproj/xcshareddata/xcschemes/MAGE.xcscheme

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626
buildConfiguration = "Debug"
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29-
language = ""
30-
shouldUseLaunchSchemeArgsEnv = "YES"
31-
codeCoverageEnabled = "YES">
29+
codeCoverageEnabled = "YES"
30+
shouldUseLaunchSchemeArgsEnv = "YES">
3231
<Testables>
3332
<TestableReference
3433
skipped = "NO">
@@ -57,13 +56,12 @@
5756
buildConfiguration = "Debug"
5857
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5958
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
60-
language = ""
6159
launchStyle = "0"
6260
useCustomWorkingDirectory = "NO"
6361
ignoresPersistentStateOnLaunch = "NO"
6462
debugDocumentVersioning = "YES"
6563
debugServiceExtension = "internal"
66-
allowLocationSimulation = "NO">
64+
allowLocationSimulation = "YES">
6765
<BuildableProductRunnable
6866
runnableDebuggingMode = "0">
6967
<BuildableReference
@@ -77,7 +75,7 @@
7775
<AdditionalOptions>
7876
</AdditionalOptions>
7977
<LocationScenarioReference
80-
identifier = "Rio de Janeiro, Brazil"
78+
identifier = "com.apple.dt.IDEFoundation.CurrentLocationScenarioIdentifier"
8179
referenceType = "1">
8280
</LocationScenarioReference>
8381
</LaunchAction>

Mage/KeyboardConstraint.m

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@ -(void)keyboardDidShow: (NSNotification *) notification {
4141
dispatch_async(dispatch_get_main_queue(), ^{
4242
UITableView *table = self.secondItem;
4343
UIView *responder = [UIResponder currentFirstResponder];
44+
if (responder) {
4445
UIView *cell = responder.superview;
45-
while (cell != nil && ![cell isKindOfClass:[UITableViewCell class]]) {
46-
cell = cell.superview;
47-
}
48-
if (cell != nil) {
49-
CGRect textFieldRect = [table convertRect:cell.bounds fromView:cell];
50-
[table scrollRectToVisible:textFieldRect animated:NO];
46+
while (cell != nil && ![cell isKindOfClass:[UITableViewCell class]]) {
47+
cell = cell.superview;
48+
}
49+
if (cell != nil) {
50+
CGRect textFieldRect = [table convertRect:cell.bounds fromView:cell];
51+
[table scrollRectToVisible:textFieldRect animated:NO];
52+
}
5153
}
5254

5355
});

Mage/MAGE-Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<key>CFBundlePackageType</key>
3333
<string>APPL</string>
3434
<key>CFBundleShortVersionString</key>
35-
<string>2.0.5</string>
35+
<string>2.0.6</string>
3636
<key>CFBundleSignature</key>
3737
<string>????</string>
3838
<key>CFBundleURLTypes</key>
@@ -58,6 +58,8 @@
5858
<string></string>
5959
<key>LSRequiresIPhoneOS</key>
6060
<true/>
61+
<key>LSSupportsOpeningDocumentsInPlace</key>
62+
<true/>
6163
<key>NSAppTransportSecurity</key>
6264
<dict>
6365
<key>NSAllowsArbitraryLoads</key>
@@ -73,8 +75,6 @@
7375
<string>Save photos/videos you take to the photo libarary so you can access them outside of MAGE.</string>
7476
<key>NSPhotoLibraryUsageDescription</key>
7577
<string>MAGE uses the photo library to save photos/videos as well as attach already captured photos/videos.</string>
76-
<key>LSSupportsOpeningDocumentsInPlace</key>
77-
<true/>
7878
<key>UIAppFonts</key>
7979
<array>
8080
<string>Roboto-Medium.ttf</string>

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ target 'MAGE' do
1111
pod 'UIImage-Categories', '~> 0.0.1'
1212
pod 'HexColors', '~> 2.2.1'
1313
pod 'GoogleSignIn'
14-
pod 'mage-ios-sdk', :git => 'https://github.com/ngageoint/mage-ios-sdk.git', :tag=> '2.0.7'
14+
pod 'mage-ios-sdk', :git => 'https://github.com/ngageoint/mage-ios-sdk.git', :tag=> '2.0.8'
1515
#pod 'mage-ios-sdk', :git => 'https://github.com/ngageoint/mage-ios-sdk.git', :branch=> 'develop'
1616
#pod 'mage-ios-sdk', :path => '../mage-ios-sdk'
1717
pod 'mgrs', '~>0.1.0'

Podfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ PODS:
4444
- HexColors (2.2.1)
4545
- KTCenterFlowLayout (1.3.1)
4646
- libPhoneNumber-iOS (0.9.13)
47-
- mage-ios-sdk (2.0.7):
47+
- mage-ios-sdk (2.0.8):
4848
- AFNetworking (~> 3.2.1)
4949
- DateTools (~> 2.0.0)
5050
- geopackage-ios (~> 1.3.0)
@@ -85,7 +85,7 @@ DEPENDENCIES:
8585
- HexColors (~> 2.2.1)
8686
- KTCenterFlowLayout
8787
- libPhoneNumber-iOS (~> 0.8)
88-
- mage-ios-sdk (from `https://github.com/ngageoint/mage-ios-sdk.git`, tag `2.0.7`)
88+
- mage-ios-sdk (from `https://github.com/ngageoint/mage-ios-sdk.git`, tag `2.0.8`)
8989
- mgrs (~> 0.1.0)
9090
- OCMock
9191
- OHHTTPStubs
@@ -124,12 +124,12 @@ SPEC REPOS:
124124
EXTERNAL SOURCES:
125125
mage-ios-sdk:
126126
:git: https://github.com/ngageoint/mage-ios-sdk.git
127-
:tag: 2.0.7
127+
:tag: 2.0.8
128128

129129
CHECKOUT OPTIONS:
130130
mage-ios-sdk:
131131
:git: https://github.com/ngageoint/mage-ios-sdk.git
132-
:tag: 2.0.7
132+
:tag: 2.0.8
133133

134134
SPEC CHECKSUMS:
135135
AFNetworking: b6f891fdfaed196b46c7a83cf209e09697b94057
@@ -144,7 +144,7 @@ SPEC CHECKSUMS:
144144
HexColors: abfd172e329dab59888614ccba6f216cec59289d
145145
KTCenterFlowLayout: 6e02b50ab2bd865025ae82fe266ed13b6d9eaf97
146146
libPhoneNumber-iOS: e444379ac18bbfbdefad571da735b2cd7e096caa
147-
mage-ios-sdk: b60693076c9e5c64047698123abc45c61e5ab2b0
147+
mage-ios-sdk: e2e9dba2c10d2409a46dd1ce6f3aef0b264d73c4
148148
MagicalRecord: 53bed74b4323b930992a725be713e53b37d19755
149149
mgrs: c4b57f8c27ee1f4939be117f4a683e680c127326
150150
objective-zip: 41b1408cebffceb6b9d15ad691506707e390d359
@@ -158,6 +158,6 @@ SPEC CHECKSUMS:
158158
wkb-ios: 7a2678852f9c4d166048a7277df37d4d2af5436b
159159
zxcvbn-ios: fef98b7c80f1512ff0eec47ac1fa399fc00f7e3c
160160

161-
PODFILE CHECKSUM: f7ac1988c297029a737d60440415b47345679e5e
161+
PODFILE CHECKSUM: 3c6abbf3860e330687ac2c4688851b0a3e00ac3c
162162

163163
COCOAPODS: 1.5.3

0 commit comments

Comments
 (0)