Skip to content

Commit

Permalink
Make all
Browse files Browse the repository at this point in the history
  • Loading branch information
j3k0 committed Nov 1, 2023
1 parent 92b0f7c commit aaa2e9c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
14 changes: 14 additions & 0 deletions RELEASE_NOTES.md
@@ -1,5 +1,19 @@
# Release Notes - Cordova Plugin Purchase

## 13.9

### 13.9.0

#### (appstore) store.restorePurchases() return potential errors

The return value for `store.restorePurchases()` has been changed from `Promise<void>` to `Promise<IError|undefined>`.

You can now inspect the value returned to figure out if processing complete with or without errors.

#### (appstore) Fix forceReceiptReload

In certain conditions (calls to `order` and `restorePurchases`), the AppStore adapter wants to force a refresh of the application receipt. This fix prevents it from returning the version cached in memory.

## 13.8

### 13.8.6
Expand Down
2 changes: 1 addition & 1 deletion api/modules/CdvPurchase.md
Expand Up @@ -143,7 +143,7 @@ ___

### PLUGIN\_VERSION

`Const` **PLUGIN\_VERSION**: ``"13.8.6"``
`Const` **PLUGIN\_VERSION**: ``"13.9.0"``

Current release number of the plugin.

Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Expand Up @@ -26,7 +26,7 @@ SOFTWARE.
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-purchase"
xmlns:android="http://schemas.android.com/apk/res/android"
version="13.8.6">
version="13.9.0">

<name>Purchase</name>
<description>Cordova Purchase plugin for iOS (AppStore), Android (PlayStore) and Windows</description>
Expand Down
2 changes: 1 addition & 1 deletion src/ts/store.ts
Expand Up @@ -32,7 +32,7 @@ namespace CdvPurchase {
/**
* Current release number of the plugin.
*/
export const PLUGIN_VERSION = '13.8.6';
export const PLUGIN_VERSION = '13.9.0';

/**
* Entry class of the plugin.
Expand Down
2 changes: 1 addition & 1 deletion www/store.d.ts
Expand Up @@ -737,7 +737,7 @@ declare namespace CdvPurchase {
/**
* Current release number of the plugin.
*/
const PLUGIN_VERSION = "13.8.6";
const PLUGIN_VERSION = "13.9.0";
/**
* Entry class of the plugin.
*/
Expand Down
6 changes: 3 additions & 3 deletions www/store.js
Expand Up @@ -1338,7 +1338,7 @@ var CdvPurchase;
/**
* Current release number of the plugin.
*/
CdvPurchase.PLUGIN_VERSION = '13.8.6';
CdvPurchase.PLUGIN_VERSION = '13.9.0';
/**
* Entry class of the plugin.
*/
Expand Down Expand Up @@ -3399,10 +3399,10 @@ var CdvPurchase;
this.initialized = true;
setTimeout(() => this.processPendingTransactions(), 50);
};
const setupFailed = () => {
const setupFailed = (err) => {
log('setup failed');
// protectCall(this.options.error, 'options.error', ErrorCode.SETUP, 'Setup failed');
protectCall(error, 'init.error', CdvPurchase.ErrorCode.SETUP, 'Setup failed');
protectCall(error, 'init.error', CdvPurchase.ErrorCode.SETUP, 'Setup failed: ' + err);
};
exec('setup', [], setupOk, setupFailed);
}
Expand Down

0 comments on commit aaa2e9c

Please sign in to comment.