pushwoosh-react-native-plugin 2.0.0 → 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.
- package/.github/ISSUE_TEMPLATE/bug_report.yml +135 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +31 -0
- package/.github/ISSUE_TEMPLATE/question.yml +28 -0
- package/InlineInApp.js +71 -0
- package/README.md +35 -85
- package/docs/README.md +230 -11
- package/index.d.ts +91 -0
- package/index.js +265 -24
- package/package.json +12 -1
- package/pushwoosh-react-native-plugin.podspec +20 -0
- package/react-native.config.js +9 -0
- package/scripts/add_inbox_ios_resources.js +42 -0
- package/src/android/build.gradle +40 -10
- package/src/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/src/android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/src/android/gradlew +160 -0
- package/src/android/gradlew.bat +90 -0
- package/src/android/src/main/AndroidManifest.xml +19 -54
- package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/ConversionUtil.java +214 -148
- package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/CustomFirebaseMessagingService.java +29 -0
- package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/EventDispatcher.java +7 -6
- package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/InboxUiStyleManager.java +162 -0
- package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/InlineInAppManager.java +48 -0
- package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshNotificationServiceExtension.java +44 -0
- package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPackage.java +4 -2
- package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PushwooshPlugin.java +606 -393
- package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/RCTInlineInAppView.java +75 -0
- package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/internal/ReactNativePluginProvider.java +15 -0
- package/src/ios/PWAppDelegate.h +20 -0
- package/src/ios/PWGDPRManager.h +46 -0
- package/src/ios/PWIInboxStyle.h +122 -0
- package/src/ios/PWIInboxUI.h +39 -0
- package/src/ios/PWInAppManager.h +176 -0
- package/src/ios/PWInbox.h +147 -0
- package/src/ios/PWInlineInAppView.h +26 -0
- package/src/ios/PWLog.h +23 -0
- package/src/ios/PWMessaging.h +20 -0
- package/src/ios/PWNotificationExtensionManager.h +46 -0
- package/src/ios/PWRichMediaManager.h +123 -0
- package/src/ios/PWRichMediaStyle.h +122 -0
- package/src/ios/PushNotificationManager.h +234 -111
- package/src/ios/Pushwoosh.h +623 -0
- package/src/ios/PushwooshInboxBundle.bundle/Info.plist +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxAttachmentViewController.nib +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxMessageViewCell.nib +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/PWIInboxViewController.nib +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/errorMessage@2x.png +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/inbox_icon.png +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/noMessage@2x.png +0 -0
- package/src/ios/PushwooshInboxBundle.bundle/unread.png +0 -0
- package/src/ios/PushwooshInboxUI.h +19 -0
- package/src/ios/PushwooshPlugin/PWEventDispatcher.h +1 -1
- package/src/ios/PushwooshPlugin/PWInlineInAppManager.h +17 -0
- package/src/ios/PushwooshPlugin/PWInlineInAppManager.m +54 -0
- package/src/ios/PushwooshPlugin/Pushwoosh.h +18 -3
- package/src/ios/PushwooshPlugin/Pushwoosh.m +532 -98
- package/src/ios/PushwooshPlugin.xcodeproj/project.pbxproj +27 -6
- package/src/ios/libPushwoosh.a +0 -0
- package/src/ios/libPushwooshInboxUI.a +0 -0
- package/.npmignore +0 -3
- package/src/android/.npmignore +0 -1
- package/src/android/pushwooshplugin.iml +0 -150
- package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/NotificationReceiver.java +0 -42
- package/src/android/src/main/java/com/pushwoosh/reactnativeplugin/PostEventActivity.java +0 -45
- package/src/ios/Pushwoosh.a +0 -0
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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
package/src/android/.npmignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/build
|
|
@@ -1,150 +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/source/apt/debug" isTestSource="false" generated="true" />
|
|
37
|
-
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
|
|
38
|
-
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" />
|
|
39
|
-
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" />
|
|
40
|
-
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" />
|
|
41
|
-
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
|
|
42
|
-
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" />
|
|
43
|
-
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/apt/androidTest/debug" isTestSource="true" generated="true" />
|
|
44
|
-
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" />
|
|
45
|
-
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/debug" type="java-test-resource" />
|
|
46
|
-
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
|
|
47
|
-
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
|
|
48
|
-
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
|
|
49
|
-
<sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
|
|
50
|
-
<sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
|
|
51
|
-
<sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" />
|
|
52
|
-
<sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
|
|
53
|
-
<sourceFolder url="file://$MODULE_DIR$/src/debug/shaders" isTestSource="false" />
|
|
54
|
-
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/res" type="java-test-resource" />
|
|
55
|
-
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/resources" type="java-test-resource" />
|
|
56
|
-
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/assets" type="java-test-resource" />
|
|
57
|
-
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/aidl" isTestSource="true" />
|
|
58
|
-
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/java" isTestSource="true" />
|
|
59
|
-
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/jni" isTestSource="true" />
|
|
60
|
-
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/rs" isTestSource="true" />
|
|
61
|
-
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/shaders" isTestSource="true" />
|
|
62
|
-
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
|
|
63
|
-
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
|
64
|
-
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
|
|
65
|
-
<sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
|
|
66
|
-
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
|
67
|
-
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
|
|
68
|
-
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
|
|
69
|
-
<sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
|
|
70
|
-
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
|
|
71
|
-
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
|
|
72
|
-
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
|
|
73
|
-
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
|
|
74
|
-
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
|
|
75
|
-
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
|
|
76
|
-
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
|
|
77
|
-
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
|
|
78
|
-
<sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
|
|
79
|
-
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
|
|
80
|
-
<sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
|
|
81
|
-
<sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
|
|
82
|
-
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
|
|
83
|
-
<sourceFolder url="file://$MODULE_DIR$/src/test/jni" isTestSource="true" />
|
|
84
|
-
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
|
|
85
|
-
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
|
|
86
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/annotations" />
|
|
87
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
|
|
88
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
|
|
89
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
|
|
90
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
|
|
91
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.1/jars" />
|
|
92
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.0.1/jars" />
|
|
93
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/23.1.0/jars" />
|
|
94
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/drawee/0.6.1/jars" />
|
|
95
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/fbcore/0.6.1/jars" />
|
|
96
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/fresco/0.6.1/jars" />
|
|
97
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline-okhttp/0.6.1/jars" />
|
|
98
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.fresco/imagepipeline/0.6.1/jars" />
|
|
99
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.facebook.react/react-native/0.14.0/jars" />
|
|
100
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-base/8.4.0/jars" />
|
|
101
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-basement/8.4.0/jars" />
|
|
102
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-gcm/8.4.0/jars" />
|
|
103
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-location/8.4.0/jars" />
|
|
104
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-maps/8.4.0/jars" />
|
|
105
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-measurement/8.4.0/jars" />
|
|
106
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.pushwoosh/pushwoosh/4.10.6/jars" />
|
|
107
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/org.webkit/android-jsc/r174650/jars" />
|
|
108
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
|
|
109
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-safeguard" />
|
|
110
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
|
|
111
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
|
|
112
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
|
|
113
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
|
|
114
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
|
|
115
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/shaders" />
|
|
116
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
|
|
117
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/transforms" />
|
|
118
|
-
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/typedefs.txt" />
|
|
119
|
-
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
|
|
120
|
-
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
|
|
121
|
-
</content>
|
|
122
|
-
<orderEntry type="jdk" jdkName="Android API 23 Platform" jdkType="Android SDK" />
|
|
123
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
124
|
-
<orderEntry type="library" exported="" name="okhttp-ws-2.4.0" level="project" />
|
|
125
|
-
<orderEntry type="library" exported="" name="play-services-location-8.4.0" level="project" />
|
|
126
|
-
<orderEntry type="library" exported="" name="okhttp-2.4.0" level="project" />
|
|
127
|
-
<orderEntry type="library" exported="" name="jsr305-3.0.0" level="project" />
|
|
128
|
-
<orderEntry type="library" exported="" name="play-services-base-8.4.0" level="project" />
|
|
129
|
-
<orderEntry type="library" exported="" name="play-services-measurement-8.4.0" level="project" />
|
|
130
|
-
<orderEntry type="library" exported="" name="play-services-maps-8.4.0" level="project" />
|
|
131
|
-
<orderEntry type="library" exported="" name="fbcore-0.6.1" level="project" />
|
|
132
|
-
<orderEntry type="library" exported="" name="react-native-0.14.0" level="project" />
|
|
133
|
-
<orderEntry type="library" exported="" name="recyclerview-v7-23.0.1" level="project" />
|
|
134
|
-
<orderEntry type="library" exported="" name="imagepipeline-okhttp-0.6.1" level="project" />
|
|
135
|
-
<orderEntry type="library" exported="" name="android-jsc-r174650" level="project" />
|
|
136
|
-
<orderEntry type="library" exported="" name="imagepipeline-0.6.1" level="project" />
|
|
137
|
-
<orderEntry type="library" exported="" name="fresco-0.6.1" level="project" />
|
|
138
|
-
<orderEntry type="library" exported="" name="bolts-android-1.1.4" level="project" />
|
|
139
|
-
<orderEntry type="library" exported="" name="support-v4-23.1.0" level="project" />
|
|
140
|
-
<orderEntry type="library" exported="" name="okio-1.5.0" level="project" />
|
|
141
|
-
<orderEntry type="library" exported="" name="drawee-0.6.1" level="project" />
|
|
142
|
-
<orderEntry type="library" exported="" name="appcompat-v7-23.0.1" level="project" />
|
|
143
|
-
<orderEntry type="library" exported="" name="support-annotations-23.1.0" level="project" />
|
|
144
|
-
<orderEntry type="library" exported="" name="library-2.4.0" level="project" />
|
|
145
|
-
<orderEntry type="library" exported="" name="pushwoosh-4.10.6" level="project" />
|
|
146
|
-
<orderEntry type="library" exported="" name="jackson-core-2.2.3" level="project" />
|
|
147
|
-
<orderEntry type="library" exported="" name="play-services-gcm-8.4.0" level="project" />
|
|
148
|
-
<orderEntry type="library" exported="" name="play-services-basement-8.4.0" level="project" />
|
|
149
|
-
</component>
|
|
150
|
-
</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
|
-
}
|
package/src/ios/Pushwoosh.a
DELETED
|
Binary file
|