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

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 (45) hide show
  1. package/Mapp.js +23 -2
  2. package/RNMappPlugin.podspec +1 -1
  3. package/__package.json +2 -2
  4. package/android/.classpath +1 -1
  5. package/android/.settings/org.eclipse.buildship.core.prefs +2 -2
  6. package/android/build.gradle +10 -11
  7. package/android/src/main/AndroidManifest.xml +3 -2
  8. package/android/src/main/java/com/reactlibrary/ActivityListener.java +1 -1
  9. package/android/src/main/java/com/reactlibrary/HelperActivity.java +23 -205
  10. package/android/src/main/java/com/reactlibrary/IntentNotificationEvent.java +0 -2
  11. package/android/src/main/java/com/reactlibrary/MessageService.java +22 -2
  12. package/android/src/main/java/com/reactlibrary/RNMappPluginModule.java +37 -62
  13. package/ios/Frameworks/AppoxeeSDK.xcframework/Info.plist +46 -0
  14. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64_armv7}/Headers/APXClientDevice.h +0 -0
  15. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64_armv7}/Headers/APXInterfaceService.h +0 -0
  16. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64_armv7}/Headers/APXPushNotification.h +0 -0
  17. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64_armv7}/Headers/APXPushNotificationAction.h +0 -0
  18. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64_armv7}/Headers/APXPushNotificationActionButton.h +0 -0
  19. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64_armv7}/Headers/APXPushNotificationActionButtonAction.h +0 -0
  20. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64_armv7}/Headers/APXRichMessage.h +0 -0
  21. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64_armv7}/Headers/Appoxee.h +0 -0
  22. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64_armv7}/Headers/AppoxeeManager.h +0 -0
  23. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64_armv7}/Headers/AppoxeeSDK.h +0 -0
  24. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_armv7/libAppoxeeSDK.a +0 -0
  25. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXClientDevice.h +26 -0
  26. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXInterfaceService.h +49 -0
  27. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXPushNotification.h +92 -0
  28. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXPushNotificationAction.h +20 -0
  29. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXPushNotificationActionButton.h +19 -0
  30. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXPushNotificationActionButtonAction.h +35 -0
  31. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/APXRichMessage.h +58 -0
  32. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/Appoxee.h +840 -0
  33. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/AppoxeeManager.h +386 -0
  34. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/Headers/AppoxeeSDK.h +12 -0
  35. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_i386_x86_64-simulator/libAppoxeeSDK.a +0 -0
  36. package/ios/RNMappEventEmmiter.h +1 -1
  37. package/ios/RNMappPluginModule.h +1 -1
  38. package/ios/RNMappPluginModule.m +12 -0
  39. package/package.json +5 -5
  40. package/.idea/React-native-plugin.iml +0 -12
  41. package/.idea/modules.xml +0 -8
  42. package/.idea/vcs.xml +0 -7
  43. package/.idea/workspace.xml +0 -146
  44. package/android/src/main/java/com/reactlibrary/RequestPermissionsTask.java +0 -58
  45. package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/AppoxeeSDK +0 -0
@@ -0,0 +1,26 @@
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
@@ -0,0 +1,49 @@
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
@@ -0,0 +1,92 @@
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
@@ -0,0 +1,20 @@
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
@@ -0,0 +1,19 @@
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
@@ -0,0 +1,35 @@
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
@@ -0,0 +1,58 @@
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