Skip to content

Commit 08dc9dd

Browse files
Merge pull request #392 from qonversion/release/10.0.0
Release 10.0.0
2 parents 55fe7e6 + dfce748 commit 08dc9dd

File tree

20 files changed

+60
-191
lines changed

20 files changed

+60
-191
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def kotlin_version = getExtOrDefault("kotlinVersion")
8080
dependencies {
8181
implementation "com.facebook.react:react-android"
8282
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
83-
implementation "io.qonversion:sandwich:6.0.11"
83+
implementation "io.qonversion:sandwich:7.1.0"
8484
}
8585

8686
if (isNewArchitectureEnabled()) {

android/src/main/java/com/qonversion/reactnativesdk/NoCodesModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ class NoCodesModule(private val reactContext: ReactApplicationContext) : NativeN
3232
}
3333

3434
@ReactMethod
35-
override fun initialize(projectKey: String, source: String, version: String) {
35+
override fun initialize(projectKey: String, source: String, version: String, proxyUrl: String?) {
3636
noCodesSandwich.storeSdkInfo(reactContext, source, version)
37-
noCodesSandwich.initialize(reactContext, projectKey, null, null, null)
37+
noCodesSandwich.initialize(reactContext, projectKey, null, null, proxyUrl)
3838
noCodesSandwich.setDelegate(noCodesEventListener)
3939
noCodesSandwich.setScreenCustomizationDelegate()
4040
}

example/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ buildscript {
55
compileSdkVersion = 35
66
targetSdkVersion = 35
77
ndkVersion = "27.1.12297006"
8-
kotlinVersion = "2.0.21"
8+
kotlinVersion = "2.1.20"
99
}
1010
repositories {
1111
google()
1212
mavenCentral()
1313
}
1414
dependencies {
15-
classpath("com.android.tools.build:gradle")
15+
classpath("com.android.tools.build:gradle:8.9.2")
1616
classpath("com.facebook.react:react-native-gradle-plugin")
17-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
17+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
1818
}
1919
}
2020

example/ios/Podfile.lock

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,16 @@ PODS:
88
- hermes-engine (0.80.1):
99
- hermes-engine/Pre-built (= 0.80.1)
1010
- hermes-engine/Pre-built (0.80.1)
11-
- NoCodes (0.1.3):
12-
- Qonversion (= 5.13.3)
13-
- Qonversion (5.13.3):
14-
- Qonversion/Main (= 5.13.3)
15-
- qonversion-react-native-sdk (9.0.2):
11+
- Qonversion (6.0.0):
12+
- Qonversion/Main (= 6.0.0)
13+
- qonversion-react-native-sdk (10.0.0):
1614
- boost
1715
- DoubleConversion
1816
- fast_float
1917
- fmt
2018
- glog
2119
- hermes-engine
22-
- QonversionSandwich (= 6.0.10)
20+
- QonversionSandwich (= 7.0.0)
2321
- RCT-Folly
2422
- RCT-Folly/Fabric
2523
- RCTRequired
@@ -42,10 +40,9 @@ PODS:
4240
- ReactCommon/turbomodule/core
4341
- SocketRocket
4442
- Yoga
45-
- Qonversion/Main (5.13.3)
46-
- QonversionSandwich (6.0.10):
47-
- NoCodes (= 0.1.3)
48-
- Qonversion (= 5.13.3)
43+
- Qonversion/Main (6.0.0)
44+
- QonversionSandwich (7.0.0):
45+
- Qonversion (= 6.0.0)
4946
- RCT-Folly (2024.11.18.00):
5047
- boost
5148
- DoubleConversion
@@ -2275,7 +2272,6 @@ DEPENDENCIES:
22752272

22762273
SPEC REPOS:
22772274
trunk:
2278-
- NoCodes
22792275
- Qonversion
22802276
- QonversionSandwich
22812277
- SocketRocket
@@ -2441,11 +2437,10 @@ SPEC CHECKSUMS:
24412437
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
24422438
glog: 5683914934d5b6e4240e497e0f4a3b42d1854183
24432439
hermes-engine: 4f07404533b808de66cf48ac4200463068d0e95a
2444-
NoCodes: 21b87d320a16758c6eb79167ff98010d81b4894e
2445-
Qonversion: 2b32ae8681de3ba02db5b5ed69c8f213ac4a28fa
2446-
qonversion-react-native-sdk: 908023a6c5440ddc45b861a8b1547140c031d3a6
2447-
QonversionSandwich: 6a8c8704a57bc97393ec1684c8932402aa0b7ba9
2448-
RCT-Folly: 59ec0ac1f2f39672a0c6e6cecdd39383b764646f
2440+
Qonversion: 694b88c4bfc06d827c189908e73ea955a1ddde6c
2441+
qonversion-react-native-sdk: 262513c36e2c4ebd3718ff31af1c2cde4e52eb81
2442+
QonversionSandwich: 1795bd19b40c129e76e976d2e5b88d7a7c9174ef
2443+
RCT-Folly: 846fda9475e61ec7bcbf8a3fe81edfcaeb090669
24492444
RCTDeprecation: efa5010912100e944a7ac9a93a157e1def1988fe
24502445
RCTRequired: bbc4cf999ddc4a4b076e076c74dd1d39d0254630
24512446
RCTTypeSafety: d877728097547d0a37786cc9130c43ad71739ac3
@@ -2512,8 +2507,8 @@ SPEC CHECKSUMS:
25122507
RNCClipboard: b228d492733d66e0126e18ce66c6d2f90bacc7e5
25132508
RNSnackbar: c1b235eb606b03938c693ce769ed3059c31dff9b
25142509
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
2515-
Yoga: 703055a9f39562521cdb8657162dfd80f8c174c3
2510+
Yoga: daa1e4de4b971b977b23bc842aaa3e135324f1f3
25162511

