pushwoosh-react-native-plugin 1.2.5 → 2.2.17

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 (66) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.yml +135 -0
  2. package/.github/ISSUE_TEMPLATE/feature_request.yml +31 -0
  3. package/.github/ISSUE_TEMPLATE/question.yml +28 -0
  4. package/InlineInApp.js +71 -0
  5. package/README.md +35 -85
  6. package/docs/README.md +230 -11
  7. package/index.d.ts +91 -0
  8. package/index.js +536 -154
  9. package/package.json +12 -1
  10. package/pushwoosh-react-native-plugin.podspec +20 -0
  11. package/react-native.config.js +9 -0
  12. package/scripts/add_inbox_ios_resources.js +42 -0
  13. package/src/android/build.gradle +40 -10
  14. package/src/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  15. package/src/android/gradle/wrapper/gradle-wrapper.properties +6 -0
  16. package/src/android/gradlew +160 -0
  17. package/src/android/gradlew.bat +90 -0
  18. package/src/android/src/main/AndroidManifest.xml +19 -54
  19. package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/ConversionUtil.java +214 -148
  20. package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/CustomFirebaseMessagingService.java +29 -0
  21. package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/EventDispatcher.java +10 -2
  22. package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/InboxUiStyleManager.java +162 -0
  23. package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/InlineInAppManager.java +48 -0
  24. package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshNotificationServiceExtension.java +44 -0
  25. package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPackage.java +4 -2
  26. package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java +608 -297
  27. package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/RCTInlineInAppView.java +75 -0
  28. package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/internal/ReactNativePluginProvider.java +15 -0
  29. package/src/ios/PWAppDelegate.h +20 -0
  30. package/src/ios/PWGDPRManager.h +46 -0
  31. package/src/ios/PWIInboxStyle.h +122 -0
  32. package/src/ios/PWIInboxUI.h +39 -0
  33. package/src/ios/PWInAppManager.h +176 -0
  34. package/src/ios/PWInbox.h +147 -0
  35. package/src/ios/PWInlineInAppView.h +26 -0
  36. package/src/ios/PWLog.h +23 -0
  37. package/src/ios/PWMessaging.h +20 -0
  38. package/src/ios/PWNotificationExtensionManager.h +46 -0
  39. package/src/ios/PWRichMediaManager.h +123 -0
  40. package/src/ios/PWRichMediaStyle.h +122 -0
  41. package/src/ios/PushNotificationManager.h +234 -111
  42. package/src/ios/Pushwoosh.h +623 -0
  43. package/src/ios/PushwooshInboxBundle.bundle/Info.plist +0 -0
  44. package/src/ios/PushwooshInboxBundle.bundle/PWIInboxAttachmentViewController.nib +0 -0
  45. package/src/ios/PushwooshInboxBundle.bundle/PWIInboxMessageViewCell.nib +0 -0
  46. package/src/ios/PushwooshInboxBundle.bundle/PWIInboxViewController.nib +0 -0
  47. package/src/ios/PushwooshInboxBundle.bundle/errorMessage@2x.png +0 -0
  48. package/src/ios/PushwooshInboxBundle.bundle/inbox_icon.png +0 -0
  49. package/src/ios/PushwooshInboxBundle.bundle/noMessage@2x.png +0 -0
  50. package/src/ios/PushwooshInboxBundle.bundle/unread.png +0 -0
  51. package/src/ios/PushwooshInboxUI.h +19 -0
  52. package/src/ios/PushwooshPlugin/PWEventDispatcher.h +1 -1
  53. package/src/ios/PushwooshPlugin/PWInlineInAppManager.h +17 -0
  54. package/src/ios/PushwooshPlugin/PWInlineInAppManager.m +54 -0
  55. package/src/ios/PushwooshPlugin/Pushwoosh.h +19 -2
  56. package/src/ios/PushwooshPlugin/Pushwoosh.m +552 -75
  57. package/src/ios/PushwooshPlugin.xcodeproj/project.pbxproj +27 -6
  58. package/src/ios/libPushwoosh.a +0 -0
  59. package/src/ios/libPushwooshInboxUI.a +0 -0
  60. package/.npmignore +0 -3
  61. package/src/android/.npmignore +0 -1
  62. package/src/android/pushwooshplugin.iml +0 -145
  63. package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/NotificationReceiver.java +0 -42
  64. package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PostEventActivity.java +0 -45
  65. package/src/ios/Pushwoosh.a +0 -0
  66. package/src/ios/PushwooshPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
