reactnative-plugin-appice 1.4.2 → 1.4.3

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 (37) hide show
  1. package/example/App.js +4 -8
  2. package/example/android/.gradle/7.3.3/checksums/checksums.lock +0 -0
  3. package/example/android/.gradle/7.3.3/checksums/md5-checksums.bin +0 -0
  4. package/example/android/.gradle/7.3.3/checksums/sha1-checksums.bin +0 -0
  5. package/example/android/.gradle/7.3.3/dependencies-accessors/dependencies-accessors.lock +0 -0
  6. package/example/android/.gradle/7.3.3/dependencies-accessors/gc.properties +0 -0
  7. package/example/android/.gradle/7.3.3/executionHistory/executionHistory.lock +0 -0
  8. package/example/android/.gradle/7.3.3/fileChanges/last-build.bin +0 -0
  9. package/example/android/.gradle/7.3.3/fileHashes/fileHashes.bin +0 -0
  10. package/example/android/.gradle/7.3.3/fileHashes/fileHashes.lock +0 -0
  11. package/example/android/.gradle/7.3.3/fileHashes/resourceHashesCache.bin +0 -0
  12. package/example/android/.gradle/7.3.3/gc.properties +0 -0
  13. package/example/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  14. package/example/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  15. package/example/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  16. package/example/android/.gradle/vcs-1/gc.properties +0 -0
  17. package/example/android/.idea/.name +1 -0
  18. package/example/android/.idea/compiler.xml +6 -0
  19. package/example/android/.idea/gradle.xml +34 -0
  20. package/example/android/.idea/jarRepositories.xml +55 -0
  21. package/example/android/.idea/misc.xml +10 -0
  22. package/example/android/.idea/vcs.xml +6 -0
  23. package/example/android/app/build.gradle +1 -0
  24. package/example/android/app/google-services.json +275 -0
  25. package/example/android/build.gradle +1 -0
  26. package/example/android/local.properties +8 -0
  27. package/example/ios/Podfile +8 -0
  28. package/example/ios/example/AppDelegate.mm +3 -4
  29. package/example/package-lock.json +1059 -18
  30. package/example/package.json +2 -1
  31. package/example/yarn.lock +377 -11
  32. package/index.js +10 -2
  33. package/ios/AppICEReactEvent.h +1 -1
  34. package/ios/AppICEReactEvent.m +2 -2
  35. package/ios/AppIceReactPlugin.h +1 -0
  36. package/ios/AppIceReactPlugin.m +7 -1
  37. package/package.json +1 -1
package/example/App.js CHANGED
@@ -22,19 +22,12 @@ const HelloWorldApp = () => {
22
22
  if (AppICE) {
23
23
  console.log('AppICE is available');
24
24
  AppICE.startContext(
25
- // '5bebe93c25d705690ffbc758',
26
- // '9e9ec60197c8373a11ac15ce4dae80e973608ab2',
27
- // 'd985715d1bb48942d36d5d08de3b6a8c',
28
- // '7a55ba2f-52c3-4d88-917d-0365e2f7c9cf',
29
- // "US",
30
- // "https://stagingapi.appice.io",
31
25
  "5bebe93c25d705690ffbc758",
32
26
  "9e9ec60197c8373a11ac15ce4dae80e973608ab2",
33
27
  "844770e0edf3b795cd7508fa71789572",
34
28
  "",
35
29
  "US",
36
30
  "https://a.appice.io",
37
-
38
31
  certs);
39
32
  }
40
33
  addAppICEAPIListeners();
@@ -89,10 +82,13 @@ addAppICEAPIListeners();
89
82
  }
90
83
 
91
84
  function addAppICEAPIListeners() {
85
+
86
+ console.log('handleAppICETapEvent');
87
+
92
88
  AppICE.addListener(AppICE.AppICEPushNotificationClicked, (event) => {
93
89
  if (typeof event !== 'undefined'){
94
90
  console.log('handleAppICETapEvent', AppICE.AppICEPushNotificationClicked, event.AppICEPushNotificationClicked);
95
- AppICE.pushNotificationClicked( event.AppICEPushNotificationClicked);
91
+ AppICE.pushNotificationClicked(event.AppICEPushNotificationClicked);
96
92
  }
97
93
  });
98
94
  }
