diff --git a/lib/android/build.gradle b/lib/android/build.gradle index 33f9fbe..67b6e15 100644 --- a/lib/android/build.gradle +++ b/lib/android/build.gradle @@ -103,6 +103,8 @@ dependencies { //noinspection GradleDynamicVersion api 'io.adapty.internal:crossplatform:3.0.0' + implementation 'io.adapty:android-ui:3.0.1' + // Compatible with older and newer RN //noinspection GradleDynamicVersion implementation 'com.facebook.react:react-native:+' diff --git a/lib/src/adapty-handler.ts b/lib/src/adapty-handler.ts index 8dc04e7..e434f3f 100644 --- a/lib/src/adapty-handler.ts +++ b/lib/src/adapty-handler.ts @@ -52,7 +52,10 @@ export class Adapty { * wait until activate call is resolved before calling native methods * Not applicable for activate method ofc */ - if (this.activating && (!this.nonWaitingMethods.includes(method) || method === 'is_activated')) { + if ( + this.activating && + (!this.nonWaitingMethods.includes(method) || method === 'is_activated') + ) { log.wait({}); await this.activating; log.waitComplete({}); @@ -901,12 +904,7 @@ export class Adapty { const body = new ParamMap(); - const result = await this.handle( - 'is_activated', - body, - ctx, - log, - ); + const result = await this.handle('is_activated', body, ctx, log); return result === 'true'; } diff --git a/package.json b/package.json index 8460e54..5862b10 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package", "name": "react-native-adapty", - "version": "3.0.0", + "version": "3.0.1", "description": "Adapty React Native SDK", "license": "MIT", "author": "Vanya Dorofeyev (https://github.com/divanc)",