reactnative-plugin-appice 1.7.32 → 1.7.33
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/campaign.js +3 -6
- package/example/App.js +5 -1
- package/example/android/local.properties +8 -0
- package/package.json +1 -1
- package/android/.idea/workspace.xml +0 -103
- package/example/android/.gradle/7.3.3/checksums/checksums.lock +0 -0
- package/example/android/.gradle/7.3.3/fileChanges/last-build.bin +0 -0
- package/example/android/.gradle/7.3.3/fileHashes/fileHashes.lock +0 -0
- package/example/android/.gradle/7.3.3/gc.properties +0 -0
- package/example/android/.gradle/vcs-1/gc.properties +0 -0
package/campaign.js
CHANGED
|
@@ -15,11 +15,8 @@ const handleClickOnPush = async (campaign) => {
|
|
|
15
15
|
if (httpUrls) {
|
|
16
16
|
try {
|
|
17
17
|
if (Platform.OS === 'ios') {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
console.log('URL not supported on iOS:', url);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
18
|
+
return campaign;
|
|
19
|
+
// iOS handle redirection on native side for landing page.
|
|
23
20
|
}
|
|
24
21
|
|
|
25
22
|
await Linking.openURL(url);
|
|
@@ -30,7 +27,7 @@ const handleClickOnPush = async (campaign) => {
|
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
if (actionType === 'dl' && !httpUrls) {
|
|
33
|
-
|
|
30
|
+
return campaign;
|
|
34
31
|
}
|
|
35
32
|
};
|
|
36
33
|
|
package/example/App.js
CHANGED
|
@@ -98,7 +98,11 @@ function addAppICEAPIListeners() {
|
|
|
98
98
|
|
|
99
99
|
try {
|
|
100
100
|
const campaign = new Campaign(event.AppICEPushNotificationClicked);
|
|
101
|
-
await handleClickOnPush(campaign);
|
|
101
|
+
const result = await handleClickOnPush(campaign);
|
|
102
|
+
if (result) {
|
|
103
|
+
console.log("Returned campaign:", result);
|
|
104
|
+
// Use result here (e.g., for DL handling)
|
|
105
|
+
}
|
|
102
106
|
} catch (error) {
|
|
103
107
|
console.error('Error handling app link:', error);
|
|
104
108
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
+
# as it contains information specific to your local configuration.
|
|
3
|
+
#
|
|
4
|
+
# Location of the SDK. This is only used by Gradle.
|
|
5
|
+
# For customization when using a Version Control System, please read the
|
|
6
|
+
# header note.
|
|
7
|
+
#Tue Nov 28 00:45:30 IST 2023
|
|
8
|
+
sdk.dir=/Users/amit/Library/Android/sdk
|
package/package.json
CHANGED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="AutoImportSettings">
|
|
4
|
-
<option name="autoReloadType" value="NONE" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="aee4312c-1901-4a6b-8b92-4d5a8d6d561e" name="Changes" comment="">
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/src/main/AndroidManifest.xml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/AndroidManifest.xml" afterDir="false" />
|
|
9
|
-
<change beforePath="$PROJECT_DIR$/../example/android/.gradle/7.3.3/checksums/checksums.lock" beforeDir="false" />
|
|
10
|
-
<change beforePath="$PROJECT_DIR$/../example/android/.gradle/7.3.3/fileChanges/last-build.bin" beforeDir="false" />
|
|
11
|
-
<change beforePath="$PROJECT_DIR$/../example/android/.gradle/7.3.3/fileHashes/fileHashes.lock" beforeDir="false" />
|
|
12
|
-
<change beforePath="$PROJECT_DIR$/../example/android/.gradle/7.3.3/gc.properties" beforeDir="false" />
|
|
13
|
-
<change beforePath="$PROJECT_DIR$/../example/android/.gradle/vcs-1/gc.properties" beforeDir="false" />
|
|
14
|
-
<change beforePath="$PROJECT_DIR$/../example/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/../example/package.json" afterDir="false" />
|
|
15
|
-
<change beforePath="$PROJECT_DIR$/../package.json" beforeDir="false" afterPath="$PROJECT_DIR$/../package.json" afterDir="false" />
|
|
16
|
-
</list>
|
|
17
|
-
<option name="SHOW_DIALOG" value="false" />
|
|
18
|
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
19
|
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
20
|
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
21
|
-
</component>
|
|
22
|
-
<component name="ClangdSettings">
|
|
23
|
-
<option name="formatViaClangd" value="false" />
|
|
24
|
-
</component>
|
|
25
|
-
<component name="ExternalProjectsData">
|
|
26
|
-
<projectState path="$PROJECT_DIR$">
|
|
27
|
-
<ProjectState />
|
|
28
|
-
</projectState>
|
|
29
|
-
</component>
|
|
30
|
-
<component name="Git.Settings">
|
|
31
|
-
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
|
32
|
-
<map>
|
|
33
|
-
<entry key="$PROJECT_DIR$/.." value="dev" />
|
|
34
|
-
</map>
|
|
35
|
-
</option>
|
|
36
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
|
|
37
|
-
</component>
|
|
38
|
-
<component name="GitLabMergeRequestFiltersHistory">{
|
|
39
|
-
"lastFilter": {
|
|
40
|
-
"state": "OPENED",
|
|
41
|
-
"assignee": {
|
|
42
|
-
"type": "org.jetbrains.plugins.gitlab.mergerequest.ui.filters.GitLabMergeRequestsFiltersValue.MergeRequestsMemberFilterValue.MergeRequestsAssigneeFilterValue",
|
|
43
|
-
"username": "amit.pandey.work",
|
|
44
|
-
"fullname": "Amit Pandey"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}</component>
|
|
48
|
-
<component name="GitLabMergeRequestsSettings">{
|
|
49
|
-
"selectedUrlAndAccountId": {
|
|
50
|
-
"first": "https://gitlab.com/grp_appice/src_reactnative_appice-sdk.git",
|
|
51
|
-
"second": "3049d1c2-c9c2-4ad3-90d8-501e6fe141e1"
|
|
52
|
-
}
|
|
53
|
-
}</component>
|
|
54
|
-
<component name="ProjectColorInfo">{
|
|
55
|
-
"associatedIndex": 6
|
|
56
|
-
}</component>
|
|
57
|
-
<component name="ProjectId" id="2xcttwNrwHU9Ne1lHjEiEC2bldp" />
|
|
58
|
-
<component name="ProjectViewState">
|
|
59
|
-
<option name="hideEmptyMiddlePackages" value="true" />
|
|
60
|
-
<option name="showLibraryContents" value="true" />
|
|
61
|
-
</component>
|
|
62
|
-
<component name="PropertiesComponent"><![CDATA[{
|
|
63
|
-
"keyToString": {
|
|
64
|
-
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
65
|
-
"RunOnceActivity.cidr.known.project.marker": "true",
|
|
66
|
-
"RunOnceActivity.git.unshallow": "true",
|
|
67
|
-
"RunOnceActivity.readMode.enableVisualFormatting": "true",
|
|
68
|
-
"cf.first.check.clang-format": "false",
|
|
69
|
-
"cidr.known.project.marker": "true",
|
|
70
|
-
"git-widget-placeholder": "release-hotfix-2.6.12",
|
|
71
|
-
"last_opened_file_path": "/Users/amitpandey/Desktop/AppICE/src_reactnative_appice-sdk/android",
|
|
72
|
-
"project.structure.last.edited": "Project",
|
|
73
|
-
"project.structure.proportion": "0.17",
|
|
74
|
-
"project.structure.side.proportion": "0.2",
|
|
75
|
-
"settings.editor.selected.configurable": "reference.settingsdialog.project.gradle"
|
|
76
|
-
}
|
|
77
|
-
}]]></component>
|
|
78
|
-
<component name="PsdUISettings">
|
|
79
|
-
<option name="LAST_EDITED_BUILD_TYPE" value="release" />
|
|
80
|
-
</component>
|
|
81
|
-
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
82
|
-
<component name="TaskManager">
|
|
83
|
-
<task active="true" id="Default" summary="Default task">
|
|
84
|
-
<changelist id="aee4312c-1901-4a6b-8b92-4d5a8d6d561e" name="Changes" comment="" />
|
|
85
|
-
<created>1748249407888</created>
|
|
86
|
-
<option name="number" value="Default" />
|
|
87
|
-
<option name="presentableId" value="Default" />
|
|
88
|
-
<updated>1748249407888</updated>
|
|
89
|
-
</task>
|
|
90
|
-
<servers />
|
|
91
|
-
</component>
|
|
92
|
-
<component name="play_dynamic_filters_status">
|
|
93
|
-
<option name="appIdToCheckInfo">
|
|
94
|
-
<map>
|
|
95
|
-
<entry key="com.reactlibrary.test">
|
|
96
|
-
<value>
|
|
97
|
-
<CheckInfo lastCheckTimestamp="1748426745571" />
|
|
98
|
-
</value>
|
|
99
|
-
</entry>
|
|
100
|
-
</map>
|
|
101
|
-
</option>
|
|
102
|
-
</component>
|
|
103
|
-
</project>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|