Skip to content

Commit 8fff4f0

Browse files
author
Edward Smith
committed
Merge branch 'QA' of github.com:BranchMetrics/ios-branch-deep-linking into staging
2 parents c6ba481 + b6bf00a commit 8fff4f0

File tree

8 files changed

+20
-25
lines changed

8 files changed

+20
-25
lines changed

Branch-SDK/Branch-SDK/BNCConfig.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
BOOL const BNC_API_PINNED = YES;
1313
NSString * const BNC_API_VERSION = @"v1";
1414
NSString * const BNC_LINK_URL = @"https://bnc.lt";
15-
NSString * const BNC_SDK_VERSION = @"0.21.15";
15+
NSString * const BNC_SDK_VERSION = @"0.21.16";

Branch-SDK/Branch-SDK/BNCSystemObserver.m

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -214,24 +214,16 @@ + (BNCUpdateState) updateStateWithBuildDate:(NSDate*)buildDate
214214
storedAppVersion:(NSString*)storedAppVersion
215215
currentAppVersion:(NSString*)currentAppVersion {
216216

217-
if ([UIDevice currentDevice].systemVersion.floatValue > 10.3 &&
218-
storedAppVersion.length <= 0) {
219-
// iOS version greater than 10.2 and 10.3 since there were update problems there.
220-
//
221-
// Doesn't count re-installs or some enterprise distribution schemes.
222-
// This solves the case where a user installs the app, doesn't run it,
223-
// updates the app, then runs the app. These were being counted as updates
224-
// rather than installs.
225-
return BNCUpdateStateInstall;
226-
}
227-
228217
if (storedAppVersion) {
229218
if (currentAppVersion && [storedAppVersion isEqualToString:currentAppVersion])
230219
return BNCUpdateStateNonUpdate;
231220
else
232221
return BNCUpdateStateUpdate;
233222
}
234223

224+
// If there isn't a stored app version it might be because Branch is just starting to be used in
225+
// this project. So use the app dates to figure out if this is a new install or an update.
226+
235227
if (buildDate && [buildDate timeIntervalSince1970] <= 0.0) {
236228
// Invalid buildDate.
237229
buildDate = nil;
@@ -241,15 +233,18 @@ + (BNCUpdateState) updateStateWithBuildDate:(NSDate*)buildDate
241233
appInstallDate = nil;
242234
}
243235

244-
if (!(buildDate && appInstallDate)) {
236+
// If app dates can't be found it may be because iOS isn't reporting them.
237+
if (buildDate == nil || appInstallDate == nil) {
238+
BNCLogError(@"Please report this to Branch: Build date is %@ and install date is %@. iOS version %@.",
239+
buildDate, appInstallDate, [UIDevice currentDevice].systemVersion);
245240
return BNCUpdateStateInstall;
246241
}
247242

248243
if ([buildDate compare:appInstallDate] > 0) {
249244
return BNCUpdateStateUpdate;
250245
}
251246

252-
if ([appInstallDate timeIntervalSinceNow] > (-60.0 * 60.0 * 24.0)) {
247+
if ([appInstallDate timeIntervalSinceNow] > (-7.0 * 24.0 * 60.0 * 60.0)) {
253248
return BNCUpdateStateInstall;
254249
}
255250

Branch-TestBed/Framework-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>FMWK</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>0.21.15</string>
20+
<string>0.21.16</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>0.21.15</string>
24+
<string>0.21.16</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
2727
<key>NSHumanReadableCopyright</key>

Branch.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Branch"
3-
s.version = "0.21.15"
3+
s.version = "0.21.16"
44
s.summary = "Create an HTTP URL for any piece of content in your app"
55
s.description = <<-DESC
66
- Want the highest possible conversions on your sharing feature?

ChangeLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Branch iOS SDK Change Log
22

3-
- v0.21.15
3+
- v0.21.16
44
* _*Master Release*_ - December 18, 2017
55
* Fixed the BranchUniversalObject for v2-events & Updated the UITestBed. (#768)
66
* Fix update / install tracking when app installed but not run for a while. (#763)

Examples/WebViewExample/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PODS:
2-
- Branch (0.21.14):
3-
- Branch/Core (= 0.21.14)
4-
- Branch/Core (0.21.14)
2+
- Branch (0.21.15):
3+
- Branch/Core (= 0.21.15)
4+
- Branch/Core (0.21.15)
55
- Cartography (3.0.1)
66
- MBProgressHUD (1.1.0)
77

@@ -15,7 +15,7 @@ EXTERNAL SOURCES:
1515
:path: ../..
1616

1717
SPEC CHECKSUMS:
18-
Branch: 1d09c85256236f067dfa96944709f1f011ec17c0
18+
Branch: ef9a9e74484e135beb9aa759a3174845a35f1795
1919
Cartography: f8c899bb0f5cf20758644a8eea59a75e98a03a5d
2020
MBProgressHUD: e7baa36a220447d8aeb12769bf0585582f3866d9
2121

carthage-files/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.21.15</string>
18+
<string>0.21.16</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>0.21.15</string>
22+
<string>0.21.16</string>
2323
<key>NSPrincipalClass</key>
2424
<string></string>
2525
</dict>

scripts/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Options:
3131
USAGE
3232
}
3333

34-
version=0.21.15
34+
version=0.21.16
3535

3636
if (( $# == 0 )); then
3737
echo $version

0 commit comments

Comments
 (0)