@revenuecat/purchases-capacitor 7.5.7 → 8.0.0-beta.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.
package/README.md CHANGED
@@ -1097,28 +1097,28 @@ Contains all the entitlements associated to the user.
1097
1097
 
1098
1098
  The EntitlementInfo object gives you access to all of the information about the status of a user entitlement.
1099
1099
 
1100
- | Prop | Type | Description |
1101
- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1102
- | **`identifier`** | <code>string</code> | The entitlement identifier configured in the RevenueCat dashboard |
1103
- | **`isActive`** | <code>boolean</code> | True if the user has access to this entitlement |
1104
- | **`willRenew`** | <code>boolean</code> | True if the underlying subscription is set to renew at the end of the billing period (expirationDate). |
1105
- | **`periodType`** | <code>string</code> | The last period type this entitlement was in. Either: NORMAL, INTRO, TRIAL. |
1106
- | **`latestPurchaseDate`** | <code>string</code> | The latest purchase or renewal date for the entitlement in ISO8601 format. |
1107
- | **`latestPurchaseDateMillis`** | <code>number</code> | The latest purchase or renewal date for the entitlement in milliseconds. |
1108
- | **`originalPurchaseDate`** | <code>string</code> | The first date this entitlement was purchased in ISO8601 format. |
1109
- | **`originalPurchaseDateMillis`** | <code>number</code> | The first date this entitlement was purchased in milliseconds. |
1110
- | **`expirationDate`** | <code>string \| null</code> | The expiration date for the entitlement in ISO8601, can be `null` for lifetime access. If the `periodType` is `trial`, this is the trial expiration date. |
1111
- | **`expirationDateMillis`** | <code>number \| null</code> | The expiration date for the entitlement in milliseconds, can be `null` for lifetime access. If the `periodType` is `trial`, this is the trial expiration date. |
1112
- | **`store`** | <code>'PLAY_STORE' \| 'APP_STORE' \| 'STRIPE' \| 'MAC_APP_STORE' \| 'PROMOTIONAL' \| 'AMAZON' \| 'RC_BILLING' \| 'UNKNOWN_STORE'</code> | The store where this entitlement was unlocked from. |
1113
- | **`productIdentifier`** | <code>string</code> | The product identifier that unlocked this entitlement |
1114
- | **`productPlanIdentifier`** | <code>string \| null</code> | The product plan identifier that unlocked this entitlement. Android subscriptions only, null on consumables and iOS. |
1115
- | **`isSandbox`** | <code>boolean</code> | False if this entitlement is unlocked via a production purchase |
1116
- | **`unsubscribeDetectedAt`** | <code>string \| null</code> | The date an unsubscribe was detected in ISO8601 format. Can be `null`. |
1117
- | **`unsubscribeDetectedAtMillis`** | <code>number \| null</code> | The date an unsubscribe was detected in milliseconds. Can be `null`. |
1118
- | **`billingIssueDetectedAt`** | <code>string \| null</code> | The date a billing issue was detected in ISO8601 format. Can be `null` if there is no billing issue or an issue has been resolved |
1119
- | **`billingIssueDetectedAtMillis`** | <code>number \| null</code> | The date a billing issue was detected in milliseconds. Can be `null` if there is no billing issue or an issue has been resolved |
1120
- | **`ownershipType`** | <code>'FAMILY_SHARED' \| 'PURCHASED' \| 'UNKNOWN'</code> | Supported ownership types for an entitlement. PURCHASED if the purchase was made directly by this user. FAMILY_SHARED if the purchase has been shared to this user by a family member. UNKNOWN if the purchase has no or an unknown ownership type. |
1121
- | **`verification`** | <code><a href="#verification_result">VERIFICATION_RESULT</a></code> | If entitlement verification was enabled, the result of that verification. If not, VerificationResult.NOT_REQUESTED |
1100
+ | Prop | Type | Description |
1101
+ | ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1102
+ | **`identifier`** | <code>string</code> | The entitlement identifier configured in the RevenueCat dashboard |
1103
+ | **`isActive`** | <code>boolean</code> | True if the user has access to this entitlement |
1104
+ | **`willRenew`** | <code>boolean</code> | True if the underlying subscription is set to renew at the end of the billing period (expirationDate). |
1105
+ | **`periodType`** | <code>string</code> | The last period type this entitlement was in. Either: NORMAL, INTRO, TRIAL. |
1106
+ | **`latestPurchaseDate`** | <code>string</code> | The latest purchase or renewal date for the entitlement in ISO8601 format. |
1107
+ | **`latestPurchaseDateMillis`** | <code>number</code> | The latest purchase or renewal date for the entitlement in milliseconds. |
1108
+ | **`originalPurchaseDate`** | <code>string</code> | The first date this entitlement was purchased in ISO8601 format. |
1109
+ | **`originalPurchaseDateMillis`** | <code>number</code> | The first date this entitlement was purchased in milliseconds. |
1110
+ | **`expirationDate`** | <code>string \| null</code> | The expiration date for the entitlement in ISO8601, can be `null` for lifetime access. If the `periodType` is `trial`, this is the trial expiration date. |
1111
+ | **`expirationDateMillis`** | <code>number \| null</code> | The expiration date for the entitlement in milliseconds, can be `null` for lifetime access. If the `periodType` is `trial`, this is the trial expiration date. |
1112
+ | **`store`** | <code>'PLAY_STORE' \| 'APP_STORE' \| 'STRIPE' \| 'MAC_APP_STORE' \| 'PROMOTIONAL' \| 'AMAZON' \| 'RC_BILLING' \| 'EXTERNAL' \| 'UNKNOWN_STORE'</code> | The store where this entitlement was unlocked from. |
1113
+ | **`productIdentifier`** | <code>string</code> | The product identifier that unlocked this entitlement |
1114
+ | **`productPlanIdentifier`** | <code>string \| null</code> | The product plan identifier that unlocked this entitlement. Android subscriptions only, null on consumables and iOS. |
1115
+ | **`isSandbox`** | <code>boolean</code> | False if this entitlement is unlocked via a production purchase |
1116
+ | **`unsubscribeDetectedAt`** | <code>string \| null</code> | The date an unsubscribe was detected in ISO8601 format. Can be `null`. |
1117
+ | **`unsubscribeDetectedAtMillis`** | <code>number \| null</code> | The date an unsubscribe was detected in milliseconds. Can be `null`. |
1118
+ | **`billingIssueDetectedAt`** | <code>string \| null</code> | The date a billing issue was detected in ISO8601 format. Can be `null` if there is no billing issue or an issue has been resolved |
1119
+ | **`billingIssueDetectedAtMillis`** | <code>number \| null</code> | The date a billing issue was detected in milliseconds. Can be `null` if there is no billing issue or an issue has been resolved |
1120
+ | **`ownershipType`** | <code>'FAMILY_SHARED' \| 'PURCHASED' \| 'UNKNOWN'</code> | Supported ownership types for an entitlement. PURCHASED if the purchase was made directly by this user. FAMILY_SHARED if the purchase has been shared to this user by a family member. UNKNOWN if the purchase has no or an unknown ownership type. |
1121
+ | **`verification`** | <code><a href="#verification_result">VERIFICATION_RESULT</a></code> | If entitlement verification was enabled, the result of that verification. If not, VerificationResult.NOT_REQUESTED |
1122
1122
 
