@revenuecat/purchases-capacitor 9.0.6 → 9.0.8
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.
|
@@ -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', '13.
|
|
16
|
+
s.dependency 'PurchasesHybridCommon', '13.12.0'
|
|
17
17
|
s.swift_version = '5.1'
|
|
18
18
|
end
|
package/android/build.gradle
CHANGED
|
@@ -39,8 +39,11 @@ android {
|
|
|
39
39
|
abortOnError false
|
|
40
40
|
}
|
|
41
41
|
compileOptions {
|
|
42
|
-
sourceCompatibility JavaVersion.
|
|
43
|
-
targetCompatibility JavaVersion.
|
|
42
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
|
43
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
|
44
|
+
}
|
|
45
|
+
kotlinOptions {
|
|
46
|
+
jvmTarget = '1.8'
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
|
|
@@ -53,7 +56,7 @@ dependencies {
|
|
|
53
56
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
54
57
|
implementation project(':capacitor-android')
|
|
55
58
|
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
56
|
-
implementation 'com.revenuecat.purchases:purchases-hybrid-common:13.
|
|
59
|
+
implementation 'com.revenuecat.purchases:purchases-hybrid-common:13.12.0'
|
|
57
60
|
testImplementation "junit:junit:$junitVersion"
|
|
58
61
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
59
62
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
@@ -77,7 +77,7 @@ class PurchasesPlugin : Plugin() {
|
|
|
77
77
|
|
|
78
78
|
companion object {
|
|
79
79
|
private const val PLATFORM_NAME = "capacitor"
|
|
80
|
-
private const val PLUGIN_VERSION = "9.0.
|
|
80
|
+
private const val PLUGIN_VERSION = "9.0.8"
|
|
81
81
|
|
|
82
82
|
private const val CUSTOMER_INFO_KEY = "customerInfo"
|
|
83
83
|
}
|
|
@@ -144,7 +144,7 @@ class PurchasesPlugin : Plugin() {
|
|
|
144
144
|
@PluginMethod(returnType = PluginMethod.RETURN_PROMISE)
|
|
145
145
|
fun removeCustomerInfoUpdateListener(call: PluginCall) {
|
|
146
146
|
if (rejectIfNotConfigured(call)) return
|
|
147
|
-
val callbackIDToRemove = call.getStringOrReject("
|
|
147
|
+
val callbackIDToRemove = call.getStringOrReject("listenerToRemove") ?: return
|
|
148
148
|
val wasRemoved = customerInfoListeners.remove(callbackIDToRemove)
|
|
149
149
|
bridge?.getSavedCall(callbackIDToRemove)?.setKeepAlive(false)
|
|
150
150
|
call.resolveWithMap(mapOf("wasRemoved" to wasRemoved))
|
|
@@ -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 = "9.0.
|
|
15
|
+
private let platformVersion = "9.0.8"
|
|
16
16
|
|
|
17
17
|
private let customerInfoKey = "customerInfo"
|
|
18
18
|
private let transactionKey = "transaction"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revenuecat/purchases-capacitor",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.8",
|
|
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",
|
|
@@ -72,6 +72,6 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@revenuecat/purchases-typescript-internal-esm": "13.
|
|
75
|
+
"@revenuecat/purchases-typescript-internal-esm": "13.12.0"
|
|
76
76
|
}
|
|
77
77
|
}
|