react-native-insider 6.8.1-nh → 6.8.2-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 CHANGED
@@ -9,12 +9,12 @@ Pod::Spec.new do |s|
9
9
  s.authors = package_json['author']
10
10
  s.license = 'MIT'
11
11
  s.platform = :ios, '12.0'
12
- s.source = {:http => 'https://mobilesdk.useinsider.com/iOS/13.12.1/InsiderMobileIOSFramework.zip'}
12
+ s.source = {:http => 'https://mobilesdk.useinsider.com/iOS/13.12.2/InsiderMobileIOSFramework.zip'}
13
13
  s.source_files = 'ios/RNInsider/*.{h,m}'
14
14
  s.requires_arc = true
15
15
  s.static_framework = true
16
16
  s.dependency 'React'
17
- s.dependency 'InsiderMobile', '13.12.1'
18
- s.dependency 'InsiderGeofence', '1.2.0'
19
- s.dependency 'InsiderHybrid', '1.7.0'
17
+ s.dependency 'InsiderMobile', '13.12.2'
18
+ s.dependency 'InsiderGeofence', '1.2.2'
19
+ s.dependency 'InsiderHybrid', '1.7.2'
20
20
  end
File without changes
@@ -0,0 +1,2 @@
1
+ #Wed Jul 02 14:28:45 TRT 2025
2
+ gradle.version=8.9
@@ -0,0 +1,2 @@
1
+ #Wed Jul 02 14:27:03 TRT 2025
2
+ java.home=/Applications/Android Studio.app/Contents/jbr/Contents/Home
File without changes
@@ -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.2-nh')
39
- implementation ('com.useinsider:insiderhybrid:1.3.0')
38
+ implementation ('com.useinsider:insider:14.10.4-nh')
39
+ implementation ('com.useinsider:insiderhybrid:1.3.1')
40
40
 
41
41
  implementation 'androidx.security:security-crypto:1.1.0-alpha06'
42
42
  implementation 'androidx.legacy:legacy-support-v4:1.0.0'
