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
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"); |
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 {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 |
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
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"), |
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
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"); |
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
{ | |
"android": { | |
"v8Flags": "--expose_gc" | |
}, | |
"main": "main.js", | |
"name": "tns-template-hello-world-ng", | |
"version": "4.1.0" | |
} |
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
{ | |
"description": "NativeScript Application", | |
"license": "SEE LICENSE IN <your-license-filename>", | |
"readme": "NativeScript Application", | |
"repository": "<fill-your-repository-here>", | |
"nativescript": { | |
"id": "org.nativescript.ddd" | |
}, | |
"dependencies": { | |
"@angular/animations": "~6.0.0", |
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
{ | |
"description": "NativeScript Application", | |
"license": "SEE LICENSE IN <your-license-filename>", | |
"readme": "NativeScript Application", | |
"repository": "<fill-your-repository-here>", | |
"nativescript": { | |
"id": "org.nativescript.ddd", | |
"tns-android": { | |
"version": "4.1.3" | |
} |
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
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"); |
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 {ReplaySubject} from "rxjs"; | |
import {setActivityCallbacks, AndroidActivityCallbacks} from "ui/frame"; | |
export var AndroidOnRouteToURL = new ReplaySubject<string>(); | |
@JavaProxy("org.myApp.MainActivity") | |
class Activity extends android.support.v7.app.AppCompatActivity { | |
private _callbacks: AndroidActivityCallbacks; | |
protected onCreate(savedInstanceState: android.os.Bundle): void { | |
if (!this._callbacks) { | |
setActivityCallbacks(this); |
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 {Injectable, NgZone} from '@angular/core'; | |
import {ReplaySubject} from "rxjs"; | |
import {isAndroid, isIOS} from "tns-core-modules/platform"; | |
let OnRouteToURL: ReplaySubject<string>; | |
if (isAndroid) |