capacitor-jok-helper
Advanced tools
Comparing version 0.9.3 to 0.9.4
@@ -1,2 +0,2 @@ | ||
declare module "@capacitor/core" { | ||
declare module '@capacitor/core' { | ||
interface PluginRegistry { | ||
@@ -52,3 +52,15 @@ JokHelper: JokHelperPlugin; | ||
listenTransactionStateChanges(): Promise<void>; | ||
platformInfo(): Promise<{ | ||
success: boolean; | ||
platform: string; | ||
clientVersion: string; | ||
}>; | ||
viewAppPage(data: ViewAppPageProps): Promise<{ | ||
value: boolean; | ||
}>; | ||
} | ||
export interface ViewAppPageProps { | ||
appId: string; | ||
showReviewPage: boolean; | ||
} | ||
export interface LoadProductsProps { | ||
@@ -55,0 +67,0 @@ productIds: string[]; |
import { WebPlugin } from '@capacitor/core'; | ||
import { JokHelperPlugin, SetKeychainItemProps, SetOrientationLockProps, LoadProductsProps, SKProduct, RequestPaymentProps, FinishPaymentProps } from './definitions'; | ||
import { JokHelperPlugin, SetKeychainItemProps, SetOrientationLockProps, LoadProductsProps, SKProduct, RequestPaymentProps, FinishPaymentProps, ViewAppPageProps } from './definitions'; | ||
export declare class JokHelperWeb extends WebPlugin implements JokHelperPlugin { | ||
@@ -16,3 +16,3 @@ constructor(); | ||
}>; | ||
setDeviceOrientationLock({ orientationMask }: SetOrientationLockProps): Promise<void>; | ||
setDeviceOrientationLock({ orientationMask, }: SetOrientationLockProps): Promise<void>; | ||
getDeviceOrientation(): Promise<any>; | ||
@@ -51,4 +51,12 @@ listenDeviceOrientationChanges(): Promise<void>; | ||
listenTransactionStateChanges(): Promise<void>; | ||
platformInfo(): Promise<{ | ||
success: boolean; | ||
platform: string; | ||
clientVersion: string; | ||
}>; | ||
viewAppPage(_data: ViewAppPageProps): Promise<{ | ||
value: boolean; | ||
}>; | ||
} | ||
declare const JokHelper: JokHelperWeb; | ||
export { JokHelper }; |
@@ -14,3 +14,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
name: 'JokHelper', | ||
platforms: ['web'] | ||
platforms: ['web'], | ||
}); | ||
@@ -36,3 +36,3 @@ } | ||
} | ||
setDeviceOrientationLock({ orientationMask }) { | ||
setDeviceOrientationLock({ orientationMask, }) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -98,2 +98,12 @@ console.log('setOrientationLock', orientationMask); | ||
} | ||
platformInfo() { | ||
return Promise.resolve({ | ||
success: true, | ||
platform: 'web', | ||
clientVersion: '', | ||
}); | ||
} | ||
viewAppPage(_data) { | ||
return Promise.resolve({ value: false }); | ||
} | ||
} | ||
@@ -100,0 +110,0 @@ const JokHelper = new JokHelperWeb(); |
{ | ||
"name": "capacitor-jok-helper", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"description": "Helper functions for jok projects", | ||
@@ -49,2 +49,2 @@ "main": "dist/esm/index.js", | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
153533
411