mirror of
https://github.com/datatheorem/TrustKit.git
synced 2026-06-16 12:54:30 +00:00
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
This commit is contained in:
+2
-1
@@ -274,7 +274,7 @@ void TSKLog(NSString *format, ...)
|
||||
|
||||
#pragma mark TrustKit Implicit Initialization via Library Constructor
|
||||
|
||||
|
||||
#if !DISABLE_INIT_WITH_INFO_PLIST
|
||||
__attribute__((constructor)) static void initializeWithInfoPlist(int argc, const char **argv)
|
||||
{
|
||||
// TrustKit just got started in the App
|
||||
@@ -288,3 +288,4 @@ __attribute__((constructor)) static void initializeWithInfoPlist(int argc, const
|
||||
[TrustKit initSharedInstanceWithConfiguration:trustKitConfigFromInfoPlist];
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user