Skip to content

Commit 30f7164

Browse files
committed
Update Purchasely to version 5.6.0 and remove isDebugModeEnabled method
1 parent ef3b381 commit 30f7164

4 files changed

Lines changed: 12 additions & 16 deletions

File tree

example/ios/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PODS:
88
- hermes-engine (0.79.2):
99
- hermes-engine/Pre-built (= 0.79.2)
1010
- hermes-engine/Pre-built (0.79.2)
11-
- Purchasely (5.5.0)
11+
- Purchasely (5.6.0)
1212
- RCT-Folly (2024.11.18.00):
1313
- boost
1414
- DoubleConversion
@@ -1333,8 +1333,8 @@ PODS:
13331333
- React-jsiexecutor
13341334
- React-RCTFBReactNativeSpec
13351335
- ReactCommon/turbomodule/core
1336-
- react-native-purchasely (5.5.0):
1337-
- Purchasely (= 5.5.0)
1336+
- react-native-purchasely (5.6.0):
1337+
- Purchasely (= 5.6.0)
13381338
- React-Core
13391339
- react-native-safe-area-context (5.5.2):
13401340
- DoubleConversion
@@ -2031,7 +2031,7 @@ SPEC CHECKSUMS:
20312031
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
20322032
glog: 5683914934d5b6e4240e497e0f4a3b42d1854183
20332033
hermes-engine: 314be5250afa5692b57b4dd1705959e1973a8ebe
2034-
Purchasely: 08c59a2bc706a6f907d1f7a9cfa173d77796f018
2034+
Purchasely: 31defad1c85a35f5ecd9f9a71c6613f8a7605eab
20352035
RCT-Folly: e78785aa9ba2ed998ea4151e314036f6c49e6d82
20362036
RCTDeprecation: 83ffb90c23ee5cea353bd32008a7bca100908f8c
20372037
RCTRequired: eb7c0aba998009f47a540bec9e9d69a54f68136e
@@ -2063,7 +2063,7 @@ SPEC CHECKSUMS:
20632063
React-logger: 8edfcedc100544791cd82692ca5a574240a16219
20642064
React-Mapbuffer: c3f4b608e4a59dd2f6a416ef4d47a14400194468
20652065
React-microtasksnativemodule: 054f34e9b82f02bd40f09cebd4083828b5b2beb6
2066-
react-native-purchasely: b713f2ccea1ced7658edb8e7304b8b92795be39d
2066+
react-native-purchasely: 1be0819f5309c65600e6e7380b2052b0e457ea97
20672067
react-native-safe-area-context: 7e926a200d4bc9c56562275743705c6b56176455
20682068
React-NativeModulesApple: 2c4377e139522c3d73f5df582e4f051a838ff25e
20692069
React-oscompat: ef5df1c734f19b8003e149317d041b8ce1f7d29c

packages/purchasely/android/src/main/java/com/reactnativepurchasely/PurchaselyModule.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -940,11 +940,6 @@ fun decrementUserAttribute(key: String, value: Double, legalBasis: String?) {
940940
Purchasely.debugMode = enabled
941941
}
942942

943-
@ReactMethod
944-
fun isDebugModeEnabled(promise: Promise) {
945-
promise.resolve(Purchasely.debugMode)
946-
}
947-
948943
private fun mapPurposesFromReadableArray(purposes: ReadableArray): Set<PLYDataProcessingPurpose> {
949944
val result = mutableSetOf<PLYDataProcessingPurpose>()
950945

packages/purchasely/ios/PurchaselyRN.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,12 @@ - (NSInteger) findIndexPresentationLoadedFor:(NSString * _Nullable)presentationI
13821382
}
13831383
}
13841384

1385+
RCT_EXPORT_METHOD(setDebugMode:(BOOL)enabled) {
1386+
dispatch_async(dispatch_get_main_queue(), ^{
1387+
[Purchasely setDebugMode: enabled];
1388+
});
1389+
}
1390+
13851391
// ****************************************************************************
13861392
#pragma mark - Events
13871393

packages/purchasely/src/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -488,10 +488,6 @@ const setDebugMode = (debugMode: boolean): void => {
488488
return NativeModules.Purchasely.setDebugMode(debugMode);
489489
};
490490

491-
const isDebugModeEnabled = (): Promise<boolean> => {
492-
return NativeModules.Purchasely.isDebugModeEnabled();
493-
}
494-
495491
const Purchasely = {
496492
start,
497493
addEventListener,
@@ -562,8 +558,7 @@ const Purchasely = {
562558
removeDynamicOffering,
563559
clearDynamicOfferings,
564560
revokeDataProcessingConsent,
565-
setDebugMode,
566-
isDebugModeEnabled
561+
setDebugMode
567562
};
568563

569564
export * from './types';

0 commit comments

Comments
 (0)