react-native-mapp-plugin 1.0.11-beta11 → 1.0.11-beta12

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 (31) hide show
  1. package/Mapp.js +2 -2
  2. package/RNMappPlugin.podspec +7 -4
  3. package/__package.json +0 -4
  4. package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/AppoxeeSDK +0 -0
  5. package/ios/Frameworks/{AppoxeeSDK.xcframework/ios-arm64_armv7 → AppoxeeSDK.framework/Versions/A}/Headers/APXClientDevice.h +0 -0
  6. package/ios/Frameworks/{AppoxeeSDK.xcframework/ios-arm64_armv7 → AppoxeeSDK.framework/Versions/A}/Headers/APXInterfaceService.h +0 -0
  7. package/ios/Frameworks/{AppoxeeSDK.xcframework/ios-arm64_armv7 → AppoxeeSDK.framework/Versions/A}/Headers/APXPushNotification.h +0 -0
  8. package/ios/Frameworks/{AppoxeeSDK.xcframework/ios-arm64_armv7 → AppoxeeSDK.framework/Versions/A}/Headers/APXPushNotificationAction.h +0 -0
  9. package/ios/Frameworks/{AppoxeeSDK.xcframework/ios-arm64_armv7 → AppoxeeSDK.framework/Versions/A}/Headers/APXPushNotificationActionButton.h +0 -0
  10. package/ios/Frameworks/{AppoxeeSDK.xcframework/ios-arm64_armv7 → AppoxeeSDK.framework/Versions/A}/Headers/APXPushNotificationActionButtonAction.h +0 -0
  11. package/ios/Frameworks/{AppoxeeSDK.xcframework/ios-arm64_armv7 → AppoxeeSDK.framework/Versions/A}/Headers/APXRichMessage.h +0 -0
  12. package/ios/Frameworks/{AppoxeeSDK.xcframework/ios-arm64_armv7 → AppoxeeSDK.framework/Versions/A}/Headers/Appoxee.h +0 -0
  13. package/ios/Frameworks/{AppoxeeSDK.xcframework/ios-arm64_armv7 → AppoxeeSDK.framework/Versions/A}/Headers/AppoxeeManager.h +0 -0
  14. package/ios/Frameworks/{AppoxeeSDK.xcframework/ios-arm64_armv7 → AppoxeeSDK.framework/Versions/A}/Headers/AppoxeeSDK.h +0 -0
  15. package/ios/RNMappEventEmmiter.h +2 -2
  16. package/ios/RNMappPluginModule.h +2 -2
  17. package/package.json +1 -5
  18. package/ios/Frameworks/AppoxeeSDK.xcframework/Info.plist +0 -46
  19. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_armv7/libAppoxeeSDK.a +0 -0
  20. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXClientDevice.h +0 -26
  21. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXInterfaceService.h +0 -49
  22. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXPushNotification.h +0 -92
  23. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXPushNotificationAction.h +0 -20
  24. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXPushNotificationActionButton.h +0 -19
  25. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXPushNotificationActionButtonAction.h +0 -35
  26. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXRichMessage.h +0 -58
  27. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/Appoxee.h +0 -840
  28. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/AppoxeeManager.h +0 -386
  29. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/AppoxeeSDK.h +0 -12
  30. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/libAppoxeeSDK.a +0 -0
  31. package/iospatch.sh +0 -13
