@selligent-marketing-cloud/selligent-react-native 2.3.0 → 2.7.0

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.
Files changed (79) hide show
  1. package/README.md +311 -315
  2. package/RNSelligent.podspec +3 -4
  3. package/android/build.gradle +39 -31
  4. package/android/libs/sdk-release.aar +0 -0
  5. package/android/src/main/java/com/selligent/RNSelligent.java +41 -18
  6. package/android/src/main/java/com/selligent/SMSettingsFactory.java +1 -1
  7. package/android/src/main/java/com/selligent/Settings.java +14 -7
  8. package/constants.d.ts +18 -12
  9. package/constants.js +29 -25
  10. package/index.android.js +42 -0
  11. package/index.d.ts +14 -12
  12. package/index.ios.js +12 -29
  13. package/index.js +11 -31
  14. package/ios/ClientSettings.h +2 -1
  15. package/ios/ClientSettings.m +4 -2
  16. package/ios/EnumMapper.h +3 -8
  17. package/ios/EnumMapper.m +8 -26
  18. package/ios/RNSelligent.m +25 -27
  19. package/ios/RemoteMessageDisplayType.h +5 -0
  20. package/ios/SMManagerSetting+ClientSettings.m +10 -4
  21. package/ios/SelligentReactNative.xcodeproj/project.pbxproj +4 -12
  22. package/ios/include/SMBaseMessage.h +8 -12
  23. package/ios/include/SMBlock.h +2 -2
  24. package/ios/include/SMClearCache.h +0 -2
  25. package/ios/include/SMContentAlignment.h +1 -2
  26. package/ios/include/SMDeviceInfos.h +10 -8
  27. package/ios/include/SMDisplayMode.h +1 -2
  28. package/ios/include/SMEvent.h +20 -16
  29. package/ios/include/SMEventUser.h +0 -1
  30. package/ios/include/SMEventUserLogin.h +11 -16
  31. package/ios/include/SMEventUserLogout.h +12 -16
  32. package/ios/include/SMEventUserRegistration.h +12 -17
  33. package/ios/include/SMEventUserUnregistration.h +12 -16
  34. package/ios/include/SMFailure.h +1 -6
  35. package/ios/include/SMHelper.h +7 -2
  36. package/ios/include/SMInAppContentHTMLViewController.h +11 -9
  37. package/ios/include/SMInAppContentImageViewController.h +6 -6
  38. package/ios/include/SMInAppContentMessage.h +12 -12
  39. package/ios/include/SMInAppContentStyleOptions.h +91 -79
  40. package/ios/include/SMInAppContentType.h +2 -3
  41. package/ios/include/SMInAppContentURLViewController.h +10 -9
  42. package/ios/include/SMInAppContentViewController.h +3 -6
  43. package/ios/include/SMInAppMessage.h +22 -14
  44. package/ios/include/SMInAppMessageType.h +2 -6
  45. package/ios/include/SMInAppRefreshType.h +1 -1
  46. package/ios/include/SMLink.h +7 -11
  47. package/ios/include/SMLog.h +1 -1
  48. package/ios/include/SMManager+DataTransaction.h +6 -13
  49. package/ios/include/SMManager+InAppContent.h +20 -23
  50. package/ios/include/SMManager+InAppMessage.h +65 -42
  51. package/ios/include/SMManager+Log.h +3 -14
  52. package/ios/include/SMManager+RemoteNotification.h +38 -34
  53. package/ios/include/SMManager+SMEvent.h +10 -10
  54. package/ios/include/SMManager+SMLink.h +44 -0
  55. package/ios/include/SMManager+SilentPush.h +5 -22
  56. package/ios/include/SMManager+StyleOptions.h +5 -8
  57. package/ios/include/SMManager+UserNotification.h +45 -33
  58. package/ios/include/SMManager+ViewController.h +45 -0
  59. package/ios/include/SMManager.h +14 -23
  60. package/ios/include/SMManagerInAppMessageDelegate.h +24 -0
  61. package/ios/include/SMManagerSetting.h +61 -33
  62. package/ios/include/SMManagerSettingIAC.h +6 -17
  63. package/ios/include/SMManagerSettingIAM.h +7 -16
  64. package/ios/include/SMManagerUniversalLinksDelegate.h +23 -0
  65. package/ios/include/SMMessage.h +1 -3
  66. package/ios/include/SMNSNotification.h +19 -5
  67. package/ios/include/SMNotificationAnnotationData.h +4 -8
  68. package/ios/include/SMNotificationButtonData.h +1 -6
  69. package/ios/include/SMNotificationButtonType.h +1 -14
  70. package/ios/include/SMNotificationMessage.h +31 -0
  71. package/ios/include/SMRemoteMessageDisplayType.h +32 -0
  72. package/ios/include/SMSuccess.h +1 -4
  73. package/ios/{libSelligentMobile2.5.2.a → libSelligentMobile.a} +0 -0
  74. package/package.json +3 -3
  75. package/trigger.yml +9 -0
  76. package/ios/LocationAuthorisationStatus.h +0 -6
  77. package/ios/LocationAuthorisationType.h +0 -4
  78. package/ios/include/SMLocationAuthorisationType.h +0 -57
  79. package/ios/include/SMManager+Location.h +0 -97
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@selligent-marketing-cloud/selligent-react-native",
3
3
  "title": "Selligent React Native",