File without changes
@@ -0,0 +1,2 @@
1
+ #Fri Aug 12 16:45:01 IST 2022
2
+ gradle.version=7.3.3
File without changes
@@ -0,0 +1 @@
1
+ example
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="CompilerConfiguration">
4
+ <bytecodeTargetLevel target="11" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="GradleMigrationSettings" migrationVersion="1" />
4
+ <component name="GradleSettings">
5
+ <option name="linkedExternalProjectsSettings">
6
+ <GradleProjectSettings>
7
+ <compositeConfiguration>
8
+ <compositeBuild compositeDefinitionSource="SCRIPT">
9
+ <builds>
10
+ <build path="$PROJECT_DIR$/../node_modules/react-native-gradle-plugin" name="react-native-gradle-plugin">
11
+ <projects>
12
+ <project path="$PROJECT_DIR$/../node_modules/react-native-gradle-plugin" />
13
+ </projects>
14
+ </build>
15
+ </builds>
16
+ </compositeBuild>
17
+ </compositeConfiguration>
18
+ <option name="testRunner" value="GRADLE" />
19
+ <option name="distributionType" value="DEFAULT_WRAPPED" />
20
+ <option name="externalProjectPath" value="$PROJECT_DIR$" />
21
+ <option name="modules">
22
+ <set>
23
+ <option value="$PROJECT_DIR$" />
24
+ <option value="$PROJECT_DIR$/app" />
25
+ <option value="$PROJECT_DIR$/../node_modules/@react-native-firebase/app/android" />
26
+ <option value="$PROJECT_DIR$/../node_modules/@react-native-firebase/messaging/android" />
27
+ <option value="$PROJECT_DIR$/../node_modules/react-native-gradle-plugin" />
28
+ <option value="$PROJECT_DIR$/../node_modules/reactnative-plugin-appice/android" />
29
+ </set>
30
+ </option>
31
+ </GradleProjectSettings>
32
+ </option>
33
+ </component>
34
+ </project>
@@ -0,0 +1,55 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="RemoteRepositoriesConfiguration">
4
+ <remote-repository>
5
+ <option name="id" value="central" />
6
+ <option name="name" value="Maven Central repository" />
7
+ <option name="url" value="https://repo1.maven.org/maven2" />
8
+ </remote-repository>
9
+ <remote-repository>
10
+ <option name="id" value="jboss.community" />
11
+ <option name="name" value="JBoss Community repository" />
12
+ <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
13
+ </remote-repository>
14
+ <remote-repository>
15
+ <option name="id" value="MavenRepo" />
16
+ <option name="name" value="MavenRepo" />
17
+ <option name="url" value="https://repo.maven.apache.org/maven2/" />
18
+ </remote-repository>
19
+ <remote-repository>
20
+ <option name="id" value="maven3" />
21
+ <option name="name" value="maven3" />
22
+ <option name="url" value="https://www.jitpack.io" />
23
+ </remote-repository>
24
+ <remote-repository>
25
+ <option name="id" value="maven" />
26
+ <option name="name" value="maven" />
27
+ <option name="url" value="file:$PROJECT_DIR$/../node_modules/react-native/android/" />
28
+ </remote-repository>
29
+ <remote-repository>
30
+ <option name="id" value="maven2" />
31
+ <option name="name" value="maven2" />
32
+ <option name="url" value="file:$PROJECT_DIR$/../node_modules/jsc-android/dist/" />
33
+ </remote-repository>
34
+ <remote-repository>
35
+ <option name="id" value="Google" />
36
+ <option name="name" value="Google" />
37
+ <option name="url" value="https://dl.google.com/dl/android/maven2/" />
38
+ </remote-repository>
39
+ <remote-repository>
40
+ <option name="id" value="MavenLocal" />
41
+ <option name="name" value="MavenLocal" />
42
+ <option name="url" value="file:$USER_HOME$/.m2/repository/" />
43
+ </remote-repository>
44
+ <remote-repository>
45
+ <option name="id" value="BintrayJCenter" />
46
+ <option name="name" value="BintrayJCenter" />
47
+ <option name="url" value="https://jcenter.bintray.com/" />
48
+ </remote-repository>
49
+ <remote-repository>
50
+ <option name="id" value="maven6" />
51
+ <option name="name" value="maven6" />
52
+ <option name="url" value="https://jitpack.io" />
53
+ </remote-repository>
54
+ </component>
55
+ </project>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ExternalStorageConfigurationManager" enabled="true" />
4
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK">
5
+ <output url="file://$PROJECT_DIR$/build/classes" />
6
+ </component>
7
+ <component name="ProjectType">
8
+ <option name="id" value="Android" />
9
+ </component>
10
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
5
+ </component>
6
+ </project>
@@ -1,4 +1,5 @@
1
1
  apply plugin: "com.android.application"
2
+ apply plugin: 'com.google.gms.google-services' // <- Add this line
2
3
 
3
4
  import com.android.build.OutputFile
4
5
 
