Skip to content

Instantly share code, notes, and snippets.

{
"android": {
"v8Flags": "--expose_gc"
},
"main": "main.js",
"name": "tns-template-hello-world-ng",
"version": "4.1.0"
}
const { join, relative, resolve, sep } = require("path");
const webpack = require("webpack");
const nsWebpack = require("nativescript-dev-webpack");
const nativescriptTarget = require("nativescript-dev-webpack/nativescript-target");
const { PlatformReplacementHost } = require("nativescript-dev-webpack/host/platform");
const CleanWebpackPlugin = require("clean-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
const { NativeScriptWorkerPlugin } = require("nativescript-worker-loader/NativeScriptWorkerPlugin");
async onRemoveAddsTap(e)
{
try
{
await this._purchaseService.init0();
await this._purchaseService.getProduct1();
this._purchaseService.registerAndHandleTransactions2()
.then(() => this._fancyService.showSuccess("Thanks!", "Ads will be removed . Please restart the app.", "Ok"),
import {Injectable} from "@angular/core";
import * as applicationSettings from "application-settings";
import * as purchase from "nativescript-purchase";
import {Product} from "nativescript-purchase/product";
import {Transaction, TransactionState} from "nativescript-purchase/transaction";
import {isAndroid, isIOS} from "platform";
import {productId} from "~/modules/core/consts";
@Injectable()
export class PurchaseService
const { join, relative, resolve, sep } = require("path");
const webpack = require("webpack");
const nsWebpack = require("nativescript-dev-webpack");
const nativescriptTarget = require("nativescript-dev-webpack/nativescript-target");
const CleanWebpackPlugin = require("clean-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
const { NativeScriptWorkerPlugin } = require("nativescript-worker-loader/NativeScriptWorkerPlugin");
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN ",
"readme": "NativeScript Application",
"repository": "",
"nativescript": {
"id": "com.davidshield.dsapp1",
"tns-ios": {
"version": "4.0.1"
},
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"inlineSourceMap": true,
"noEmitHelpers": true,
"noEmitOnError": true,
"lib": [
This file has been truncated, but you can view the full file.
06-09 01:06:35.085 3145 3145 D keymaster_tee: [DEBUG]: (nwd_keymaster_mobicore.c:352) TA return code: 0 (0x00000000)
06-09 01:06:35.085 3145 3145 D keymaster_tee: [DEBUG]: (nwd_keymaster_mobicore.c:357) TLC_COMMAND(e): cmd = 0x00000009, ret = 0x00000000
06-09 01:06:35.085 3145 3145 D keymaster_tee: [DEBUG]: (keymaster_params_log.c:270) KEY_PARAMS: SIZE:256 AES ENC DEC CBC PKCS7 AUTH
06-09 01:06:35.085 3145 3145 D keymaster_tee: [DEBUG]: (keymaster_params_log.c:270) KEY_PARAMS: 20180319201906
06-09 01:06:35.085 3145 3145 I keymaster_tee: [INFO]: (nwd_keymaster_mdfpp.cpp:804) exit get_key_characteristics function, returns 0
06-09 01:06:35.085 3145 3145 D SoftKeymaster: system/keymaster/soft_keymaster_context.cpp, Line 884: Module "Keymaster MDFPP Mobicore HAL" accepted key
06-09 01:06:35.089 3145 3145 D SoftKeymaster: system/keymaster/auth_encrypted_key_blob.cpp, Line 130: Failed to deserialize versioned key blob. Assuming unversioned.
06-09 01:06:35.089 3145 3145 D SoftKeymaster: system/keyma
const { join, relative, resolve, sep } = require("path");
const rxPaths = require('rxjs/_esm5/path-mapping');
const path = require('path');
const webpack = require("webpack");
const nsWebpack = require("nativescript-dev-webpack");
const nativescriptTarget = require("nativescript-dev-webpack/nativescript-target");
const CleanWebpackPlugin = require("clean-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
{
"compilerOptions": {
"module": "es2015",
"target": "es5",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmitHelpers": true,
"noEmitOnError": true,
"lib": [
"es6",