25172512
PODFILE CHECKSUM: 05782888d88e3a4a4bbc945c42df54704269e6ea
25182513

2519-
COCOAPODS: 1.15.2
2514+
COCOAPODS: 1.16.2

example/ios/QonversionExample.xcodeproj/project.pbxproj

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,10 @@
195195
inputFileListPaths = (
196196
"${PODS_ROOT}/Target Support Files/Pods-QonversionExample/Pods-QonversionExample-frameworks-${CONFIGURATION}-input-files.xcfilelist",
197197
);
198-
inputPaths = (
199-
);
200198
name = "[CP] Embed Pods Frameworks";
201199
outputFileListPaths = (
202200
"${PODS_ROOT}/Target Support Files/Pods-QonversionExample/Pods-QonversionExample-frameworks-${CONFIGURATION}-output-files.xcfilelist",
203201
);
204-
outputPaths = (
205-
);
206202
runOnlyForDeploymentPostprocessing = 0;
207203
shellPath = /bin/sh;
208204
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-QonversionExample/Pods-QonversionExample-frameworks.sh\"\n";
@@ -238,14 +234,10 @@
238234
inputFileListPaths = (
239235
"${PODS_ROOT}/Target Support Files/Pods-QonversionExample/Pods-QonversionExample-resources-${CONFIGURATION}-input-files.xcfilelist",
240236
);
241-
inputPaths = (
242-
);
243237
name = "[CP] Copy Pods Resources";
244238
outputFileListPaths = (
245239
"${PODS_ROOT}/Target Support Files/Pods-QonversionExample/Pods-QonversionExample-resources-${CONFIGURATION}-output-files.xcfilelist",
246240
);
247-
outputPaths = (
248-
);
249241
runOnlyForDeploymentPostprocessing = 0;
250242
shellPath = /bin/sh;
251243
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-QonversionExample/Pods-QonversionExample-resources.sh\"\n";
@@ -392,7 +384,10 @@
392384
"-DFOLLY_CFG_NO_COROUTINES=1",
393385
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
394386
);
395-
OTHER_LDFLAGS = "$(inherited) ";
387+
OTHER_LDFLAGS = (
388+
"$(inherited)",
389+
" ",
390+
);
396391
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
397392
SDKROOT = iphoneos;
398393
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
@@ -461,7 +456,10 @@
461456
"-DFOLLY_CFG_NO_COROUTINES=1",
462457
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
463458
);
464-
OTHER_LDFLAGS = "$(inherited) ";
459+
OTHER_LDFLAGS = (
460+
"$(inherited)",
461+
" ",
462+
);
465463
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
466464
SDKROOT = iphoneos;
467465
USE_HERMES = true;

ios/RNNoCodes.mm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ - (instancetype)init {
2020

2121
- (void)initialize:(NSString *)projectKey
2222
source:(NSString *)source
23-
version:(NSString *)version {
24-
[self.impl initializeWithProjectKey:projectKey source:source version:version];
23+
version:(NSString *)version
24+
proxyUrl:(NSString *)proxyUrl {
25+
[self.impl initializeWithProjectKey:projectKey source:source version:version proxyUrl:proxyUrl];
2526
}
2627

2728
- (void)setScreenPresentationConfig:(NSDictionary *)configData

ios/RNNoCodesImpl.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ public class RNNoCodesImpl: NSObject {
4242
}
4343

4444
@objc
45-
public func initialize(projectKey: String, source: String, version: String) {
45+
public func initialize(projectKey: String, source: String, version: String, proxyUrl: String?) {
4646
// Ignore source and version, because it's taken from the Qonversion SDK.
47-
noCodesSandwich?.initialize(projectKey: projectKey)
47+
noCodesSandwich?.initialize(projectKey: projectKey, proxyUrl: proxyUrl)
4848
}
4949

5050
@MainActor @objc

ios/RNQonversion.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ - (void)userInfo:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)r
9191
[self.impl userInfo:resolve reject:reject];
9292
}
9393

94-
- (void)remoteConfig:(NSString *)contextKey resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject {
94+
- (void)remoteConfig:(NSString * _Nullable)contextKey resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject {
9595
[self.impl remoteConfig:contextKey resolve:resolve reject:reject];
9696
}
9797

ios/RNQonversionImpl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public class RNQonversionImpl: NSObject {
157157
}
158158

159159
@objc
160-
public func remoteConfig(_ contextKey: String, resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) {
160+
public func remoteConfig(_ contextKey: String?, resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) {
161161
qonversionSandwich?.remoteConfig(contextKey) { result, error in
162162
self.handleResult(result: result, error: error, resolve: resolve, reject: reject)
163163
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@qonversion/react-native-sdk",
33
"title": "React Native Qonversion",
4-
"version": "10.0.0-RC2",
4+
"version": "10.0.0",
55
"description": "Qonversion provides full in-app purchases infrastructure, so you do not need to build your own server for receipt validation. Implement in-app subscriptions, validate user receipts, check subscription status, and provide access to your app features and content using our StoreKit wrapper and Google Play Billing wrapper.",
66
"main": "./lib/module/index.js",
77
"types": "./lib/typescript/src/index.d.ts",

0 commit comments

Comments
 (0)