react-native-iap 8.6.5 → 8.6.6
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/RNIap.podspec +1 -1
- package/ios/RNIapIos.swift +5 -2
- package/package.json +2 -1
package/RNIap.podspec
CHANGED
|
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.license = package["license"]
|
|
13
13
|
s.authors = package["author"]
|
|
14
14
|
|
|
15
|
-
s.platforms = { :ios => "10.0" }
|
|
15
|
+
s.platforms = { :ios => "10.0" , :tvos => "10.0"}
|
|
16
16
|
s.source = { :git => "https://github.com/dooboolab/react-native-iap.git", :tag => "#{s.version}" }
|
|
17
17
|
|
|
18
18
|
s.source_files = "ios/*.{h,m,mm,swift}"
|
package/ios/RNIapIos.swift
CHANGED
|
@@ -209,7 +209,7 @@ class RNIapIos: RCTEventEmitter, SKRequestDelegate, SKPaymentTransactionObserver
|
|
|
209
209
|
|
|
210
210
|
let payment = SKMutablePayment(product: prod)
|
|
211
211
|
|
|
212
|
-
if applicationUsername
|
|
212
|
+
if let applicationUsername = applicationUsername {
|
|
213
213
|
payment.applicationUsername = applicationUsername
|
|
214
214
|
}
|
|
215
215
|
SKPaymentQueue.default().add(payment)
|
|
@@ -792,7 +792,10 @@ class RNIapIos: RCTEventEmitter, SKRequestDelegate, SKPaymentTransactionObserver
|
|
|
792
792
|
for discount in product.discounts {
|
|
793
793
|
let formatter = NumberFormatter()
|
|
794
794
|
formatter.numberStyle = .currency
|
|
795
|
-
|
|
795
|
+
let priceLocale: Locale? = discount.priceLocale
|
|
796
|
+
if let pLocale = priceLocale {
|
|
797
|
+
formatter.locale = pLocale
|
|
798
|
+
}
|
|
796
799
|
localizedPrice = formatter.string(from: discount.price)
|
|
797
800
|
var numberOfPeriods: String?
|
|
798
801
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-iap",
|
|
3
|
-
"version": "8.6.
|
|
3
|
+
"version": "8.6.6",
|
|
4
4
|
"description": "React Native In App Purchase Module.",
|
|
5
5
|
"repository": "https://github.com/dooboolab/react-native-iap",
|
|
6
6
|
"author": "dooboolab <support@dooboolab.com> (https://github.com/dooboolab)",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"babel-jest": "28.1.3",
|
|
82
82
|
"eslint": "8.20.0",
|
|
83
83
|
"eslint-config-prettier": "8.5.0",
|
|
84
|
+
"eslint-plugin-jest": "26.8.2",
|
|
84
85
|
"eslint-plugin-prettier": "4.2.1",
|
|
85
86
|
"eslint-plugin-simple-import-sort": "7.0.0",
|
|
86
87
|
"jest": "28.1.3",
|