@@ -7,7 +7,8 @@
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
- 46ACA26C1D13D57900717D7F /* Pushwoosh.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 46ACA26B1D13D57900717D7F /* Pushwoosh.a */; };
10
+ 2A1A931C20D3BBF80073E61E /* libPushwooshInboxUI.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2A1A931A20D3BBF80073E61E /* libPushwooshInboxUI.a */; };
11
+ 2A1A931D20D3BBF80073E61E /* libPushwoosh.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2A1A931B20D3BBF80073E61E /* libPushwoosh.a */; };
11
12
  46ACA2A71D14079000717D7F /* PWEventDispatcher.m in Sources */ = {isa = PBXBuildFile; fileRef = 46ACA2A61D14079000717D7F /* PWEventDispatcher.m */; };
12
13
  46D37B361D12BB4900D5EC47 /* Pushwoosh.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 46D37B351D12BB4900D5EC47 /* Pushwoosh.h */; };
13
14
  46D37B381D12BB4900D5EC47 /* Pushwoosh.m in Sources */ = {isa = PBXBuildFile; fileRef = 46D37B371D12BB4900D5EC47 /* Pushwoosh.m */; };
@@ -27,13 +28,22 @@
27
28
  /* End PBXCopyFilesBuildPhase section */
28
29
 
29
30
  /* Begin PBXFileReference section */
30
- 46ACA26B1D13D57900717D7F /* Pushwoosh.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = Pushwoosh.a; sourceTree = "<group>"; };
31
+ 2A1A931A20D3BBF80073E61E /* libPushwooshInboxUI.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libPushwooshInboxUI.a; sourceTree = "<group>"; };
32
+ 2A1A931B20D3BBF80073E61E /* libPushwoosh.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libPushwoosh.a; sourceTree = "<group>"; };
33
+ 2A841C6B20590CCA007AAF5C /* PushwooshInboxUI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PushwooshInboxUI.h; sourceTree = SOURCE_ROOT; };
34
+ 2A841C6C20590CCA007AAF5C /* PWIInboxStyle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PWIInboxStyle.h; sourceTree = SOURCE_ROOT; };
31
35
  46ACA26D1D13D58900717D7F /* PushNotificationManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PushNotificationManager.h; sourceTree = SOURCE_ROOT; };
32
36
  46ACA2A51D14079000717D7F /* PWEventDispatcher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PWEventDispatcher.h; sourceTree = "<group>"; };
33
37
  46ACA2A61D14079000717D7F /* PWEventDispatcher.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PWEventDispatcher.m; sourceTree = "<group>"; };
34
38
  46D37B321D12BB4900D5EC47 /* libPushwooshPlugin.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPushwooshPlugin.a; sourceTree = BUILT_PRODUCTS_DIR; };
35
39
  46D37B351D12BB4900D5EC47 /* Pushwoosh.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Pushwoosh.h; sourceTree = "<group>"; };
36
40
  46D37B371D12BB4900D5EC47 /* Pushwoosh.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Pushwoosh.m; sourceTree = "<group>"; };
41
+ 5D980721240E293E000B0CDC /* PWInlineInAppView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PWInlineInAppView.h; sourceTree = SOURCE_ROOT; };
42
+ 5DCC5C4C20A57D96008B0595 /* PWGDPRManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PWGDPRManager.h; sourceTree = SOURCE_ROOT; };
43
+ 5DE2C7712404F92200DB2992 /* PushwooshInboxUI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PushwooshInboxUI.h; sourceTree = SOURCE_ROOT; };
44
+ 5DE2C7722404F92200DB2992 /* PWIInboxUI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PWIInboxUI.h; sourceTree = SOURCE_ROOT; };
45
+ 5DFB752223ED54DB001D0AFD /* PWInbox.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PWInbox.h; sourceTree = SOURCE_ROOT; };
46
+ A4CDCC841F78F55E00741E9F /* PWInAppManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PWInAppManager.h; sourceTree = SOURCE_ROOT; };
37
47
  /* End PBXFileReference section */
38
48
 
39
49
  /* Begin PBXFrameworksBuildPhase section */
@@ -41,7 +51,8 @@
41
51
  isa = PBXFrameworksBuildPhase;
42
52
  buildActionMask = 2147483647;
43
53
  files = (
44
- 46ACA26C1D13D57900717D7F /* Pushwoosh.a in Frameworks */,
54
+ 2A1A931D20D3BBF80073E61E /* libPushwoosh.a in Frameworks */,
55
+ 2A1A931C20D3BBF80073E61E /* libPushwooshInboxUI.a in Frameworks */,
45
56
  );
