react-native-insider 6.8.2 → 6.8.3-nh
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/RNInsider.podspec +1 -1
- package/android/build.gradle +2 -6
- package/android/src/main/java/com/useinsider/react/RNInsiderModule.java +5 -5
- package/index.js +18 -44
- package/ios/RNInsider/RNInsider.m +4 -2
- package/package.json +1 -1
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/config.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/local.properties +0 -8
- package/ios/RNInsider.xcodeproj/project.xcworkspace/xcuserdata/ozgur.vatansever.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNInsider.xcodeproj/xcuserdata/ozgur.vatansever.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
package/RNInsider.podspec
CHANGED
package/android/build.gradle
CHANGED
|
@@ -35,8 +35,8 @@ repositories {
|
|
|
35
35
|
|
|
36
36
|
dependencies {
|
|
37
37
|
implementation "com.facebook.react:react-native:${getVersionFromPartner('reactNativeVersion', '+')}"
|
|
38
|
-
implementation ('com.useinsider:insider:14.10.4')
|
|
39
|
-
implementation ('com.useinsider:insiderhybrid:1.3.
|
|
38
|
+
implementation ('com.useinsider:insider:14.10.4-nh')
|
|
39
|
+
implementation ('com.useinsider:insiderhybrid:1.3.2')
|
|
40
40
|
|
|
41
41
|
implementation 'androidx.security:security-crypto:1.1.0-alpha06'
|
|
42
42
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
@@ -46,8 +46,4 @@ dependencies {
|
|
|
46
46
|
implementation 'com.google.firebase:firebase-messaging:24.0.0'
|
|
47
47
|
implementation 'com.google.android.gms:play-services-location:21.3.0'
|
|
48
48
|
implementation 'com.google.android.play:review:2.0.1'
|
|
49
|
-
|
|
50
|
-
implementation 'com.huawei.hms:push:6.12.0.300'
|
|
51
|
-
implementation 'com.huawei.hms:ads-identifier:3.4.62.300'
|
|
52
|
-
implementation 'com.huawei.hms:location:6.11.0.301'
|
|
53
49
|
}
|
|
@@ -491,8 +491,12 @@ public class RNInsiderModule extends ReactContextBaseJavaModule {
|
|
|
491
491
|
|
|
492
492
|
@ReactMethod
|
|
493
493
|
public void getMessageCenterData(int limit, String startDate, String endDate, final Callback messageCenterCallback) {
|
|
494
|
+
// React Native's bridge does not support long type directly, so we use String to pass epoch time.
|
|
495
|
+
long startDateEpoch = Long.parseLong(startDate);
|
|
496
|
+
long endDateEpoch = Long.parseLong(endDate);
|
|
497
|
+
|
|
494
498
|
try {
|
|
495
|
-
InsiderHybrid.getMessageCenterData(limit,
|
|
499
|
+
InsiderHybrid.getMessageCenterData(limit, startDateEpoch, endDateEpoch, new MessageCenterData() {
|
|
496
500
|
@Override
|
|
497
501
|
public void loadMessageCenterData(JSONArray messageCenterData) {
|
|
498
502
|
try {
|
|
@@ -741,10 +745,6 @@ public class RNInsiderModule extends ReactContextBaseJavaModule {
|
|
|
741
745
|
}
|
|
742
746
|
String provider = Insider.Instance.getCurrentProvider(reactContext);
|
|
743
747
|
switch (provider) {
|
|
744
|
-
case "huawei":
|
|
745
|
-
com.huawei.hms.push.RemoteMessage hmsRemoteMessage = new com.huawei.hms.push.RemoteMessage.Builder("insider").setData(remoteMessageStringMap).build();
|
|
746
|
-
Insider.Instance.handleHMSNotification(reactContext, hmsRemoteMessage);
|
|
747
|
-
break;
|
|
748
748
|
case "other":
|
|
749
749
|
case "google":
|
|
750
750
|
RemoteMessage fcmRemoteMessage = new RemoteMessage.Builder("insider").setData(remoteMessageStringMap).build();
|
package/index.js
CHANGED
|
@@ -253,57 +253,31 @@ export default class RNInsider {
|
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
// Message Center & Smart Recommendation
|
|
256
|
-
|
|
257
|
-
if (shouldNotProceed()) return;
|
|
258
|
-
if (checkParameters([
|
|
259
|
-
{ type: 'number', value: limit },
|
|
260
|
-
{ type: 'object', value: startDate },
|
|
261
|
-
{ type: 'object', value: endDate },
|
|
262
|
-
{ type: 'function', value: callback }
|
|
263
|
-
])) {
|
|
264
|
-
showParameterWarningLog("getMessageCenterData", [
|
|
265
|
-
{ type: 'number', value: limit },
|
|
266
|
-
{ type: 'object', value: startDate },
|
|
267
|
-
{ type: 'object', value: endDate },
|
|
268
|
-
{ type: 'function', value: callback }
|
|
269
|
-
]);
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
if ( startDate.getTime() === endDate.getTime() || startDate.getTime() > endDate.getTime()) return;
|
|
273
|
-
try {
|
|
274
|
-
Insider.getMessageCenterData(limit, startDate.toISOString(), endDate.toISOString(), (messageCenterData) => {
|
|
275
|
-
if (Platform.OS !== platformType.ios) {
|
|
276
|
-
callback(messageCenterData);
|
|
277
|
-
return;
|
|
278
|
-
}
|
|
279
|
-
callback(messageCenterData.data);
|
|
280
|
-
});
|
|
281
|
-
} catch (error) {
|
|
282
|
-
Insider.putErrorLog(generateJSONErrorString(error));
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
static getMessageCenterDataArray(limit, startDate, endDate, callback) {
|
|
256
|
+
static getMessageCenterData(limit, startDate, endDate, callback) {
|
|
287
257
|
if (shouldNotProceed()) return;
|
|
288
258
|
if (checkParameters([
|
|
289
|
-
{
|
|
290
|
-
{
|
|
291
|
-
{
|
|
292
|
-
{
|
|
259
|
+
{type: 'number', value: limit},
|
|
260
|
+
{type: 'object', value: startDate},
|
|
261
|
+
{type: 'object', value: endDate},
|
|
262
|
+
{type: 'function', value: callback}
|
|
293
263
|
])) {
|
|
294
|
-
showParameterWarningLog("
|
|
295
|
-
{
|
|
296
|
-
{
|
|
297
|
-
{
|
|
298
|
-
{
|
|
264
|
+
showParameterWarningLog("getMessageCenterData", [
|
|
265
|
+
{type: 'number', value: limit},
|
|
266
|
+
{type: 'object', value: startDate},
|
|
267
|
+
{type: 'object', value: endDate},
|
|
268
|
+
{type: 'function', value: callback}
|
|
299
269
|
]);
|
|
300
270
|
return;
|
|
301
271
|
}
|
|
302
|
-
|
|
272
|
+
const startDateEpoch = startDate.getTime();
|
|
273
|
+
const endDateEpoch = endDate.getTime();
|
|
274
|
+
if (startDateEpoch >= endDateEpoch) return;
|
|
275
|
+
|
|
303
276
|
try {
|
|
304
|
-
|
|
277
|
+
// Passing timestamps as string because React Native's bridge doesn't support long values.
|
|
278
|
+
Insider.getMessageCenterData(limit, startDateEpoch.toString(), endDateEpoch.toString(), (messageCenterData) => {
|
|
305
279
|
if (Platform.OS !== platformType.ios) {
|
|
306
|
-
callback(
|
|
280
|
+
callback(messageCenterData);
|
|
307
281
|
return;
|
|
308
282
|
}
|
|
309
283
|
callback(messageCenterData.data);
|
|
@@ -311,7 +285,7 @@ export default class RNInsider {
|
|
|
311
285
|
} catch (error) {
|
|
312
286
|
Insider.putErrorLog(generateJSONErrorString(error));
|
|
313
287
|
}
|
|
314
|
-
|
|
288
|
+
}
|
|
315
289
|
|
|
316
290
|
static getSmartRecommendation(recommendationID, locale, currency, callback) {
|
|
317
291
|
if (shouldNotProceed()) return;
|
|
@@ -382,9 +382,11 @@ RCT_EXPORT_METHOD(wishlistCleared) {
|
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
RCT_EXPORT_METHOD(getMessageCenterData:(
|
|
385
|
+
RCT_EXPORT_METHOD(getMessageCenterData:(NSInteger)limit startDate:(NSString *)startDate endDate:(NSString *)endDate callback:(RCTResponseSenderBlock) callback) {
|
|
386
386
|
@try {
|
|
387
|
-
|
|
387
|
+
NSInteger startDateEpoch = [startDate integerValue];
|
|
388
|
+
NSInteger endDateEpoch = [endDate integerValue];
|
|
389
|
+
[InsiderHybrid getMessageCenterDataWithLimit:limit startDate:startDateEpoch endDate:endDateEpoch success:^(NSArray *messageCenterData) {
|
|
388
390
|
callback(messageCenterData);
|
|
389
391
|
}];
|
|
390
392
|
} @catch (NSException *e){
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
package/android/local.properties
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
-
# as it contains information specific to your local configuration.
|
|
3
|
-
#
|
|
4
|
-
# Location of the SDK. This is only used by Gradle.
|
|
5
|
-
# For customization when using a Version Control System, please read the
|
|
6
|
-
# header note.
|
|
7
|
-
#Wed Jul 02 14:27:03 TRT 2025
|
|
8
|
-
sdk.dir=/Users/ozgur.vatansever/Library/Android/sdk
|
|
Binary file
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>SchemeUserState</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>RNInsider.xcscheme_^#shared#^_</key>
|
|
8
|
-
<dict>
|
|
9
|
-
<key>orderHint</key>
|
|
10
|
-
<integer>0</integer>
|
|
11
|
-
</dict>
|
|
12
|
-
</dict>
|
|
13
|
-
</dict>
|
|
14
|
-
</plist>
|