capacitor-adapty
Advanced tools
Comparing version 0.1.3 to 0.1.4
export * from './definitions'; | ||
export * from './sdk/types'; | ||
export * from './sdk/errors'; | ||
export * from './ngx'; |
export * from './definitions'; | ||
export * from './sdk/types'; | ||
export * from './sdk/errors'; | ||
export * from './ngx'; | ||
// export * from './web'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
var capacitorPlugin = (function (exports) { | ||
var capacitorPlugin = (function (exports, core$1, core) { | ||
'use strict'; | ||
@@ -60,2 +60,92 @@ | ||
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
const CapacitorAdapty = core.Plugins.CapacitorAdapty; | ||
exports.Adapty = class Adapty { | ||
constructor() { | ||
this.adapty = CapacitorAdapty; | ||
this.addListener = this.adapty.addListener; | ||
} | ||
presentCodeRedemptionSheet() { | ||
return this.adapty.presentCodeRedemptionSheet(); | ||
} | ||
identify(customerUserId) { | ||
return this.adapty.identify({ | ||
customerUserId, | ||
}); | ||
} | ||
logout() { | ||
return this.adapty.logout(); | ||
} | ||
updateProfile(fields) { | ||
return this.adapty.updateProfile(fields); | ||
} | ||
logShowPaywall(variationId) { | ||
return this.adapty.logShowPaywall({ variationId }); | ||
} | ||
getAPNSToken() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const result = yield this.adapty.getAPNSToken(); | ||
return result.token; | ||
}); | ||
} | ||
setAPNSToken(token) { | ||
return this.adapty.setAPNSToken({ apns: token }); | ||
} | ||
getPurchaseInfo(options) { | ||
return this.adapty.getPurchaseInfo(options); | ||
} | ||
restorePurchases() { | ||
return this.adapty.restorePurchases(); | ||
} | ||
makePurchase(productId, variationId) { | ||
return this.adapty.makePurchase({ | ||
productId, | ||
variationId, | ||
}); | ||
} | ||
getPromo() { | ||
return this.adapty.getPromo(); | ||
} | ||
getPaywalls(options) { | ||
return this.adapty.getPaywalls(options); | ||
} | ||
setExternalAnalyticsEnabled(isEnabled) { | ||
return this.adapty.setExternalAnalyticsEnabled({ isEnabled }); | ||
} | ||
setVariationID(variationId, transactionId) { | ||
return this.adapty.setVariationID({ variationId, transactionId }); | ||
} | ||
activate(sdkKey, userId, observerMode, logLevel) { | ||
return this.adapty.activate({ | ||
sdkKey, | ||
customerUserId: userId, | ||
observerMode, | ||
logLevel, | ||
}); | ||
} | ||
updateAttribution(attribution, source) { | ||
return this.adapty.updateAttribution({ | ||
attribution, | ||
source, | ||
}); | ||
} | ||
}; | ||
exports.Adapty = __decorate([ | ||
core$1.Injectable() | ||
], exports.Adapty); | ||
exports.AdaptyErrors = AdaptyErrors; | ||
@@ -68,3 +158,3 @@ exports.isAdaptyError = isAdaptyError; | ||
}({})); | ||
}({}, core$1, capacitorExports)); | ||
//# sourceMappingURL=plugin.js.map |
{ | ||
"name": "capacitor-adapty", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Adapty plugin for capacitor", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
165105
49
1011