46
57
  runOnlyForDeploymentPostprocessing = 0;
47
58
  };
@@ -51,7 +62,8 @@
51
62
  46D37B291D12BB4900D5EC47 = {
52
63
  isa = PBXGroup;
53
64
  children = (
54
- 46ACA26B1D13D57900717D7F /* Pushwoosh.a */,
65
+ 2A1A931B20D3BBF80073E61E /* libPushwoosh.a */,
66
+ 2A1A931A20D3BBF80073E61E /* libPushwooshInboxUI.a */,
55
67
  46D37B341D12BB4900D5EC47 /* PushwooshPlugin */,
56
68
  46D37B331D12BB4900D5EC47 /* Products */,
57
69
  );
@@ -68,6 +80,14 @@
68
80
  46D37B341D12BB4900D5EC47 /* PushwooshPlugin */ = {
69
81
  isa = PBXGroup;
70
82
  children = (
83
+ 5D980721240E293E000B0CDC /* PWInlineInAppView.h */,
84
+ 5DE2C7712404F92200DB2992 /* PushwooshInboxUI.h */,
85
+ 5DE2C7722404F92200DB2992 /* PWIInboxUI.h */,
86
+ 5DFB752223ED54DB001D0AFD /* PWInbox.h */,
87
+ 5DCC5C4C20A57D96008B0595 /* PWGDPRManager.h */,
88
+ 2A841C6B20590CCA007AAF5C /* PushwooshInboxUI.h */,
89
+ 2A841C6C20590CCA007AAF5C /* PWIInboxStyle.h */,
90
+ A4CDCC841F78F55E00741E9F /* PWInAppManager.h */,
71
91
  46ACA26D1D13D58900717D7F /* PushNotificationManager.h */,
72
92
  46D37B351D12BB4900D5EC47 /* Pushwoosh.h */,
73
93
  46D37B371D12BB4900D5EC47 /* Pushwoosh.m */,
@@ -116,6 +136,7 @@
116
136
  developmentRegion = English;
117
137
  hasScannedForEncodings = 0;
118
138
  knownRegions = (
139
+ English,
119
140
  en,
120
141
  );
121
142
  mainGroup = 46D37B291D12BB4900D5EC47;
@@ -177,7 +198,7 @@
177
198
  GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
178
199
  GCC_WARN_UNUSED_FUNCTION = YES;
179
200
  GCC_WARN_UNUSED_VARIABLE = YES;
180
- IPHONEOS_DEPLOYMENT_TARGET = 7.0;
201
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
181
202
  MTL_ENABLE_DEBUG_INFO = YES;
182
203
  ONLY_ACTIVE_ARCH = YES;
183
204
  SDKROOT = iphoneos;
@@ -214,7 +235,7 @@
214
235
  GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
215
236
  GCC_WARN_UNUSED_FUNCTION = YES;
216
237
  GCC_WARN_UNUSED_VARIABLE = YES;
217
- IPHONEOS_DEPLOYMENT_TARGET = 7.0;
238
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
218
239
  MTL_ENABLE_DEBUG_INFO = NO;
219
240
  SDKROOT = iphoneos;
220
241
  VALIDATE_PRODUCT = YES;
Binary file
Binary file
package/.npmignore DELETED
@@ -1,3 +0,0 @@
1
- src/ios/PushwooshPlugin.xcodeproj/xcuserdata
2
- *.xcuserstate
3
- src/ios/build
@@ -1 +0,0 @@
1
- /build
@@ -1,145 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module external.linked.project.id=":pushwooshplugin" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/../../../../android" external.system.id="GRADLE" external.system.module.group="PushwooshSample" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
3
- <component name="FacetManager">
4
- <facet type="android-gradle" name="Android-Gradle">
5
- <configuration>
6
- <option name="GRADLE_PROJECT_PATH" value=":pushwooshplugin" />
7
- </configuration>
8
- </facet>
9
- <facet type="android" name="Android">
10
- <configuration>
11
- <option name="SELECTED_BUILD_VARIANT" value="debug" />
12
- <option name="SELECTED_TEST_ARTIFACT" value="_android_test_" />
13
- <option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
14
- <option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
15
- <afterSyncTasks>
16
- <task>generateDebugSources</task>
17
- </afterSyncTasks>
18
- <option name="ALLOW_USER_CONFIGURATION" value="false" />
19
- <option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
20
- <option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
21
- <option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
22
- <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
23
- <option name="LIBRARY_PROJECT" value="true" />
24
- </configuration>
25
- </facet>
26
- </component>
27
- <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false">
28
- <output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
29
- <output-test url="file://$MODULE_DIR$/build/intermediates/classes/test/debug" />
30
- <exclude-output />
31
- <content url="file://$MODULE_DIR$">
32
- <sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" />
33
- <sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" />
34
- <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
35
- <sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
36
- <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
37
- <sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" />
38
- <sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" />
39
- <sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" />
40
- <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
41
- <sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" />
42
- <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" />
43
- <sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/debug" type="java-test-resource" />
44
- <sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
45
- <sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
46
- <sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
47
- <sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
48
- <sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
49
- <sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" />
50
- <sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
51
- <sourceFolder url="file://$MODULE_DIR$/src/debug/shaders" isTestSource="false" />
52
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/res" type="java-test-resource" />
53
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/resources" type="java-test-resource" />
54
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/assets" type="java-test-resource" />
55
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/aidl" isTestSource="true" />
56
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/java" isTestSource="true" />
57
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/jni" isTestSource="true" />
58
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/rs" isTestSource="true" />
59
- <sourceFolder url="file://$MODULE_DIR$/src/testDebug/shaders" isTestSource="true" />
60
- <sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
61
- <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
62
- <sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
63
- <sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
64
- <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
65
- <sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
66
- <sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
67
- <sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
68
- <sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
69
- <sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
70
- <sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
71
- <sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
72
- <sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
73
- <sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
74
- <sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
75
- <sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
76
- <sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
77
- <sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
78
- <sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
79
- <sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
80
- <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
81
- <sourceFolder url="file://$MODULE_DIR$/src/test/jni" isTestSource="true" />
82
- <sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
83
- <sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
84
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/annotations" />
85
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
86
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
87
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
88
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
89
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
90
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/jars" />
91
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.0.1/jars" />
92
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/23.1.0/jars" />
93
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/drawee/0.6.1/jars" />
94
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/fbcore/0.6.1/jars" />
95
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/fresco/0.6.1/jars" />
96
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline-okhttp/0.6.1/jars" />
97
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline/0.6.1/jars" />
98
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.react/react-native/0.14.0/jars" />
99
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-base/8.4.0/jars" />
100
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-basement/8.4.0/jars" />
101
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-gcm/8.4.0/jars" />
102
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-location/8.4.0/jars" />
103
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-maps/8.4.0/jars" />
104
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-measurement/8.4.0/jars" />
105
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
106
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-safeguard" />
107
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
108
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
109
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
110
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
111
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/shaders" />
112
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
113
- <excludeFolder url="file://$MODULE_DIR$/build/intermediates/transforms" />
114
- <excludeFolder url="file://$MODULE_DIR$/build/outputs" />
115
- <excludeFolder url="file://$MODULE_DIR$/build/tmp" />
116
- </content>
117
- <orderEntry type="jdk" jdkName="Android API 23 Platform" jdkType="Android SDK" />
118
- <orderEntry type="sourceFolder" forTests="false" />
119
- <orderEntry type="library" exported="" name="okhttp-ws-2.4.0" level="project" />
120
- <orderEntry type="library" exported="" name="play-services-location-8.4.0" level="project" />
121
- <orderEntry type="library" exported="" name="okhttp-2.4.0" level="project" />
122
- <orderEntry type="library" exported="" name="jsr305-3.0.0" level="project" />
123
- <orderEntry type="library" exported="" name="play-services-base-8.4.0" level="project" />
124
- <orderEntry type="library" exported="" name="play-services-measurement-8.4.0" level="project" />
125
- <orderEntry type="library" exported="" name="play-services-maps-8.4.0" level="project" />
126
- <orderEntry type="library" exported="" name="fbcore-0.6.1" level="project" />
127
- <orderEntry type="library" exported="" name="react-native-0.14.0" level="project" />
128
- <orderEntry type="library" exported="" name="recyclerview-v7-23.0.1" level="project" />
129
- <orderEntry type="library" exported="" name="imagepipeline-okhttp-0.6.1" level="project" />
130
- <orderEntry type="library" exported="" name="android-jsc-r174650" level="project" />
131
- <orderEntry type="library" exported="" name="imagepipeline-0.6.1" level="project" />
132
- <orderEntry type="library" exported="" name="fresco-0.6.1" level="project" />
133
- <orderEntry type="library" exported="" name="bolts-android-1.1.4" level="project" />
134
- <orderEntry type="library" exported="" name="support-v4-23.1.0" level="project" />
135
- <orderEntry type="library" exported="" name="okio-1.5.0" level="project" />
136
- <orderEntry type="library" exported="" name="drawee-0.6.1" level="project" />
137
- <orderEntry type="library" exported="" name="appcompat-v7-23.0.1" level="project" />
138
- <orderEntry type="library" exported="" name="support-annotations-23.1.0" level="project" />
139
- <orderEntry type="library" exported="" name="pushwoosh-4.1.3" level="project" />
140
- <orderEntry type="library" exported="" name="library-2.4.0" level="project" />
141
- <orderEntry type="library" exported="" name="jackson-core-2.2.3" level="project" />
142
- <orderEntry type="library" exported="" name="play-services-gcm-8.4.0" level="project" />
143
- <orderEntry type="library" exported="" name="play-services-basement-8.4.0" level="project" />
144
- </component>
145
- </module>
@@ -1,42 +0,0 @@
1
- package com.pushwoosh.reactnativeplugin;
2
-
3
- import android.content.BroadcastReceiver;
4
- import android.content.Context;
5
- import android.content.Intent;
6
- import android.os.Bundle;
7
-
8
- import com.pushwoosh.PushManager;
9
- import com.pushwoosh.internal.PushManagerImpl;
10
- import com.pushwoosh.internal.utils.PWLog;
11
-
12
- import org.json.JSONObject;
13
-
14
- public class NotificationReceiver extends BroadcastReceiver {
15
- public void onReceive(Context context, Intent intent)
16
- {
17
- if (intent == null)
18
- return;
19
-
20
- PWLog.debug(PushwooshPlugin.TAG, "NotificationReceiver onReceive");
21
-
22
- Bundle pushBundle = PushManagerImpl.preHandlePush(context, intent);
23
- if(pushBundle == null)
24
- return;
25
-
26
- JSONObject dataObject = PushManagerImpl.bundleToJSON(pushBundle);
27
-
28
- Intent launchIntent = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
29
- launchIntent.addCategory("android.intent.category.LAUNCHER");
30
-
31
- launchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
32
-
33
- launchIntent.putExtras(pushBundle);
34
- launchIntent.putExtra(PushManager.PUSH_RECEIVE_EVENT, dataObject.toString());
35
-
36
- context.startActivity(launchIntent);
37
-
38
- PushManagerImpl.postHandlePush(context, intent);
39
-
40
- PushwooshPlugin.openPush(dataObject.toString());
41
- }
42
- }
@@ -1,45 +0,0 @@
1
- package com.pushwoosh.reactnativeplugin;
2
-
3
- import android.content.Context;
4
- import android.content.Intent;
5
- import android.support.v7.app.AppCompatActivity;
6
- import android.os.Bundle;
7
-
8
- import com.pushwoosh.inapp.InAppFacade;
9
- import com.pushwoosh.internal.utils.PWLog;
10
-
11
- import java.io.Serializable;
12
- import java.util.Map;
13
-
14
- public class PostEventActivity extends AppCompatActivity {
15
-
16
- private static final String EXTRA_EVENT = "PW_EVENT";
17
- private static final String EXTRA_ATTRIBUTES = "PW_ATTRIBUTES";
18
-
19
- public static Intent createIntent(Context context, String event, Map<String, Object> attributes) {
20
- Intent intent = new Intent(context, PostEventActivity.class);
21
- intent.putExtra(EXTRA_EVENT, event);
22
- intent.putExtra(EXTRA_ATTRIBUTES, (Serializable) attributes);
23
- intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
24
-
25
- return intent;
26
- }
27
-
28
- @Override
29
- protected void onCreate(Bundle savedInstanceState) {
30
- super.onCreate(savedInstanceState);
31
-
32
- Intent intent = getIntent();
33
- try {
34
- String event = intent.getExtras().getString(EXTRA_EVENT);
35
- Map<String, Object> attributes = (Map<String, Object>) intent.getExtras().getSerializable(EXTRA_ATTRIBUTES);
36
- InAppFacade.postEvent(this, event, attributes);
37
- }
38
- catch (Exception e) {
39
- PWLog.exception(e);
40
- }
41
- finally {
42
- finish();
43
- }
44
- }
45
- }
Binary file
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- <FileRef
5
- location = "self:PushwooshPlugin.xcodeproj">
6
- </FileRef>
7
- </Workspace>