package/Mapp.js CHANGED
@@ -117,8 +117,8 @@ export class Mapp {
117
117
  tenantID: string
118
118
  ) {
119
119
  if (Platform.OS == "ios") {
120
- RNMappPluginModule.engageInapp(server);
121
- return RNMappPluginModule.autoengage(server);
120
+ RNMappPluginModule.autoengage(server);
121
+ return RNMappPluginModule.engageInapp(server);
122
122
  }
123
123
  return RNMappPluginModule.engage(
124
124
  sdkKey,
@@ -16,14 +16,17 @@ Pod::Spec.new do |s|
16
16
  s.source = { :git => "https://github.com/MappCloud/React-native-plugin", :tag => "#{s.version}" }
17
17
 
18
18
  s.source_files = "ios/**/*.{h,c,m,swift}"
19
- s.vendored_framework = "ios/Frameworks/AppoxeeSDK.xcframework", "ios/Frameworks/AppoxeeLocationServices.framework", "ios/Frameworks/AppoxeeInapp.framework"
20
- s.resources = "ios/Frameworks/AppoxeeSDKResources.bundle", "ios/Frameworks/AppoxeeInappResources.bundle"
21
- s.preserve_path = "ios/Frameworks/"
19
+ #s.vendored_framework = "ios/Frameworks/AppoxeeSDK.xcframework", "ios/Frameworks/AppoxeeLocationServices.framework", "ios/Frameworks/AppoxeeInapp.framework"
20
+ #s.resources = "ios/Frameworks/AppoxeeSDKResources.bundle", "ios/Frameworks/AppoxeeInappResources.bundle"
21
+ #s.preserve_path = "ios/Frameworks/"
22
22
  # s.public_header_files = "ios/Frameworks/AppoxeeSDK.framework/Headers/"
23
23
  s.requires_arc = true
24
24
  s.frameworks = "WebKit"
25
25
  s.library = 'sqlite3'
26
- s.dependency "React"
26
+ s.dependency "React"
27
+ s.dependency "MappSDK"
28
+ s.dependency "MappSDKInapp"
29
+ s.dependency "MappSDKGeotargeting"
27
30
 
28
31
  end
29
32
 
package/__package.json CHANGED
@@ -3,10 +3,6 @@
3
3
  "version": "1.0.3beta12",
4
4
  "description": "Mapp SDK for React Native.",
5
5
  "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "postinstall": "./iospatch.sh"
9
- },
10
6
  "keywords": [
11
7
  "react-native",
12
8
  "react",
@@ -7,8 +7,8 @@
7
7
 
8
8
  #import <Foundation/Foundation.h>
9
9
  #import "AppoxeeSDK.h"
10
- #import <AppoxeeInapp/AppoxeeInapp.h>
11
- #import <AppoxeeLocationServices/AppoxeeLocationManager.h>
10
+ #import "AppoxeeInapp.h"
11
+ #import "AppoxeeLocationManager.h"
12
12
  #import <React/RCTEventEmitter.h>
13
13
 
14
14
  NS_ASSUME_NONNULL_BEGIN
@@ -1,8 +1,8 @@
1
1
  #import <React/RCTBridgeModule.h>
2
2
  #import <React/RCTEventEmitter.h>
3
3
  #import "AppoxeeSDK.h"
4
- #import <AppoxeeInapp/AppoxeeInapp.h>
5
- #import <AppoxeeLocationServices/AppoxeeLocationManager.h>
4
+ #import "AppoxeeInapp.h"
5
+ #import "AppoxeeLocationManager.h"
6
6
  #import <UserNotifications/UNUserNotificationCenter.h>
7
7
 
8
8
  @interface RNMappPluginModule : NSObject <RCTBridgeModule,AppoxeeInappDelegate, AppoxeeNotificationDelegate, AppoxeeLocationManagerDelegate >
package/package.json CHANGED
@@ -1,12 +1,8 @@
1
1
  {
2
2
  "name": "react-native-mapp-plugin",
3
- "version": "1.0.11-beta11",
3
+ "version": "1.0.11-beta12",
4
4
  "description": "Mapp SDK for React Native.",
5
5
  "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "postinstall": "./iospatch.sh"
9
- },
10
6
  "keywords": [
11
7
  "react-native",
12
8
  "react",
@@ -1,46 +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>AvailableLibraries</key>
6
- <array>
7
- <dict>
8
- <key>HeadersPath</key>
9
- <string>Headers</string>
10
- <key>LibraryIdentifier</key>
11
- <string>ios-arm64_armv7</string>
12
- <key>LibraryPath</key>
13
- <string>libAppoxeeSDK.a</string>
14
- <key>SupportedArchitectures</key>
15
- <array>
16
- <string>arm64</string>
17
- <string>armv7</string>
18
- </array>
19
- <key>SupportedPlatform</key>
20
- <string>ios</string>
21
- </dict>
22
- <dict>
23
- <key>HeadersPath</key>
24
- <string>Headers</string>
25
- <key>LibraryIdentifier</key>
26
- <string>ios-arm64_i386_x86_64-simulator</string>
27
- <key>LibraryPath</key>
28
- <string>libAppoxeeSDK.a</string>
29
- <key>SupportedArchitectures</key>
30
- <array>
31
- <string>arm64</string>
32
- <string>i386</string>
33
- <string>x86_64</string>
34
- </array>
35
- <key>SupportedPlatform</key>
36
- <string>ios</string>
37
- <key>SupportedPlatformVariant</key>
38
- <string>simulator</string>
39
- </dict>
40
- </array>
41
- <key>CFBundlePackageType</key>
42
- <string>XFWK</string>
43
- <key>XCFrameworkFormatVersion</key>
44
- <string>1.0</string>
45
- </dict>
46
- </plist>
@@ -1,26 +0,0 @@
1
- //
2
- // APXClientDevice.h
3
- // AppoxeeSDK
4
- //
5
- // Created by Raz Elkayam on 5/20/15.
6
- // Copyright (c) 2015 Appoxee. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
-
11
- @interface APXClientDevice : NSObject
12
-
13
- @property (nonatomic, strong) NSString *sdkVersion; // 4.1
14
- @property (nonatomic, strong) NSString *locale; // i.e en
15
- @property (nonatomic, strong) NSString *timeZone; // Asia / Jerusalem
16
- @property (nonatomic, strong) NSString *pushToken;
17
- @property (nonatomic, strong) NSString *udid;
18
- @property (nonatomic, strong) NSString *udidHashed;
19
- @property (nonatomic, strong) NSString *osName;
20
- @property (nonatomic, strong) NSString *osVersion;
21
- @property (nonatomic, strong) NSString *hardwearType;
22
- @property (nonatomic, strong) NSString *applicationID;
23
- @property (nonatomic, getter = isInboxEnabled) BOOL inboxEnabled;
24
- @property (nonatomic, getter = isPushEnabled) BOOL pushEnabled;
25
-
26
- @end
@@ -1,49 +0,0 @@
1
- //
2
- // APXInterfaceService.h
3
- // AppoxeeSDK
4
- //
5
- // Created by Raz Elkayam on 7/12/15.
6
- // Copyright (c) 2015 Appoxee. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
- #import <UIKit/UIKit.h>
11
- #import <CoreLocation/CoreLocation.h>
12
-
13
- typedef NS_ENUM(NSInteger, APXInterfaceServiceOperation) {
14
- kAPXInterfaceServiceOperationOne = 1,
15
- kAPXInterfaceServiceOperationTwo,
16
- kAPXInterfaceServiceOperationThree,
17
- };
18
-
19
- typedef void(^APXInterfaceServiceCompletionBlock)(NSError * _Nullable error, id _Nullable data);
20
- typedef void(^APXInterfaceServiceFetchBlock)(UIBackgroundFetchResult fetchResult);
21
-
22
- @class APXInterfaceService;
23
-
24
- @protocol APXInterfaceServiceFetchDelegate <NSObject>
25
-
26
- @required;
27
- - (void)interfaceService:(nonnull APXInterfaceService *)service performFetchWithCompletionHandler:(nullable APXInterfaceServiceFetchBlock)fetchBlock withCompletionBlock:(nullable APXInterfaceServiceCompletionBlock)completionBlock;
28
-
29
- @end
30
-
31
- @interface APXInterfaceService : NSObject
32
-
33
- + (nullable instancetype)shared;
34
- @property (nonatomic, strong, readwrite, nullable) CLLocationManager * locationManager;
35
-
36
- @property (nonatomic, weak, nullable) id <APXInterfaceServiceFetchDelegate> fetchDelegate;
37
-
38
- @property (nonatomic, strong, readwrite, nullable) NSString *appID;
39
- @property (nonatomic, readonly) BOOL isBackgroundFetchAvailable;
40
- @property (nonatomic, readonly) BOOL isSilentPushAvailable;
41
-
42
- - (void)performOperation:(APXInterfaceServiceOperation)operation withIdentifier:(nullable NSString *)identifier andData:(nullable NSDictionary *)args andCompletionBlock:(nullable APXInterfaceServiceCompletionBlock)completionBlock;
43
-
44
- - (void)performFetchWithCompletionHandler:(nullable APXInterfaceServiceFetchBlock)fetchBlock andCompletionBlock:(nullable APXInterfaceServiceCompletionBlock)completionBlock;
45
-
46
- + (NSTimeInterval)timestamp;
47
- + (nonnull NSString *)stringTimestamp;
48
-
49
- @end
@@ -1,92 +0,0 @@
1
- //
2
- // APXPushNotification.h
3
- // AppoxeeSDK
4
- //
5
- // Created by Raz Elkayam on 3/8/15.
6
- // Copyright (c) 2015 Appoxee. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
- #import "APXPushNotificationAction.h"
11
-
12
- @class UNNotificationResponse;
13
- @class UNNotification;
14
-
15
- @interface APXPushNotification : NSObject
16
-
17
- /*!
18
- * The alert property of a push notification payload.
19
- */
20
- @property (nonatomic, strong, readonly, nullable) NSString *alert;
21
-
22
- /*!
23
- * The title property of a push notification payload.
24
- */
25
- @property (nonatomic, strong, readonly, nullable) NSString *title;
26
-
27
- /*!
28
- * The subtitle property of a push notification payload.
29
- */
30
- @property (nonatomic, strong, readonly, nullable) NSString *subtitle;
31
-
32
- /*!
33
- * The body property of a push notification payload.
34
- */
35
- @property (nonatomic, strong, readonly, nullable) NSString *body;
36
-
37
- /*!
38
- * The badge property of a push notification payload.
39
- */
40
- @property (nonatomic, readonly) NSInteger badge;
41
-
42
- /*!
43
- * The notification Appoxee unique ID.
44
- */
45
- @property (nonatomic, readonly) NSInteger uniqueID;
46
-
47
- /*!
48
- * The extra fields associated with the push notification payload.
49
- */
50
- @property (nonatomic, strong, readonly, nullable) NSDictionary *extraFields;
51
-
52
- /*!
53
- * Indicating if push launched the application
54
- */
55
- @property (nonatomic, readonly) BOOL didLaunchApp;
56
-
57
- /*!
58
- * Indicating if push was sent with a rich payload.
59
- */
60
- @property (nonatomic, readonly) BOOL isRich;
61
-
62
- /*!
63
- * Indicating if the push is silent.
64
- */
65
- @property (nonatomic, readonly) BOOL isSilent;
66
-
67
- /*!
68
- * Indicating if the push should fetch content in the background.
69
- */
70
- @property (nonatomic, readonly) BOOL isTriggerUpdate;
71
-
72
- /*!
73
- * The associated actions with the push payload.
74
- */
75
- @property (nonatomic, strong, readonly, nullable) APXPushNotificationAction *pushAction;
76
-
77
- /*!
78
- * Class initializer with NSDictionary as push payload.
79
- */
80
- + (nullable instancetype)notificationWithKeyedValues:(nullable NSDictionary *)keyedValues;
81
-
82
- /*!
83
- * Class initializer with UNNotification as push payload.
84
- */
85
- + (nullable instancetype)notificationWithNotification:(nullable UNNotification *)notification;
86
-
87
- /*!
88
- * Class initializer with UNNotificationResponse as push payload.
89
- */
90
- + (nullable instancetype)notificationWithNotificationResponse:(nullable UNNotificationResponse *)notificationResponse;
91
-
92
- @end
@@ -1,20 +0,0 @@
1
- //
2
- // APXPushNotificationAction.h
3
- // AppoxeeSDK
4
- //
5
- // Created by Raz Elkayam on 3/18/15.
6
- // Copyright (c) 2015 Appoxee. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
- #import "APXPushNotificationActionButton.h"
11
-
12
- @interface APXPushNotificationAction : NSObject
13
-
14
- @property (nonatomic, getter = isAppoxeeCategory, readonly) BOOL appoxeeCategory;
15
- @property (nonatomic, strong, readonly) NSString *categoryName;
16
- @property (nonatomic, strong, readonly) NSArray <APXPushNotificationActionButton *> *actionButtons;
17
-
18
- - (id)initWithKeyedValues:(NSDictionary *)keyedValues;
19
-
20
- @end
@@ -1,19 +0,0 @@
1
- //
2
- // APXPushNotificationActionButton.h
3
- // AppoxeeSDK
4
- //
5
- // Created by Raz Elkayam on 3/18/15.
6
- // Copyright (c) 2015 Appoxee. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
- #import "APXPushNotificationActionButtonAction.h"
11
-
12
- @interface APXPushNotificationActionButton : NSObject
13
-
14
- @property (nonatomic, strong) APXPushNotificationActionButtonAction *foregroundActionButtonAction; // of Type APXPushNotificationActionButtonAction
15
- @property (nonatomic, strong) NSArray *backgroundActions; // of Type APXPushNotificationActionButtonAction
16
-
17
- - (id)initWithKeyedValues:(NSDictionary *)keyedValues;
18
-
19
- @end
@@ -1,35 +0,0 @@
1
- //
2
- // APXPushNotificationActionButtonAction.h
3
- // AppoxeeSDK
4
- //
5
- // Created by Raz Elkayam on 3/18/15.
6
- // Copyright (c) 2015 Appoxee. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
-
11
- typedef NS_ENUM(NSInteger, APXPushNotificationActionButtonTodo) {
12
- kAPXPushNotificationActionButtonActionTodoSet = 1,
13
- kAPXPushNotificationActionButtonActionTodoRemove,
14
- kAPXPushNotificationActionButtonActionTodoIncrement,
15
- kAPXPushNotificationActionButtonActionTodoOpenURLScheme,
16
- kAPXPushNotificationActionButtonActionTodoOpenWebSite,
17
- kAPXPushNotificationActionButtonActionTodoOpenAppStore,
18
- kAPXPushNotificationActionButtonActionTodoOpenViewController
19
- };
20
-
21
- typedef NS_ENUM(NSInteger, APXPushNotificationActionButtonType) {
22
- kAPXPushNotificationActionButtonActionTypeCustom = 1,
23
- kAPXPushNotificationActionButtonActionTypeTag
24
- };
25
-
26
- @interface APXPushNotificationActionButtonAction : NSObject
27
-
28
- @property (nonatomic, strong) NSString *name;
29
- @property (nonatomic) APXPushNotificationActionButtonTodo todo;
30
- @property (nonatomic) APXPushNotificationActionButtonType type;
31
- @property (nonatomic, strong) NSString *value; // holds the value for any ToDo action
32
-
33
- - (id)initWithKeyedValues:(NSDictionary *)keyedValues;
34
-
35
- @end
@@ -1,58 +0,0 @@
1
- //
2
- // APXRichMessage.h
3
- // AppoxeeSDK
4
- //
5
- // Created by Raz Elkayam on 3/19/15.
6
- // Copyright (c) 2015 Appoxee. All rights reserved.
7
- //
8
-
9
- #import <Foundation/Foundation.h>
10
-
11
- @interface APXRichMessage : NSObject <NSCoding>
12
-
13
- /*!
14
- * The unique identifier of the message.
15
- */
16
- @property (nonatomic, readonly) NSInteger uniqueID;
17
-
18
- /*!
19
- * The post date of the message, in UTC.
20
- */
21
- @property (nonatomic, readonly) NSDate *postDateUTC;
22
-
23
- /*!
24
- * The post date of the message, in device local time.
25
- */
26
- @property (nonatomic, strong, readonly) NSDate *postDate;
27
-
28
- /*!
29
- * The title of the message.
30
- */
31
- @property (nonatomic, strong, readonly) NSString *title;
32
-
33
- /*!
34
- * The content of the message.
35
- */
36
- @property (nonatomic, strong, readonly) NSString *content;
37
-
38
- /*!
39
- * Indicates if the message is read.
40
- */
41
- @property (nonatomic, readonly) BOOL isRead;
42
-
43
- /*!
44
- * The link of the message. Implicitly marks message as read.
45
- */
46
- @property (nonatomic, strong, readonly) NSString *messageLink;
47
-
48
- /*!
49
- * Init with keyed values.
50
- */
51
- - (id)initWithKeyedValues:(NSDictionary *)keyedValues;
52
-
53
- /*!
54
- * Init with keyed values and a 'read' indication.
55
- */
56
- - (id)initWithKeyedValues:(NSDictionary *)keyedValues andMarkAsRead:(BOOL)isRead;
57
-
58
- @end