File tree Expand file tree Collapse file tree 7 files changed +40
-9
lines changed
Branch-TestBed/Branch-SDK-Tests Expand file tree Collapse file tree 7 files changed +40
-9
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ - (id)unarchiveObjectFromData:(NSData *)data;
2525// returns data in the legacy format
2626- (NSData *)oldArchiveQueue : (NSArray <BNCServerRequest *> *)queue ;
2727
28+ + (NSURL * _Nonnull) URLForQueueFile ;
29+ - (void )retrieve ;
30+
2831@end
2932
3033@interface BNCServerRequestQueueTests : XCTestCase
@@ -157,4 +160,27 @@ - (void)testOldArchiveArrayOfInvalidObjects {
157160 XCTAssert (unarchived.count == 2 );
158161}
159162
163+ - (void )testMultipleRequests {
164+ BranchEventRequest *eventObject = [BranchEventRequest new ];
165+ BranchOpenRequest *openObject = [BranchOpenRequest new ];
166+
167+ [_queue enqueue: eventObject];
168+ [_queue enqueue: openObject];
169+ [_queue persistImmediately ];
170+
171+ NSMutableArray *decodedQueue = nil ;
172+ NSData *data = [NSData dataWithContentsOfURL: [BNCServerRequestQueue URLForQueueFile ] options: 0 error: nil ];
173+ if (data) {
174+ decodedQueue = [_queue unarchiveQueueFromData: data];
175+ }
176+ XCTAssert ([decodedQueue count ] == 2 );
177+ [_queue clearQueue ];
178+ XCTAssert ([_queue queueDepth ] == 0 );
179+ [_queue retrieve ];
180+ XCTAssert ([_queue queueDepth ] == 2 );
181+
182+ // Request are loaded. So there should not be any queue file on disk.
183+ XCTAssert ([NSFileManager .defaultManager fileExistsAtPath: [[BNCServerRequestQueue URLForQueueFile ] path ]] == NO );
184+ }
185+
160186@end
Original file line number Diff line number Diff line change 11Pod ::Spec . new do |s |
22 s . name = "BranchSDK"
3- s . version = "3.6.2 "
3+ s . version = "3.6.3 "
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?
Original file line number Diff line number Diff line change 19741974 "@executable_path/Frameworks",
19751975 "@loader_path/Frameworks",
19761976 );
1977- MARKETING_VERSION = 3.6.2 ;
1977+ MARKETING_VERSION = 3.6.3 ;
19781978 OTHER_LDFLAGS = (
19791979 "-weak_framework",
19801980 LinkPresentation,
20092009 "@executable_path/Frameworks",
20102010 "@loader_path/Frameworks",
20112011 );
2012- MARKETING_VERSION = 3.6.2 ;
2012+ MARKETING_VERSION = 3.6.3 ;
20132013 OTHER_LDFLAGS = (
20142014 "-weak_framework",
20152015 LinkPresentation,
22152215 "@loader_path/Frameworks",
22162216 );
22172217 MACH_O_TYPE = staticlib;
2218- MARKETING_VERSION = 3.6.2 ;
2218+ MARKETING_VERSION = 3.6.3 ;
22192219 OTHER_LDFLAGS = (
22202220 "-weak_framework",
22212221 LinkPresentation,
22542254 "@loader_path/Frameworks",
22552255 );
22562256 MACH_O_TYPE = staticlib;
2257- MARKETING_VERSION = 3.6.2 ;
2257+ MARKETING_VERSION = 3.6.3 ;
22582258 OTHER_LDFLAGS = (
22592259 "-weak_framework",
22602260 LinkPresentation,
22912291 "@executable_path/Frameworks",
22922292 "@loader_path/Frameworks",
22932293 );
2294- MARKETING_VERSION = 3.6.2 ;
2294+ MARKETING_VERSION = 3.6.3 ;
22952295 OTHER_LDFLAGS = (
22962296 "-weak_framework",
22972297 LinkPresentation,
23262326 "@executable_path/Frameworks",
23272327 "@loader_path/Frameworks",
23282328 );
2329- MARKETING_VERSION = 3.6.2 ;
2329+ MARKETING_VERSION = 3.6.3 ;
23302330 OTHER_LDFLAGS = (
23312331 "-weak_framework",
23322332 LinkPresentation,
Original file line number Diff line number Diff line change 11Branch iOS SDK Change Log
22
3+ v.3.6.3
4+ - Fix for duplicate events created from archived request queue on disk.
5+
36v.3.6.2
47- Fix for issue which was sending an extra open request on cold app launch.
58- Updated fix for cold link launch when using deferred initialization and an AppDelegate only app.
Original file line number Diff line number Diff line change 88
99#include " BNCConfig.h"
1010
11- NSString * const BNC_SDK_VERSION = @" 3.6.2 " ;
11+ NSString * const BNC_SDK_VERSION = @" 3.6.3 " ;
1212NSString * const BNC_LINK_URL = @" https://bnc.lt" ;
1313NSString * const BNC_CDN_URL = @" https://cdn.branch.io" ;
1414
Original file line number Diff line number Diff line change @@ -287,6 +287,8 @@ - (void)retrieve {
287287 }
288288 }
289289 self.queue = decodedQueue;
290+ // Requests are loaded into queue now. Delete queue file stored on disk.
291+ [self removeSaveFile ];
290292 }
291293 }
292294}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Options:
3030USAGE
3131}
3232
33- version=3.6.2
33+ version=3.6.3
3434prev_version=" $version "
3535
3636if (( $# == 0 )) ; then
You can’t perform that action at this time.
0 commit comments