Skip to content

Commit

Permalink
version 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-g committed Oct 23, 2024
2 parents 7f0a43a + 1f40626 commit 11e2ffa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions lib/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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:+'
Expand Down
12 changes: 5 additions & 7 deletions lib/src/adapty-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({});
Expand Down Expand Up @@ -901,12 +904,7 @@ export class Adapty {

const body = new ParamMap();

const result = await this.handle<string>(
'is_activated',
body,
ctx,
log,
);
const result = await this.handle<string>('is_activated', body, ctx, log);

return result === 'true';
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> (https://github.com/divanc)",
Expand Down

0 comments on commit 11e2ffa

Please sign in to comment.