@@ -0,0 +1,8 @@
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
package/index.js CHANGED
@@ -856,7 +856,7 @@ export default class RNInsider {
856
856
  try {
857
857
  if (shouldNotProceed()) return;
858
858
 
859
- return Insider.disableInAppMessages();
859
+ return Insider.enableInAppMessages();
860
860
  } catch (error) {
861
861
  Insider.putErrorLog(generateJSONErrorString(error));
862
862
  }
@@ -30,7 +30,6 @@ RCT_EXPORT_METHOD(initWithLaunchOptions:(NSDictionary *)launchOptions partnerNam
30
30
  [Insider registerInsiderCallbackWithSelector:@selector(emitEvent:) sender:self];
31
31
  [Insider setHybridSDKVersion:sdkVersion];
32
32
  [Insider initWithLaunchOptions:nil partnerName:partnerName appGroup:appGroup];
33
- [Insider hybridApplicationDidBecomeActive];
34
33
  } @catch (NSException *e){
35
34
  [Insider sendError:e desc:[NSString stringWithFormat:@"%s:%d", __func__, __LINE__]];
36
35
  }
@@ -41,7 +40,6 @@ RCT_EXPORT_METHOD(initWithCustomEndpoint:(NSDictionary *)launchOptions partnerNa
41
40
  [Insider registerInsiderCallbackWithSelector:@selector(emitEvent:) sender:self];
42
41
  [Insider setHybridSDKVersion:sdkVersion];
43
42
  [Insider initWithLaunchOptions:nil partnerName:partnerName appGroup:appGroup customEndpoint:endpoint];
44
- [Insider hybridApplicationDidBecomeActive];
45
43
  } @catch (NSException *e) {
46
44
  [Insider sendError:e desc:[NSString stringWithFormat:@"%s:%d", __func__, __LINE__]];
47
45
  }
@@ -0,0 +1,14 @@
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-insider",
3
- "version": "6.8.1-nh",
3
+ "version": "6.8.2-nh",
4
4
  "description": "React Native Insider SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -19,6 +19,15 @@ declare class RNInsiderProduct {
19
19
  setStock(stock: number): this;
20
20
  setQuantity(quantity: number): this;
21
21
  setGroupCode(groupCode: string): this;
22
+ setBrand(brand: string): this;
23
+ setSku(sku: string): this;
24
+ setGender(gender: string): this;
25
+ setMultipack(multipack: string): this;
26
+ setProductType(productType: string): this;
27
+ setGtin(gtin: string): this;
28
+ setDescription(description: string): this;
29
+ setTags(tags: string[]): this;
30
+ setInStock(isInStock: boolean): this;
22
31
 
23
32
  setCustomAttributeWithString(key: string, value: string): this;
24
33
  setCustomAttributeWithInt(key: string, value: number): this;
@@ -25,6 +25,16 @@ const VOUCHER_DISCOUNT = 'voucher_discount';
25
25
  const PROMOTION_NAME = 'promotion_name';
26
26
  const PROMOTION_DISCOUNT = 'promotion_discount';
27
27
  const GROUP_CODE = 'groupcode';
28
+ const BRAND = 'brnd';
29
+ const SKU = 'sku';
30
+ const PRODUCT_GENDER = 'ge';
31
+ const MULTIPACK = 'mlt';
32
+ const PRODUCT_TYPE = 'pt';
33
+ const GTIN = 'gt';
34
+ const DESCRIPTION = 'desc';
35
+ const TAGS = 'tags';
36
+ const IS_IN_STOCK = 'iis';
37
+
28
38
 
29
39
  export default class RNInsiderProduct {
30
40
  productMustMap = {};
@@ -194,6 +204,132 @@ export default class RNInsiderProduct {
194
204
  return this;
195
205
  }
196
206
 
207
+ setBrand(brand) {
208
+ if (shouldNotProceed()) return this;
209
+ if (checkParameters([{ type: 'string', value: brand }])) {
210
+ showParameterWarningLog("setBrand", [{ type: 'string', value: brand }]);
211
+ return this;
212
+ }
213
+ try {
214
+ this.productOptMap[BRAND] = brand;
215
+ } catch (error) {
216
+ Insider.putErrorLog(generateJSONErrorString(error));
217
+ }
218
+ return this;
219
+ }
220
+
221
+ setSku(sku) {
222
+ if (shouldNotProceed()) return this;
223
+ if (checkParameters([{ type: 'string', value: sku }])) {
224
+ showParameterWarningLog("setSku", [{ type: 'string', value: sku }]);
225
+ return this;
226
+ }
227
+ try {
228
+ this.productOptMap[SKU] = sku;
229
+ } catch (error) {
230
+ Insider.putErrorLog(generateJSONErrorString(error));
231
+ }
232
+ return this;
233
+ }
234
+
235
+ setGender(gender) {
236
+ if (shouldNotProceed()) return this;
237
+ if (checkParameters([{ type: 'string', value: gender }])) {
238
+ showParameterWarningLog("setGender", [{ type: 'string', value: gender }]);
239
+ return this;
240
+ }
241
+ try {
242
+ this.productOptMap[PRODUCT_GENDER] = gender;
243
+ } catch (error) {
244
+ Insider.putErrorLog(generateJSONErrorString(error));
245
+ }
246
+ return this;
247
+ }
248
+
249
+ setMultipack(multipack) {
250
+ if (shouldNotProceed()) return this;
251
+ if (checkParameters([{ type: 'string', value: multipack }])) {
252
+ showParameterWarningLog("setMultipack", [{ type: 'string', value: multipack }]);
253
+ return this;
254
+ }
255
+ try {
256
+ this.productOptMap[MULTIPACK] = multipack;
257
+ } catch (error) {
258
+ Insider.putErrorLog(generateJSONErrorString(error));
259
+ }
260
+ return this;
261
+ }
262
+
263
+ setProductType(productType) {
264
+ if (shouldNotProceed()) return this;
265
+ if (checkParameters([{ type: 'string', value: productType }])) {
266
+ showParameterWarningLog("setProductType", [{ type: 'string', value: productType }]);
267
+ return this;
268
+ }
269
+ try {
270
+ this.productOptMap[PRODUCT_TYPE] = productType;
271
+ } catch (error) {
272
+ Insider.putErrorLog(generateJSONErrorString(error));
273
+ }
274
+ return this;
275
+ }
276
+
277
+ setGtin(gtin) {
278
+ if (shouldNotProceed()) return this;
279
+ if (checkParameters([{ type: 'string', value: gtin }])) {
280
+ showParameterWarningLog("setGtin", [{ type: 'string', value: gtin }]);
281
+ return this;
282
+ }
283
+ try {
284
+ this.productOptMap[GTIN] = gtin;
285
+ } catch (error) {
286
+ Insider.putErrorLog(generateJSONErrorString(error));
287
+ }
288
+ return this;
289
+ }
290
+
291
+ setDescription(description) {
292
+ if (shouldNotProceed()) return this;
293
+ if (checkParameters([{ type: 'string', value: description }])) {
294
+ showParameterWarningLog("setDescription", [{ type: 'string', value: description }]);
295
+ return this;
296
+ }
297
+ try {
298
+ this.productOptMap[DESCRIPTION] = description;
299
+ } catch (error) {
300
+ Insider.putErrorLog(generateJSONErrorString(error));
301
+ }
302
+ return this;
303
+ }
304
+
305
+ setTags(tags) {
306
+ if (shouldNotProceed()) return this;
307
+ if (!Array.isArray(tags) || tags.some(tag => typeof tag !== 'string')) {
308
+ showParameterWarningLog("setTags", [{ type: 'array<string>', value: tags }]);
309
+ return this;
310
+ }
311
+ try {
312
+ this.productOptMap[TAGS] = tags;
313
+ } catch (error) {
314
+ Insider.putErrorLog(generateJSONErrorString(error));
315
+ }
316
+ return this;
317
+ }
318
+
319
+ setInStock(isInStock) {
320
+ if (shouldNotProceed()) return this;
321
+ if (typeof isInStock !== 'boolean') {
322
+ showParameterWarningLog("setInStock", [{ type: 'boolean', value: isInStock }]);
323
+ return this;
324
+ }
325
+ try {
326
+ this.productOptMap[IS_IN_STOCK] = isInStock;
327
+ } catch (error) {
328
+ Insider.putErrorLog(generateJSONErrorString(error));
329
+ }
330
+ return this;
331
+ }
332
+
197
333
  setCustomAttributeWithString(key, value) {
198
334
  if (shouldNotProceed()) return this;
199
335
  if (checkParameters([{ type: 'string', value: key }, { type: 'string', value }])) {