@@ -0,0 +1,275 @@
1
+ {
2
+ "project_info": {
3
+ "project_number": "372849797851",
4
+ "firebase_url": "https://appice-77b2f.firebaseio.com",
5
+ "project_id": "appice-77b2f",
6
+ "storage_bucket": "appice-77b2f.appspot.com"
7
+ },
8
+ "client": [
9
+ {
10
+ "client_info": {
11
+ "mobilesdk_app_id": "1:372849797851:android:776d01f156f84911337afe",
12
+ "android_client_info": {
13
+ "package_name": "com.appice.appicekonyapp"
14
+ }
15
+ },
16
+ "oauth_client": [
17
+ {
18
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
19
+ "client_type": 3
20
+ }
21
+ ],
22
+ "api_key": [
23
+ {
24
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
25
+ }
26
+ ],
27
+ "services": {
28
+ "appinvite_service": {
29
+ "other_platform_oauth_client": [
30
+ {
31
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
32
+ "client_type": 3
33
+ }
34
+ ]
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "client_info": {
40
+ "mobilesdk_app_id": "1:372849797851:android:3ca6b71623dd87b8337afe",
41
+ "android_client_info": {
42
+ "package_name": "com.appice.libkonywrapper"
43
+ }
44
+ },
45
+ "oauth_client": [
46
+ {
47
+ "client_id": "372849797851-rf9dhoh54bkug4eo0mm2bvjm0mvcqi41.apps.googleusercontent.com",
48
+ "client_type": 1,
49
+ "android_info": {
50
+ "package_name": "com.appice.libkonywrapper",
51
+ "certificate_hash": "a73330c6da42d1219e27ca9a1c41d3ab76b18fec"
52
+ }
53
+ },
54
+ {
55
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
56
+ "client_type": 3
57
+ }
58
+ ],
59
+ "api_key": [
60
+ {
61
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
62
+ }
63
+ ],
64
+ "services": {
65
+ "appinvite_service": {
66
+ "other_platform_oauth_client": [
67
+ {
68
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
69
+ "client_type": 3
70
+ }
71
+ ]
72
+ }
73
+ }
74
+ },
75
+ {
76
+ "client_info": {
77
+ "mobilesdk_app_id": "1:372849797851:android:043dfbf436ee8a8b337afe",
78
+ "android_client_info": {
79
+ "package_name": "com.appice.sample"
80
+ }
81
+ },
82
+ "oauth_client": [
83
+ {
84
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
85
+ "client_type": 3
86
+ }
87
+ ],
88
+ "api_key": [
89
+ {
90
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
91
+ }
92
+ ],
93
+ "services": {
94
+ "appinvite_service": {
95
+ "other_platform_oauth_client": [
96
+ {
97
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
98
+ "client_type": 3
99
+ }
100
+ ]
101
+ }
102
+ }
103
+ },
104
+ {
105
+ "client_info": {
106
+ "mobilesdk_app_id": "1:372849797851:android:b991be6c3a77e27a337afe",
107
+ "android_client_info": {
108
+ "package_name": "com.appice.simpleapp"
109
+ }
110
+ },
111
+ "oauth_client": [
112
+ {
113
+ "client_id": "372849797851-2g3ujjdnre9eg4t8915t667mci986imc.apps.googleusercontent.com",
114
+ "client_type": 1,
115
+ "android_info": {
116
+ "package_name": "com.appice.simpleapp",
117
+ "certificate_hash": "7a4661ffa5ed1bfa4ec46f7c113e16cf7cbcc2e5"
118
+ }
119
+ },
120
+ {
121
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
122
+ "client_type": 3
123
+ }
124
+ ],
125
+ "api_key": [
126
+ {
127
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
128
+ }
129
+ ],
130
+ "services": {
131
+ "appinvite_service": {
132
+ "other_platform_oauth_client": [
133
+ {
134
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
135
+ "client_type": 3
136
+ }
137
+ ]
138
+ }
139
+ }
140
+ },
141
+ {
142
+ "client_info": {
143
+ "mobilesdk_app_id": "1:372849797851:android:d83e963ad537f8fb337afe",
144
+ "android_client_info": {
145
+ "package_name": "com.example.abc"
146
+ }
147
+ },
148
+ "oauth_client": [
149
+ {
150
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
151
+ "client_type": 3
152
+ }
153
+ ],
154
+ "api_key": [
155
+ {
156
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
157
+ }
158
+ ],
159
+ "services": {
160
+ "appinvite_service": {
161
+ "other_platform_oauth_client": [
162
+ {
163
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
164
+ "client_type": 3
165
+ }
166
+ ]
167
+ }
168
+ }
169
+ },
170
+ {
171
+ "client_info": {
172
+ "mobilesdk_app_id": "1:372849797851:android:3cbb0f051cfe9e32337afe",
173
+ "android_client_info": {
174
+ "package_name": "com.example.sdk_onoff"
175
+ }
176
+ },
177
+ "oauth_client": [
178
+ {
179
+ "client_id": "372849797851-lutbfvgtkp9imddhgvnhsogjmn36u0fs.apps.googleusercontent.com",
180
+ "client_type": 1,
181
+ "android_info": {
182
+ "package_name": "com.example.sdk_onoff",
183
+ "certificate_hash": "ce4b16335c5e8623dd2a4f1a5d8a5679960c0f02"
184
+ }
185
+ },
186
+ {
187
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
188
+ "client_type": 3
189
+ }
190
+ ],
191
+ "api_key": [
192
+ {
193
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
194
+ }
195
+ ],
196
+ "services": {
197
+ "appinvite_service": {
198
+ "other_platform_oauth_client": [
199
+ {
200
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
201
+ "client_type": 3
202
+ }
203
+ ]
204
+ }
205
+ }
206
+ },
207
+ {
208
+ "client_info": {
209
+ "mobilesdk_app_id": "1:372849797851:android:6338a6c717bbff3d337afe",
210
+ "android_client_info": {
211
+ "package_name": "com.ironclad.testfcm"
212
+ }
213
+ },
214
+ "oauth_client": [
215
+ {
216
+ "client_id": "372849797851-fnshq30eqht27m893j14e7msi8jvp56n.apps.googleusercontent.com",
217
+ "client_type": 1,
218
+ "android_info": {
219
+ "package_name": "com.ironclad.testfcm",
220
+ "certificate_hash": "7a4661ffa5ed1bfa4ec46f7c113e16cf7cbcc2e5"
221
+ }
222
+ },
223
+ {
224
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
225
+ "client_type": 3
226
+ }
227
+ ],
228
+ "api_key": [
229
+ {
230
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
231
+ }
232
+ ],
233
+ "services": {
234
+ "appinvite_service": {
235
+ "other_platform_oauth_client": [
236
+ {
237
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
238
+ "client_type": 3
239
+ }
240
+ ]
241
+ }
242
+ }
243
+ },
244
+ {
245
+ "client_info": {
246
+ "mobilesdk_app_id": "1:372849797851:android:4dffb4450c556236337afe",
247
+ "android_client_info": {
248
+ "package_name": "com.shailesh.xyz"
249
+ }
250
+ },
251
+ "oauth_client": [
252
+ {
253
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
254
+ "client_type": 3
255
+ }
256
+ ],
257
+ "api_key": [
258
+ {
259
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
260
+ }
261
+ ],
262
+ "services": {
263
+ "appinvite_service": {
264
+ "other_platform_oauth_client": [
265
+ {
266
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
267
+ "client_type": 3
268
+ }
269
+ ]
270
+ }
271
+ }
272
+ }
273
+ ],
274
+ "configuration_version": "1"
275
+ }
@@ -25,6 +25,7 @@ buildscript {
25
25
  classpath("com.android.tools.build:gradle:7.1.1")
26
26
  classpath("com.facebook.react:react-native-gradle-plugin")
27
27
  classpath("de.undercouch:gradle-download-task:5.0.1")
28
+ classpath 'com.google.gms:google-services:4.3.13'
28
29
  // NOTE: Do not place your application dependencies here; they belong
29
30
  // in the individual module build.gradle files
30
31
  }
@@ -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
+ #Fri Aug 12 16:44:49 IST 2022
8
+ sdk.dir=/Users/amitpandey/Library/Android/sdk
@@ -22,13 +22,21 @@ target 'example' do
22
22
  # An absolute path to your application root.
23
23
  :app_path => "#{Pod::Config.instance.installation_root}/.."
24
24
  )
25
+
25
26
  pod'reactnative-plugin-appice',:path=>'../node_modules/reactnative-plugin-appice'
27
+ pod 'Firebase', :modular_headers => true
28
+ pod 'FirebaseCoreInternal', :modular_headers => true
29
+ pod 'GoogleUtilities', :modular_headers => true
30
+ pod 'FirebaseCore', :modular_headers => true
31
+ $RNFirebaseAsStaticFramework = true
32
+
26
33
 
27
34
  target 'exampleTests' do
28
35
  inherit! :complete
29
36
  # Pods for testing
30
37
  end
31
38
 
39
+
32
40
  post_install do |installer|
33
41
  react_native_post_install(installer)
34
42
  __apply_Xcode_12_5_M1_post_install_workaround(installer)
@@ -147,10 +147,9 @@ static NSString *const kRNConcurrentRoot = @"concurrentRoot";
147
147
  NSLog(@"%@ = %@", NSStringFromSelector(_cmd), error);
148
148
  NSLog(@"Failed to get token, Error: %@", error);
149
149
  }
150
- - (void)application:(UIApplication *)application
151
- didReceiveRemoteNotification:(NSDictionary *)userInfo
152
- fetchCompletionHandler:
153
- (void (^)(UIBackgroundFetchResult))completionHandler {
150
+ -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler{
151
+ NSLog(@"received payload =%@",userInfo);
152
+ [AppIceReactPlugin pushNotificationReceived:userInfo];
154
153
 
155
154
  }
156
155