@purchasely/cordova-plugin-purchasely 2.3.2 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example/android.sh +8 -0
- package/example/config.xml +1 -1
- package/example/ios.sh +16 -0
- package/example/package-lock.json +426 -477
- package/example/package.json +5 -4
- package/example/www/index.html +12 -0
- package/example/www/js/index.js +114 -10
- package/package.json +9 -1
- package/plugin.xml +16 -5
- package/purchasely.iml +11 -0
- package/src/android/PLYProductActivity.kt +171 -0
- package/src/android/PLYSubscriptionsActivity.java +1 -1
- package/src/android/PurchaselyPlugin.kt +925 -0
- package/src/android/activity_ply_product_activity.xml +2 -2
- package/src/android/activity_ply_subscriptions_activity.xml +6 -0
- package/src/ios/CDVPurchasely.h +24 -6
- package/src/ios/CDVPurchasely.m +441 -37
- package/src/ios/Hybrid/PLYPlan+Hybrid.m +0 -1
- package/src/ios/Hybrid/PLYPresentationPlan+Hybrid.h +20 -0
- package/src/ios/Hybrid/PLYPresentationPlan+Hybrid.m +31 -0
- package/src/ios/Hybrid/Purchasely_Hybrid.h +1 -0
- package/src/ios/Hybrid/UIColor+PLYHelper.h +19 -0
- package/src/ios/Hybrid/UIColor+PLYHelper.m +66 -0
- package/www/Purchasely.js +101 -28
- package/src/android/PLYProductActivity.java +0 -87
- package/src/android/PurchaselyPlugin.java +0 -739
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<
|
|
2
|
+
<FrameLayout
|
|
3
3
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
|
-
android:id="@+id/
|
|
4
|
+
android:id="@+id/container"
|
|
5
5
|
android:layout_width="match_parent"
|
|
6
6
|
android:layout_height="match_parent" />
|
package/src/ios/CDVPurchasely.h
CHANGED
|
@@ -11,21 +11,26 @@
|
|
|
11
11
|
@interface CDVPurchasely<PLYEventDelegate> : CDVPlugin {
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
@property (nonatomic,
|
|
14
|
+
@property (nonatomic, retain) UIViewController* presentedPresentationViewController;
|
|
15
15
|
|
|
16
16
|
@property CDVInvokedUrlCommand* purchasedCommand;
|
|
17
17
|
@property CDVInvokedUrlCommand* eventCommand;
|
|
18
18
|
|
|
19
|
+
@property (nonatomic) NSMutableArray<PLYPresentation *> *presentationsLoaded;
|
|
20
|
+
@property (nonatomic, assign) Boolean shouldReopenPaywall;
|
|
21
|
+
|
|
22
|
+
@property (nonatomic) CDVInvokedUrlCommand* purchaseResolve;
|
|
23
|
+
|
|
19
24
|
@property CDVInvokedUrlCommand* paywallActionInterceptorCommand;
|
|
20
25
|
@property void (^onProcessActionHandler)(BOOL proceed);
|
|
21
26
|
|
|
22
|
-
- (void)
|
|
27
|
+
- (void)start:(CDVInvokedUrlCommand*)command;
|
|
23
28
|
- (void)setLogLevel:(CDVInvokedUrlCommand*)command;
|
|
24
29
|
- (void)userLogin:(CDVInvokedUrlCommand*)command;
|
|
25
30
|
- (void)userLogout:(CDVInvokedUrlCommand*)command;
|
|
26
31
|
- (void)setAttribute:(CDVInvokedUrlCommand*)command;
|
|
27
32
|
- (void)getAnonymousUserId:(CDVInvokedUrlCommand*)command;
|
|
28
|
-
- (void)
|
|
33
|
+
- (void)readyToOpenDeeplink:(CDVInvokedUrlCommand*)command;
|
|
29
34
|
- (void)setDefaultPresentationResultHandler:(CDVInvokedUrlCommand*)command;
|
|
30
35
|
- (void)presentPresentationWithIdentifier:(CDVInvokedUrlCommand*)command;
|
|
31
36
|
- (void)presentPresentationForPlacement:(CDVInvokedUrlCommand*)command;
|
|
@@ -42,11 +47,24 @@
|
|
|
42
47
|
- (void)userSubscriptions:(CDVInvokedUrlCommand*)command;
|
|
43
48
|
- (void)addEventsListener:(CDVInvokedUrlCommand*)command;
|
|
44
49
|
- (void)removeEventsListener:(CDVInvokedUrlCommand*)command;
|
|
45
|
-
- (void)
|
|
46
|
-
- (void)close:(CDVInvokedUrlCommand*)command;
|
|
50
|
+
- (void)isDeeplinkHandled:(CDVInvokedUrlCommand*)command;
|
|
47
51
|
- (void)setPaywallActionInterceptor:(CDVInvokedUrlCommand*)command;
|
|
48
52
|
- (void)onProcessAction:(CDVInvokedUrlCommand*)command;
|
|
49
|
-
- (void)
|
|
53
|
+
- (void)closePresentation:(CDVInvokedUrlCommand*)command;
|
|
54
|
+
- (void)hidePresentation:(CDVInvokedUrlCommand*)command;
|
|
55
|
+
- (void)showPresentation:(CDVInvokedUrlCommand*)command;
|
|
50
56
|
- (void)userDidConsumeSubscriptionContent:(CDVInvokedUrlCommand*)command;
|
|
57
|
+
- (void)setUserAttributeWithString:(CDVInvokedUrlCommand*)command;
|
|
58
|
+
- (void)setUserAttributeWithBoolean:(CDVInvokedUrlCommand*)command;
|
|
59
|
+
- (void)setUserAttributeWithInt:(CDVInvokedUrlCommand*)command;
|
|
60
|
+
- (void)setUserAttributeWithDate:(CDVInvokedUrlCommand*)command;
|
|
61
|
+
- (void)userAttribute:(CDVInvokedUrlCommand*)command;
|
|
62
|
+
- (void)clearUserAttribute:(CDVInvokedUrlCommand*)command;
|
|
63
|
+
- (void)clearUserAttributes:(CDVInvokedUrlCommand*)command;
|
|
64
|
+
- (void)fetchPresentation:(CDVInvokedUrlCommand*)command;
|
|
65
|
+
- (void)presentPresentation:(CDVInvokedUrlCommand*)command;
|
|
66
|
+
- (void)signPromotionalOffer:(CDVInvokedUrlCommand*)command;
|
|
67
|
+
- (void)isEligibleForIntroOffer:(CDVInvokedUrlCommand*)command;
|
|
68
|
+
- (void)setThemeMode:(CDVInvokedUrlCommand*)command;
|
|
51
69
|
|
|
52
70
|
@end
|