From dbafd438ee8d56c328bb682cb133ede99479e633 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 26 Sep 2024 23:53:45 +0200 Subject: [PATCH 1/5] Added OnRewardedAdReceivedRewardEvent listener. --- CHANGELOG.md | 2 ++ plugin/package.json | 2 +- plugin/plugin.xml | 2 +- plugin/www/applovinmax.js | 3 +++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b78338..95decce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## Versions +## 1.2.0 + * Added "OnRewardedAdReceivedRewardEvent" listener. ## 1.1.5 * Depends on Android SDK [v12.3.1](https://github.com/AppLovin/AppLovin-MAX-SDK-Android/releases/tag/release_12_3_1) and iOS SDK [v12.3.1](https://github.com/AppLovin/AppLovin-MAX-SDK-iOS/releases/tag/release_12_3_1). ## 1.1.4 diff --git a/plugin/package.json b/plugin/package.json index 021d4d5..52b6e39 100644 --- a/plugin/package.json +++ b/plugin/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-applovin-max", - "version": "1.1.5", + "version": "1.2.0", "description": "AppLovin MAX Cordova Plugin for Android and iOS", "cordova": { "id": "cordova-plugin-applovin-max", diff --git a/plugin/plugin.xml b/plugin/plugin.xml index d1041b0..001b5a4 100644 --- a/plugin/plugin.xml +++ b/plugin/plugin.xml @@ -1,5 +1,5 @@ - + AppLovin MAX AppLovin MAX Cordova Plugin MIT diff --git a/plugin/www/applovinmax.js b/plugin/www/applovinmax.js index 5881e8d..372a2d9 100644 --- a/plugin/www/applovinmax.js +++ b/plugin/www/applovinmax.js @@ -366,6 +366,9 @@ window.addEventListener('OnRewardedAdDisplayedEvent', function (adInfo) { window.addEventListener('OnRewardedAdFailedToDisplayEvent', function (adInfo) { AppLovinMAX.isAdReadyValues[adInfo.adUnitId] = false; }); +window.addEventListener('OnRewardedAdReceivedRewardEvent', function (adInfo) { + AppLovinMAX.isAdReadyValues[adInfo.adUnitId] = true; +}); if (typeof module !== undefined && module.exports) { module.exports = AppLovinMAX; From 1cb0db7d0fc189976d0632a8ecaaf645530b8d2c Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 27 Sep 2024 01:22:45 +0200 Subject: [PATCH 2/5] Added package.json --- package.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..1b42e32 --- /dev/null +++ b/package.json @@ -0,0 +1,31 @@ +{ + "name": "cordova-plugin-applovin-max", + "version": "1.2.0", + "description": "AppLovin MAX Cordova Plugin for Android and iOS", + "cordova": { + "id": "cordova-plugin-applovin-max", + "platforms": [ + "android", + "ios" + ] + }, + "dependencies": {}, + "devDependencies": {}, + "repository": { + "type": "git", + "url": "git+https://github.com/AppLovin/AppLovin-MAX-Cordova.git" + }, + "keywords": [ + "applovin", + "max", + "ecosystem:cordova", + "cordova-android", + "cordova-ios" + ], + "author": "AppLovin Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/AppLovin/AppLovin-MAX-Cordova/issues" + }, + "homepage": "https://github.com/AppLovin/AppLovin-MAX-Cordova#readme" +} \ No newline at end of file From 43d2e22fbd7701bea3e5d04b1a8a924327d8f61b Mon Sep 17 00:00:00 2001 From: websystems-dev <63508586+websystems-dev@users.noreply.github.com> Date: Fri, 27 Sep 2024 11:46:31 +0200 Subject: [PATCH 3/5] Delete package.json --- package.json | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 package.json diff --git a/package.json b/package.json deleted file mode 100644 index 1b42e32..0000000 --- a/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "cordova-plugin-applovin-max", - "version": "1.2.0", - "description": "AppLovin MAX Cordova Plugin for Android and iOS", - "cordova": { - "id": "cordova-plugin-applovin-max", - "platforms": [ - "android", - "ios" - ] - }, - "dependencies": {}, - "devDependencies": {}, - "repository": { - "type": "git", - "url": "git+https://github.com/AppLovin/AppLovin-MAX-Cordova.git" - }, - "keywords": [ - "applovin", - "max", - "ecosystem:cordova", - "cordova-android", - "cordova-ios" - ], - "author": "AppLovin Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/AppLovin/AppLovin-MAX-Cordova/issues" - }, - "homepage": "https://github.com/AppLovin/AppLovin-MAX-Cordova#readme" -} \ No newline at end of file From c296f4a276b83c047fee82b9617ec2fc55b5c062 Mon Sep 17 00:00:00 2001 From: websystems-dev <63508586+websystems-dev@users.noreply.github.com> Date: Sat, 28 Sep 2024 10:59:36 +0200 Subject: [PATCH 4/5] Update plugin/www/applovinmax.js Co-authored-by: Thomas So <5104410+thomasmso@users.noreply.github.com> --- plugin/www/applovinmax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/www/applovinmax.js b/plugin/www/applovinmax.js index 372a2d9..15f6145 100644 --- a/plugin/www/applovinmax.js +++ b/plugin/www/applovinmax.js @@ -367,7 +367,7 @@ window.addEventListener('OnRewardedAdFailedToDisplayEvent', function (adInfo) { AppLovinMAX.isAdReadyValues[adInfo.adUnitId] = false; }); window.addEventListener('OnRewardedAdReceivedRewardEvent', function (adInfo) { - AppLovinMAX.isAdReadyValues[adInfo.adUnitId] = true; + AppLovinMAX.isAdReadyValues[adInfo.adUnitId] = false; }); if (typeof module !== undefined && module.exports) { From f1237e416f327ccfeef3ee79b702bf565c203ae5 Mon Sep 17 00:00:00 2001 From: websystems-dev <63508586+websystems-dev@users.noreply.github.com> Date: Sat, 28 Sep 2024 11:00:09 +0200 Subject: [PATCH 5/5] Update CHANGELOG.md Co-authored-by: Thomas So <5104410+thomasmso@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 95decce..673fbf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## Versions -## 1.2.0 +## x.x.x * Added "OnRewardedAdReceivedRewardEvent" listener. ## 1.1.5 * Depends on Android SDK [v12.3.1](https://github.com/AppLovin/AppLovin-MAX-SDK-Android/releases/tag/release_12_3_1) and iOS SDK [v12.3.1](https://github.com/AppLovin/AppLovin-MAX-SDK-iOS/releases/tag/release_12_3_1).