File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -319,6 +319,10 @@ + (void)setTestOptions:(NSDictionary *)testOptions {
319319#pragma mark - Public instance methods
320320
321321- (void )initSdk : (ADJConfig *)adjustConfig {
322+ if (! [self isSignerPresent ]) {
323+ [self .logger error: @" Missing signature library, SDK can't be initialised" ];
324+ return ;
325+ }
322326 if (self.activityHandler != nil ) {
323327 [self .logger error: @" Adjust already initialized" ];
324328 return ;
@@ -327,6 +331,15 @@ - (void)initSdk:(ADJConfig *)adjustConfig {
327331 savedPreLaunch: self .savedPreLaunch
328332 deeplinkResolutionCallback: self .cachedResolvedDeeplinkBlock];
329333}
334+ - (BOOL )isSignerPresent {
335+ _Nullable Class signerClass = NSClassFromString (@" ADJSigner" );
336+ if (signerClass == nil ) {
337+ return NO ;
338+ }
339+
340+ return [signerClass respondsToSelector:
341+ NSSelectorFromString (@" sign:withExtraParams:withOutputParams:" )];
342+ }
330343
331344- (void )trackEvent : (ADJEvent *)event {
332345 if (![self checkActivityHandler ]) {
You can’t perform that action at this time.
0 commit comments