Skip to content

Commit be4d651

Browse files
committed
SDK-1831 rename variable to be consistent with android
1 parent 35b0b5a commit be4d651

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

BranchSDK/Branch.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ @interface Branch() <BranchDeepLinkingControllerCompletionDelegate> {
153153
@property (nonatomic, copy, nullable) void (^sceneSessionInitWithCallback)(BNCInitSessionResponse * _Nullable initResponse, NSError * _Nullable error);
154154

155155
// Support for deferred SDK initialization. Used to support slow plugin runtime startup.
156-
// This is enabled by setting deferInitForPlugin to true in branch.json
157-
@property (nonatomic, assign, readwrite) BOOL deferInitForPlugin;
156+
// This is enabled by setting deferInitForPluginRuntime to true in branch.json
157+
@property (nonatomic, assign, readwrite) BOOL deferInitForPluginRuntime;
158158
@property (nonatomic, copy, nullable) void (^cachedInitBlock)(void);
159159

160160
@end
@@ -231,7 +231,7 @@ - (id)initWithInterface:(BNCServerInterface *)interface
231231
[self loadUserAgent];
232232

233233
BranchJsonConfig *config = BranchJsonConfig.instance;
234-
self.deferInitForPlugin = config.deferInitForPlugin;
234+
self.deferInitForPluginRuntime = config.deferInitForPluginRuntime;
235235

236236
if (config.enableLogging) {
237237
[self enableLogging];
@@ -2148,7 +2148,7 @@ - (void)clearNetworkQueue {
21482148
- (BOOL)deferInitBlock:(void (^)(void))block {
21492149
BOOL deferred = NO;
21502150
@synchronized (self) {
2151-
if (self.deferInitForPlugin) {
2151+
if (self.deferInitForPluginRuntime) {
21522152
self.cachedInitBlock = block;
21532153
deferred = YES;
21542154
}
@@ -2163,7 +2163,7 @@ - (BOOL)deferInitBlock:(void (^)(void))block {
21632163
// Releases deferred init block
21642164
- (void)notifyNativeToInit {
21652165
@synchronized (self) {
2166-
self.deferInitForPlugin = NO;
2166+
self.deferInitForPluginRuntime = NO;
21672167
}
21682168

21692169
if (self.cachedInitBlock) {

BranchSDK/BranchJsonConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern NSString * _Nonnull const BranchJsonConfigBranchKeyOption;
1313
extern NSString * _Nonnull const BranchJsonConfigLiveKeyOption;
1414
extern NSString * _Nonnull const BranchJsonConfigTestKeyOption;
1515
extern NSString * _Nonnull const BranchJsonConfigUseTestInstanceOption;
16-
extern NSString * _Nonnull const BranchJsonConfigDeferInitForPluginOption;
16+
extern NSString * _Nonnull const BranchJsonConfigDeferInitForPluginRuntimeOption;
1717
extern NSString * _Nonnull const BranchJsonConfigEnableLogging;
1818
extern NSString * _Nonnull const BranchJsonConfigEnableFacebookLinkCheck;
1919
extern NSString * _Nonnull const BranchJsonConfigCheckPasteboardOnInstall;
@@ -27,7 +27,7 @@ extern NSString * _Nonnull const BranchJsonConfigCheckPasteboardOnInstall;
2727
@property (nonatomic, readonly, nullable, copy) NSString *liveKey;
2828
@property (nonatomic, readonly, nullable, copy) NSString *testKey;
2929
@property (nonatomic, readonly, assign) BOOL useTestInstance;
30-
@property (nonatomic, readonly, assign) BOOL deferInitForPlugin;
30+
@property (nonatomic, readonly, assign) BOOL deferInitForPluginRuntime;
3131
@property (nonatomic, readonly, assign) BOOL enableLogging;
3232
@property (nonatomic, readonly, assign) BOOL enableFacebookLinkCheck;
3333
@property (nonatomic, readonly, assign) BOOL checkPasteboardOnInstall;

BranchSDK/BranchJsonConfig.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
NSString * _Nonnull const BranchJsonConfigLiveKeyOption = @"liveKey";
1515
NSString * _Nonnull const BranchJsonConfigTestKeyOption = @"testKey";
1616
NSString * _Nonnull const BranchJsonConfigUseTestInstanceOption = @"useTestInstance";
17-
NSString * _Nonnull const BranchJsonConfigDeferInitForPluginOption = @"deferInitForPlugin";
17+
NSString * _Nonnull const BranchJsonConfigDeferInitForPluginRuntimeOption = @"deferInitForPluginRuntime";
1818
NSString * _Nonnull const BranchJsonConfigEnableLogging = @"enableLogging";
1919
NSString * _Nonnull const BranchJsonConfigEnableFacebookLinkCheck = @"enableFacebookLinkCheck";
2020
NSString * _Nonnull const BranchJsonConfigCheckPasteboardOnInstall = @"checkPasteboardOnInstall";
@@ -124,9 +124,9 @@ - (BOOL)useTestInstance
124124
return number.boolValue;
125125
}
126126

127-
- (BOOL)deferInitForPlugin
127+
- (BOOL)deferInitForPluginRuntime
128128
{
129-
NSNumber *number = self[BranchJsonConfigDeferInitForPluginOption];
129+
NSNumber *number = self[BranchJsonConfigDeferInitForPluginRuntimeOption];
130130
return number.boolValue;
131131
}
132132

0 commit comments

Comments
 (0)