Skip to content

Commit deed5a8

Browse files
committed
SDK-1831 add plugin api to get json value from native sdk
1 parent 566af01 commit deed5a8

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

BranchSDK/BranchPluginSupport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ NS_ASSUME_NONNULL_BEGIN
1313
@interface BranchPluginSupport : NSObject
1414

1515
+ (BranchPluginSupport *)instance;
16+
1617
- (NSDictionary<NSString *, NSString *> *)deviceDescription;
1718

19+
- (BOOL)deferInitForPlugin;
20+
1821
@end
1922

2023
NS_ASSUME_NONNULL_END

BranchSDK/BranchPluginSupport.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#import "NSMutableDictionary+Branch.h"
1111
#import "BNCDeviceInfo.h"
1212
#import "BNCPreferenceHelper.h"
13+
#import "BranchJsonConfig.h"
1314

1415
@interface BranchPluginSupport()
1516

@@ -53,4 +54,12 @@ + (BranchPluginSupport *)instance {
5354
return dictionary;
5455
}
5556

57+
- (BOOL)deferInitForPlugin {
58+
BranchJsonConfig *config = BranchJsonConfig.instance;
59+
if (config.deferInitForPlugin) {
60+
return YES;
61+
}
62+
return NO;
63+
}
64+
5665
@end

0 commit comments

Comments
 (0)