This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.addEventListener('deviceready', onDeviceReady); | |
| function onDeviceReady() { | |
| const store = CdvPurchase.store; | |
| const { ProductType, Platform, LogLevel, Product, VerifiedReceipt } = CdvPurchase; // shortcuts | |
| // We should first register all our products or we cannot use them in the app. | |
| store.register([{ | |
| id: 'demo_monthly_basic', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'cordova-plugin-purchase'; | |
| document.addEventListener('deviceready', onDeviceReady); | |
| let log: CdvPurchase.Logger; | |
| let statusMessage: null | string = null; | |
| function setStatusMessage(value: null | string) { | |
| if (statusMessage !== value) { | |
| statusMessage = value; | |
| renderStatusUI(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| snap() { | |
| if [[ $@ == "update" ]]; then | |
| command snap refresh | |
| else | |
| command snap "$@" | |
| fi | |
| } |
OlderNewer