Skip to content

Commit fa05d3f

Browse files
authored
Merge pull request #344 from IIsathishII/SKIP_PRE_MAIN_EXECUTION
Skip static runtime initialization method based on the compiler flag DISABLE_INIT_WITH_INFO_PLIST
2 parents 997ffe9 + fba44c2 commit fa05d3f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

TrustKit/TrustKit.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ + (void)setLoggerBlock:(void (^)(NSString *))block
274274

275275
#pragma mark TrustKit Implicit Initialization via Library Constructor
276276

277-
277+
#if !DISABLE_INIT_WITH_INFO_PLIST
278278
__attribute__((constructor)) static void initializeWithInfoPlist(int argc, const char **argv)
279279
{
280280
// TrustKit just got started in the App
@@ -288,3 +288,4 @@ + (void)setLoggerBlock:(void (^)(NSString *))block
288288
[TrustKit initSharedInstanceWithConfiguration:trustKitConfigFromInfoPlist];
289289
}
290290
}
291+
#endif

0 commit comments

Comments
 (0)