Skip to content

Commit 1de8afe

Browse files
committed
Updated for easier testing.
1 parent 266ab88 commit 1de8afe

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Branch-SDK/Branch-SDK/Branch.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,9 @@ - (NSDictionary *)getFirstReferringParams {
797797
NSDictionary *origInstallParams = [BNCEncodingUtils decodeJsonStringToDictionary:self.preferenceHelper.installParams];
798798

799799
if (self.deepLinkDebugParams) {
800-
NSMutableDictionary* debugInstallParams = [[BNCEncodingUtils decodeJsonStringToDictionary:self.preferenceHelper.sessionParams] mutableCopy];
800+
NSMutableDictionary* debugInstallParams =
801+
[[BNCEncodingUtils decodeJsonStringToDictionary:self.preferenceHelper.sessionParams]
802+
mutableCopy];
801803
[debugInstallParams addEntriesFromDictionary:self.deepLinkDebugParams];
802804
return debugInstallParams;
803805
}

Branch-TestBed/Branch-TestBed/ViewController.m

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,16 @@ - (IBAction) sendCommerceEvent:(id)sender {
223223
metadata:@{ @"Meta": @"Never meta dog I didn't like." }
224224
withCompletion:
225225
^ (NSDictionary *response, NSError *error) {
226-
NSLog(@"Completion called. Error: %@\n%@", error, response);
226+
NSString *message =
227+
[NSString stringWithFormat:@"Commerce completion called.\nError: %@\n%@", error, response];
228+
NSLog(@"%@", message);
229+
[[[UIAlertView alloc]
230+
initWithTitle:@"Commerce Event"
231+
message:message
232+
delegate:nil
233+
cancelButtonTitle:@"OK"
234+
otherButtonTitles:nil]
235+
show];
227236
}];
228237
}
229238

0 commit comments

Comments
 (0)