4
- "version": "2.3.0",
4
+ "version": "2.7.0",
5
5
  "description": "React Native bridge for Selligent SDK",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  "react-native": "*"
27
27
  },
28
28
  "devDependencies": {
29
- "react": "17.0.1",
30
- "react-native": "^0.64.0"
29
+ "react": "17.0.2",
30
+ "react-native": "^0.66.3"
31
31
  }
32
32
  }
package/trigger.yml ADDED
@@ -0,0 +1,9 @@
1
+ trigger:
2
+ branches:
3
+ include:
4
+ - master
5
+
6
+ pr: none
7
+
8
+ steps:
9
+ - checkout: none
@@ -1,6 +0,0 @@
1
- typedef enum LocationAuthorisationStatus : NSInteger {
2
- ilasUnknown = 70,
3
- ilasRefused = 71,
4
- ilasGrantedInUse = 72,
5
- ilasGrantedAlways = 73
6
- } LocationAuthorisationStatus;
@@ -1,4 +0,0 @@
1
- typedef enum LocationAuthorisationType : NSInteger {
2
- ilatInUse = 80,
3
- ilatAlways = 81
4
- } LocationAuthorisationType;
@@ -1,57 +0,0 @@
1
- //
2
- // SMLocationAuthorisationType.h
3
- // MobileSDK
4
- //
5
- // Created by Samy Ziat on 08/12/15.
6
- // Copyright © 2015 Selligent. All rights reserved.
7
- //
8
-
9
- /**
10
- * Location authorisation type.
11
- */
12
- typedef NS_ENUM(NSInteger, SMLocationAuthorisationType) {
13
- /**
14
- * This value asks user permission to monitor their position
15
- * only when the application is being used.
16
- * Highly encouraged by Apple for efficiency purposes.
17
- */
18
- kSMLocationAuthorisationType_InUse,
19
-
20
- /**
21
- * This value asks user permission to monitor their position
22
- * for all application's state.
23
- * Use this option only if your application needs it.
24
- */
25
- kSMLocationAuthorisationType_Always
26
- };
27
-
28
-
29
-
30
- /**
31
- * Location authorisation status.
32
- */
33
- typedef NS_ENUM(NSInteger, SMLocationAuthorisationStatus) {
34
- /**
35
- * The authorisation satus is unknown.
36
- */
37
- kSMLocationAuthorisationStatus_Unknown,
38
-
39
- /**
40
- * The authorisation status is rejected by user or impossible
41
- */
42
- kSMLocationAuthorisationStatus_Refused,
43
-
44
- /**
45
- * The authorisation status is OK when the application is in-use
46
- */
47
- kSMLocationAuthorisationStatus_GrantedInUse,
48
-
49
- /**
50
- * The authorisation status is OK for all application's state
51
- */
52
- kSMLocationAuthorisationStatus_GrantedAlways
53
- };
54
-
55
-
56
-
57
-
@@ -1,97 +0,0 @@
1
- //
2
- // SMManager+Location.h
3
- // MobileSDK
4
- //
5
- // Created by Samy Ziat on 02/12/15.
6
- // Copyright © 2015 Selligent. All rights reserved.
7
- //
8
-
9
- #import "SMManager.h"
10
-
11
- #import "SMLocationAuthorisationType.h"
12
-
13
- /*!
14
- * #Introduction :#
15
- * Location is an optional service which will **automatically** provide with user's location-information.
16
- * Location-information are provided at regular intervals according to provided configuration.
17
- *
18
- * This information is not granted! Users may decide to share their location and then, few days afterwards, stop sharing it.
19
- * The SDK will *automatically* inform the back-end of any permission changes.
20
- *
21
- * #Implementation :#
22
- * In order to correctly start the location-service, please follow these steps :
23
- *
24
- * - Add a key-value pair in your info-plist-file (Additional details in the section below).
25
- * - Optional step depending on the value of the enableOnFirstRun in your plotconfig.json file: if set to false you will have to enableGeoLocation
26
- * - Finally, you can call requestLocationAuthorisation: to ask user permissions according to your application's need.
27
- *
28
- * #Accessing User Data :#
29
- * Requesting user's authorisation is a mandatory step to access their location-information.
30
- * The dialogue asking for this permission will only be displayed once in the application life cycle.
31
- *
32
- * If user denies sharing location-information, the application can NOT display the dialogue a 2nd time.
33
- * Thus, he'll have to manually access the Settings-application and enable location sharing from there.
34
- *
35
- * #Configuring Info-Plist :#
36
- * For the reason stated above, it is extremely important to explain to users the exact reason why to access their location information.
37
- * A key-value pair explaining that reason must be added to the application's Info-Plist-file.
38
- *
39
- * The **Key** depends on SMLocationAuthorisationType used :
40
- *
41
- * - For kSMLocationAuthorisationType_InUse use **NSLocationWhenInUseUsageDescription**
42
- * - For kSMLocationAuthorisationType_Always use **NSLocationAlwaysUsageDescription** or **NSLocationAlwaysAndWhenInUseUsageDescription** since iOS11
43
- *
44
- * The **Value** represents the string-sentence that will be displayed in the alert.
45
- *
46
- * To know more about Plist-configuration, please see [Apple documentation](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW18).
47
- * Also, Apple does provide [few guidelines](https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/LocationServices.html) for displaying the string-sentence.
48
- *
49
- *
50
- * #SMManager+Location :#
51
- */
52
- @interface SMManager (Location)
53
-
54
- /**
55
- * @return The current authorisation status for this application.
56
- * @discussion Please check SMLocationAuthorisationStatus to understand each case.
57
- * @warning If this value is kSMLocationAuthorisationStatus_Refused --> Users must activate location from Settings-Application.
58
- * Alerts are only displayed once!
59
- */
60
- - (SMLocationAuthorisationStatus)currentAuthorisationStatus;
61
-
62
-
63
- /**
64
- * Ask user's permission to share his location
65
- *
66
- * @param type The requested location-authorisation-type check SMLocationAuthorisationType to understand each type.
67
- * @discussion This call will display an alert requesting user's location-information.
68
- * The alert will only be displayed once. However, it may no harm to make this call several times.
69
- * Call this API according to your application's need.
70
- */
71
- - (void)requestLocationAuthorisation:(SMLocationAuthorisationType)type;
72
-
73
- /**
74
- * Enable geolocation services
75
- *
76
- * @discussion This optional call will enable geolocation services at sdk level. it is independent of iOS location authorisation
77
- * If you use plotproject for geolocation it will be mandatory to call it if you have set enableOnFirstRun to false in the plotconfig.json
78
- * Call this API according to your application's need.
79
- */
80
- -(void) enableGeoLocation;
81
-
82
- /**
83
- * Disable geolocation services
84
- *
85
- * @discussion This optional call will disable geolocation services at sdk level. it is independent of iOS location authorisation
86
- * Call this API according to your application's need.
87
- */
88
- -(void) disableGeoLocation;
89
-
90
-
91
- /**
92
- * check geolocation services status
93
- *
94
- * @discussion This optional call will inform you if geolocation services at sdk level are enabled. it is independent of iOS location authorisation
95
- */
96
- -(BOOL) isGeoLocationEnabled;
97
- @end