react-native-purchases 10.8.0 → 10.8.1

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.
@@ -25,6 +25,6 @@ Pod::Spec.new do |spec|
25
25
  ]
26
26
 
27
27
  spec.dependency "React-Core"
28
- spec.dependency "PurchasesHybridCommon", '18.32.1'
28
+ spec.dependency "PurchasesHybridCommon", '18.33.1'
29
29
  spec.swift_version = '5.7'
30
30
  end
@@ -29,7 +29,7 @@ android {
29
29
  minSdkVersion getExtOrIntegerDefault('minSdkVersion')
30
30
  targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
31
31
  versionCode 1
32
- versionName '10.8.0'
32
+ versionName '10.8.1'
33
33
  }
34
34
 
35
35
  buildTypes {
@@ -121,6 +121,6 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
121
121
  dependencies {
122
122
  //noinspection GradleDynamicVersion
123
123
  api 'com.facebook.react:react-native:+'
124
- implementation 'com.revenuecat.purchases:purchases-hybrid-common:18.32.1'
124
+ implementation 'com.revenuecat.purchases:purchases-hybrid-common:18.33.1'
125
125
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
126
126
  }
@@ -51,7 +51,7 @@ public class RNPurchasesModule extends ReactContextBaseJavaModule implements Upd
51
51
  private static final String TRACKED_EVENT = "Purchases-TrackedEvent";
52
52
  private static final String DEBUG_EVENT = "Purchases-DebugEvent";
53
53
  public static final String PLATFORM_NAME = "react-native";
54
- public static final String PLUGIN_VERSION = "10.8.0";
54
+ public static final String PLUGIN_VERSION = "10.8.1";
55
55
 
56
56
  private final ReactApplicationContext reactContext;
57
57
 
@@ -43,7 +43,7 @@ var typeGuards_1 = require("./typeGuards");
43
43
  var environment_1 = require("../utils/environment");
44
44
  var utils_1 = require("./utils");
45
45
  var purchaseSimulatedPackageHelper_1 = require("./simulatedstore/purchaseSimulatedPackageHelper");
46
- var packageVersion = '10.8.0';
46
+ var packageVersion = '10.8.1';
47
47
  /**
48
48
  * Browser implementation of the native module. This will be used in the browser and Expo Go.
49
49
  */
@@ -43,17 +43,14 @@ export interface TrackCustomPaywallImpressionOptions {
43
43
  }
44
44
  /**
45
45
  * Predefined mediator name constants. Use these or pass any string for unlisted networks.
46
- * @beta
47
46
  */
48
47
  export declare const AdMediatorName: {
49
48
  readonly adMob: "AdMob";
50
49
  readonly appLovin: "AppLovin";
51
50
  };
52
- /** @beta */
53
51
  export type AdMediatorName = string;
54
52
  /**
55
53
  * Predefined ad format constants. Use these or pass any string for unlisted formats.
56
- * @beta
57
54
  */
58
55
  export declare const AdFormat: {
59
56
  readonly other: "other";
@@ -64,11 +61,9 @@ export declare const AdFormat: {
64
61
  readonly nativeAd: "native";
65
62
  readonly appOpen: "app_open";
66
63
  };
67
- /** @beta */
68
64
  export type AdFormat = string;
69
65
  /**
70
66
  * Predefined precision constants for ad revenue. Use these or pass any string for unlisted values.
71
- * @beta
72
67
  */
73
68
  export declare const AdRevenuePrecision: {
74
69
  readonly exact: "exact";
@@ -76,9 +71,7 @@ export declare const AdRevenuePrecision: {
76
71
  readonly estimated: "estimated";
77
72
  readonly unknown: "unknown";
78
73
  };
79
- /** @beta */
80
74
  export type AdRevenuePrecision = string;
81
- /** @beta */
82
75
  export interface AdDisplayedData {
83
76
  mediatorName: AdMediatorName;
84
77
  adFormat: AdFormat;
@@ -87,7 +80,6 @@ export interface AdDisplayedData {
87
80
  networkName?: string | null;
88
81
  placement?: string | null;
89
82
  }
90
- /** @beta */
91
83
  export interface AdOpenedData {
92
84
  mediatorName: AdMediatorName;
93
85
  adFormat: AdFormat;
@@ -96,7 +88,6 @@ export interface AdOpenedData {
96
88
  networkName?: string | null;
97
89
  placement?: string | null;
98
90
  }
99
- /** @beta */
100
91
  export interface AdLoadedData {
101
92
  mediatorName: AdMediatorName;
102
93
  adFormat: AdFormat;
@@ -105,7 +96,6 @@ export interface AdLoadedData {
105
96
  networkName?: string | null;
106
97
  placement?: string | null;
107
98
  }
108
- /** @beta */
109
99
  export interface AdRevenueData {
110
100
  mediatorName: AdMediatorName;
111
101
  adFormat: AdFormat;
@@ -117,7 +107,6 @@ export interface AdRevenueData {
117
107
  networkName?: string | null;
118
108
  placement?: string | null;
119
109
  }
120
- /** @beta */
121
110
  export interface AdFailedToLoadData {
122
111
  mediatorName: AdMediatorName;
123
112
  adFormat: AdFormat;
@@ -129,7 +118,6 @@ export interface AdFailedToLoadData {
129
118
  * Token generated for a rewarded ad impression. Pass `clientTransactionId` to
130
119
  * the ad network as server-side verification custom data, then to
131
120
  * {@link Purchases.pollRewardVerification} to await the reward.
132
- * @beta
133
121
  */
134
122
  export interface RewardVerificationToken {
135
123
  customData: string;
@@ -138,16 +126,13 @@ export interface RewardVerificationToken {
138
126
  }
139
127
  /**
140
128
  * A reward granted after a verified rewarded ad. Discriminated by `type`.
141
- * @beta
142
129
  */
143
130
  export type VerifiedReward = VerifiedVirtualCurrencyReward | VerifiedEntitlementReward | VerifiedNoReward | VerifiedUnsupportedReward;
144
- /** @beta */
145
131
  export interface VerifiedVirtualCurrencyReward {
146
132
  type: "virtual_currency";
147
133
  code: string;
148
134
  amount: number;
149
135
  }
150
- /** @beta */
151
136
  export interface VerifiedEntitlementReward {
152
137
  type: "entitlement";
153
138
  identifier: string;
@@ -156,17 +141,16 @@ export interface VerifiedEntitlementReward {
156
141
  /** Expiration date in milliseconds since epoch. */
157
142
  expiresAtMillis: number;
158
143
  }
159
- /** Verification completed but nothing was granted. @beta */
144
+ /** Verification completed but nothing was granted. */
160
145
  export interface VerifiedNoReward {
161
146
  type: "no_reward";
162
147
  }
163
- /** Verification completed but the reward type isn't modeled by this SDK version. @beta */
148
+ /** Verification completed but the reward type isn't modeled by this SDK version. */
164
149
  export interface VerifiedUnsupportedReward {
165
150
  type: "unsupported_reward";
166
151
  }
167
152
  /**
168
153
  * Result of polling for reward verification.
169
- * @beta
170
154
  */
171
155
  export interface RewardVerificationResult {
172
156
  /** The primary reward when verification succeeded; absent on failure. */
@@ -179,7 +163,6 @@ export interface RewardVerificationResult {
179
163
  /**
180
164
  * Ad metadata for a rewarded ad, passed to {@link Purchases.pollRewardVerification}
181
165
  * to have the SDK automatically track reward-verification events for it.
182
- * @beta
183
166
  */
184
167
  export interface RewardedAdTrackingMetadata {
185
168
  mediatorName: AdMediatorName;
@@ -1066,7 +1049,6 @@ export default class Purchases {
1066
1049
  static isConfigured(): Promise<boolean>;
1067
1050
  /**
1068
1051
  * Provides access to ad lifecycle tracking methods.
1069
- * @beta
1070
1052
  */
1071
1053
  static get adTracker(): PurchasesAdTracker;
1072
1054
  /**
@@ -1091,7 +1073,6 @@ export default class Purchases {
1091
1073
  *
1092
1074
  * @param impressionId - The impression identifier of the rewarded ad.
1093
1075
  * @returns {Promise<RewardVerificationToken>} promise with the generated token.
1094
- * @beta
1095
1076
  */
1096
1077
  static generateRewardVerificationToken(impressionId: string): Promise<RewardVerificationToken>;
1097
1078
  /**
@@ -1107,7 +1088,6 @@ export default class Purchases {
1107
1088
  * reward-verification events for the ad it belongs to; omit to poll
1108
1089
  * without tracking.
1109
1090
  * @returns {Promise<RewardVerificationResult>} promise with the verification result.
1110
- * @beta
1111
1091
  */
1112
1092
  static pollRewardVerification(clientTransactionId: string, trackingMetadata?: RewardedAdTrackingMetadata): Promise<RewardVerificationResult>;
1113
1093
  private static throwIfAndroidPlatform;
@@ -1118,7 +1098,6 @@ export default class Purchases {
1118
1098
  /**
1119
1099
  * Provides methods for tracking ad lifecycle events.
1120
1100
  * Access via {@link Purchases.adTracker}.
1121
- * @beta
1122
1101
  */
1123
1102
  export declare class PurchasesAdTracker {
1124
1103
  trackAdDisplayed(data: AdDisplayedData): Promise<void>;
package/dist/purchases.js CHANGED
@@ -82,7 +82,6 @@ var customLogHandler;
82
82
  var trackedEventListeners = [];
83
83
  /**
84
84
  * Predefined mediator name constants. Use these or pass any string for unlisted networks.
85
- * @beta
86
85
  */
87
86
  exports.AdMediatorName = {
88
87
  adMob: "AdMob",
@@ -90,7 +89,6 @@ exports.AdMediatorName = {
90
89
  };
91
90
  /**
92
91
  * Predefined ad format constants. Use these or pass any string for unlisted formats.
93
- * @beta
94
92
  */
95
93
  exports.AdFormat = {
96
94
  other: "other",
@@ -103,7 +101,6 @@ exports.AdFormat = {
103
101
  };
104
102
  /**
105
103
  * Predefined precision constants for ad revenue. Use these or pass any string for unlisted values.
106
- * @beta
107
104
  */
108
105
  exports.AdRevenuePrecision = {
109
106
  exact: "exact",
@@ -2069,7 +2066,6 @@ var Purchases = /** @class */ (function () {
2069
2066
  Object.defineProperty(Purchases, "adTracker", {
2070
2067
  /**
2071
2068
  * Provides access to ad lifecycle tracking methods.
2072
- * @beta
2073
2069
  */
2074
2070
  get: function () {
2075
2071
  if (!adTrackerSingleton) {
@@ -2123,7 +2119,6 @@ var Purchases = /** @class */ (function () {
2123
2119
  *
2124
2120
  * @param impressionId - The impression identifier of the rewarded ad.
2125
2121
  * @returns {Promise<RewardVerificationToken>} promise with the generated token.
2126
- * @beta
2127
2122
  */
2128
2123
  Purchases.generateRewardVerificationToken = function (impressionId) {
2129
2124
  return __awaiter(this, void 0, void 0, function () {
@@ -2150,7 +2145,6 @@ var Purchases = /** @class */ (function () {
2150
2145
  * reward-verification events for the ad it belongs to; omit to poll
2151
2146
  * without tracking.
2152
2147
  * @returns {Promise<RewardVerificationResult>} promise with the verification result.
2153
- * @beta
2154
2148
  */
2155
2149
  Purchases.pollRewardVerification = function (clientTransactionId, trackingMetadata) {
2156
2150
  return __awaiter(this, void 0, void 0, function () {
@@ -2303,7 +2297,6 @@ var adTrackerSingleton;
2303
2297
  /**
2304
2298
  * Provides methods for tracking ad lifecycle events.
2305
2299
  * Access via {@link Purchases.adTracker}.
2306
- * @beta
2307
2300
  */
2308
2301
  var PurchasesAdTracker = /** @class */ (function () {
2309
2302
  function PurchasesAdTracker() {
package/ios/RNPurchases.m CHANGED
@@ -785,7 +785,7 @@ readyForPromotedProduct:(RCStoreProduct *)product
785
785
  }
786
786
 
787
787
  - (NSString *)platformFlavorVersion {
788
- return @"10.8.0";
788
+ return @"10.8.1";
789
789
  }
790
790
 
791
791
  @end
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-purchases",
3
3
  "title": "React Native Purchases",
4
- "version": "10.8.0",
4
+ "version": "10.8.1",
5
5
  "description": "React Native in-app purchases and subscriptions made easy. Supports iOS and Android. ",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -118,7 +118,7 @@
118
118
  ]
119
119
  },
120
120
  "dependencies": {
121
- "@revenuecat/purchases-js-hybrid-mappings": "18.32.1",
122
- "@revenuecat/purchases-typescript-internal": "18.32.1"
121
+ "@revenuecat/purchases-js-hybrid-mappings": "18.33.1",
122
+ "@revenuecat/purchases-typescript-internal": "18.33.1"
123
123
  }
124
124
  }