1123
1123
 
1124
1124
  #### PurchasesStoreTransaction
@@ -13,6 +13,6 @@ Pod::Spec.new do |s|
13
13
  s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
14
  s.ios.deployment_target = '13.0'
15
15
  s.dependency 'Capacitor'
16
- s.dependency 'PurchasesHybridCommon', '10.4.0'
16
+ s.dependency 'PurchasesHybridCommon', '10.4.1'
17
17
  s.swift_version = '5.1'
18
18
  end
@@ -11,7 +11,7 @@ buildscript {
11
11
  mavenCentral()
12
12
  }
13
13
  dependencies {
14
- classpath 'com.android.tools.build:gradle:8.1.0'
14
+ classpath 'com.android.tools.build:gradle:8.2.1'
15
15
  classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.20'
16
16
  }
17
17
  }
@@ -21,10 +21,10 @@ apply plugin: 'org.jetbrains.kotlin.android'
21
21
 
22
22
  android {
23
23
  namespace "com.revenuecat.purchases.capacitor"
24
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
24
+ compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
25
25
  defaultConfig {
26
26
  minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
27
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33
27
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
28
28
  versionCode 1
29
29
  versionName "1.0"
30
30
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -53,7 +53,7 @@ dependencies {
53
53
  implementation fileTree(dir: 'libs', include: ['*.jar'])
54
54
  implementation project(':capacitor-android')
55
55
  implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
56
- implementation 'com.revenuecat.purchases:purchases-hybrid-common:10.4.0'
56
+ implementation 'com.revenuecat.purchases:purchases-hybrid-common:10.4.1'
57
57
  testImplementation "junit:junit:$junitVersion"
58
58
  androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
59
59
  androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
@@ -76,7 +76,7 @@ class PurchasesPlugin : Plugin() {
76
76
 
77
77
  companion object {
78
78
  private const val PLATFORM_NAME = "capacitor"
79
- private const val PLUGIN_VERSION = "7.5.7"
79
+ private const val PLUGIN_VERSION = "8.0.0-beta.1"
80
80
 
81
81
  private const val CUSTOMER_INFO_KEY = "customerInfo"
82
82
  }
package/dist/docs.json CHANGED
@@ -1623,7 +1623,7 @@
1623
1623
  "tags": [],
1624
1624
  "docs": "The store where this entitlement was unlocked from.",
1625
1625
  "complexTypes": [],
1626
- "type": "'PLAY_STORE' | 'APP_STORE' | 'STRIPE' | 'MAC_APP_STORE' | 'PROMOTIONAL' | 'AMAZON' | 'RC_BILLING' | 'UNKNOWN_STORE'"
1626
+ "type": "'PLAY_STORE' | 'APP_STORE' | 'STRIPE' | 'MAC_APP_STORE' | 'PROMOTIONAL' | 'AMAZON' | 'RC_BILLING' | 'EXTERNAL' | 'UNKNOWN_STORE'"
1627
1627
  },
1628
1628
  {
1629
1629
  "name": "productIdentifier",
@@ -12,7 +12,7 @@ import RevenueCat
12
12
  @objc(PurchasesPlugin)
13
13
  public class PurchasesPlugin: CAPPlugin, PurchasesDelegate {
14
14
  private let platformFlavor = "capacitor"
15
- private let platformVersion = "7.5.7"
15
+ private let platformVersion = "8.0.0-beta.1"
16
16
 
17
17
  private let customerInfoKey = "customerInfo"
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revenuecat/purchases-capacitor",
3
- "version": "7.5.7",
3
+ "version": "8.0.0-beta.1",
4
4
  "description": "Capacitor in-app purchases and subscriptions made easy. Support for iOS and Android.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -43,10 +43,10 @@
43
43
  "prepublishOnly": "npm run build"
44
44
  },
45
45
  "devDependencies": {
46
- "@capacitor/android": "^5.0.0",
47
- "@capacitor/core": "^5.0.0",
46
+ "@capacitor/android": "^6.0.0",
47
+ "@capacitor/core": "^6.0.0",
48
48
  "@capacitor/docgen": "^0.0.18",
49
- "@capacitor/ios": "^5.0.0",
49
+ "@capacitor/ios": "^6.0.0",
50
50
  "@ionic/eslint-config": "^0.3.0",
51
51
  "@ionic/prettier-config": "^1.0.1",
52
52
  "eslint": "^7.11.0",
@@ -57,7 +57,7 @@
57
57
  "typescript": "~4.1.5"
58
58
  },
59
59
  "peerDependencies": {
60
- "@capacitor/core": "^5.0.0"
60
+ "@capacitor/core": "^6.0.0"
61
61
  },
62
62
  "prettier": "@ionic/prettier-config",
63
63
  "eslintConfig": {
@@ -72,6 +72,6 @@
72
72
  }
73
73
  },
74
74
  "dependencies": {
75
- "@revenuecat/purchases-typescript-internal-esm": "10.4.0"
75
+ "@revenuecat/purchases-typescript-internal-esm": "10.4.1"
76
76
  }
77
77
  }