react-native-acoustic-mobile-push-snooze-beta 3.9.33 → 3.9.35

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.
@@ -1,35 +1,24 @@
1
-
2
- buildscript {
3
- repositories {
4
- jcenter()
5
- }
6
-
7
- dependencies {
8
- classpath 'com.android.tools.build:gradle:1.3.1'
9
- }
10
- }
11
-
12
1
  apply plugin: 'com.android.library'
13
2
 
14
3
  android {
15
- compileSdkVersion 31
16
-
17
- defaultConfig {
18
- minSdkVersion 21
19
- targetSdkVersion 26
20
- versionCode 1
21
- versionName "1.0"
22
- }
23
- lintOptions {
24
- abortOnError false
25
- }
4
+ compileSdk 34
5
+
6
+ defaultConfig {
7
+ minSdkVersion 21
8
+ targetSdkVersion 34
9
+ versionCode 1
10
+ versionName "1.0"
11
+ }
12
+ lintOptions {
13
+ abortOnError false
14
+ }
26
15
  }
27
16
 
28
17
  dependencies {
29
- compileOnly('com.facebook.react:react-native:+') {
30
- exclude group: 'com.android.support'
31
- }
18
+ compileOnly('com.facebook.react:react-native:+') {
19
+ exclude group: 'com.android.support'
20
+ }
32
21
 
33
- implementation "io.github.go-acoustic:acoustic-mobile-push-android-sdk:$campaignSDKVersion"
22
+ implementation "io.github.go-acoustic:acoustic-mobile-push-android-sdk:$campaignSDKVersion"
34
23
  }
35
24
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright © 2011, 2019 Acoustic, L.P. All rights reserved.
2
+ * Copyright (C) 2025 Acoustic, L.P. All rights reserved.
3
3
  *
4
4
  * NOTICE: This file contains material that is confidential and proprietary to
5
5
  * Acoustic, L.P. and/or other developers. No license is granted under any intellectual or
@@ -29,38 +29,38 @@ import java.util.Calendar;
29
29
  * This service restores the snoozed notification to the notification bar.
30
30
  */
31
31
  public class SnoozeIntentService extends IntentService {
32
- private static final String TAG = "SnoozeIntentService";
32
+ private static final String TAG = "SnoozeIntentService";
33
33
 
34
- public SnoozeIntentService() {
35
- super("Snooze");
36
- }
34
+ public SnoozeIntentService() {
35
+ super("Snooze");
36
+ }
37
37
 
38
- @Override
39
- protected void onHandleIntent(Intent intent) {
40
- Logger.d(TAG, "Snooze done");
41
- Bundle extras = new Bundle();
42
- extras.putString(Constants.Notifications.ALERT_KEY, intent.getStringExtra(Constants.Notifications.SOURCE_NOTIFICATION_KEY));
43
- extras.putString(Constants.Notifications.MCE_PAYLOAD_KEY, intent.getStringExtra(Constants.Notifications.SOURCE_MCE_PAYLOAD_KEY));
44
- try {
45
- AlertProcessor.processAlert(getApplicationContext(), extras);
46
-
47
- } catch (JSONException jsone) {
48
- Logger.e(TAG, "Failed to parse notification", jsone);
49
- }
38
+ @Override
39
+ protected void onHandleIntent(Intent intent) {
40
+ Logger.d(TAG, "Snooze done");
41
+ Bundle extras = new Bundle();
42
+ try {
43
+ extras.putString(Constants.Notifications.ALERT_KEY, intent.getStringExtra(Constants.Notifications.SOURCE_NOTIFICATION_KEY));
44
+ extras.putString(Constants.Notifications.MCE_PAYLOAD_KEY, intent.getStringExtra(Constants.Notifications.SOURCE_MCE_PAYLOAD_KEY));
45
+ AlertProcessor.processAlert(getApplicationContext(), extras);
46
+ } catch (Exception e) {
47
+ Logger.e(TAG, "Failed to process alert", e);
50
48
  }
49
+ }
51
50
 
52
51
 
53
- /**
54
- * This method schedule a notification reappearance
55
- * @param mgr The alarm manager
56
- * @param pi The pending intent for the action
57
- * @param delayInMinutes The number of minutes after which the notification will reappear
58
- */
59
- public void scheduleSnooze(AlarmManager mgr, PendingIntent pi, int delayInMinutes) {
60
- Calendar alertTime = Calendar.getInstance();
61
- alertTime.setTimeInMillis(System.currentTimeMillis());
62
- alertTime.add(Calendar.MINUTE, delayInMinutes);
63
- mgr.set(AlarmManager.RTC, alertTime.getTimeInMillis(), pi);
64
- Logger.d(TAG, "Snooze service was scheduled with the date " + alertTime.getTime());
65
- }
52
+ /**
53
+ * This method schedule a notification reappearance
54
+ *
55
+ * @param mgr The alarm manager
56
+ * @param pi The pending intent for the action
57
+ * @param delayInMinutes The number of minutes after which the notification will reappear
58
+ */
59
+ public void scheduleSnooze(AlarmManager mgr, PendingIntent pi, int delayInMinutes) {
60
+ Calendar alertTime = Calendar.getInstance();
61
+ alertTime.setTimeInMillis(System.currentTimeMillis());
62
+ alertTime.add(Calendar.MINUTE, delayInMinutes);
63
+ mgr.set(AlarmManager.RTC, alertTime.getTimeInMillis(), pi);
64
+ Logger.d(TAG, "Snooze service was scheduled with the date " + alertTime.getTime());
65
+ }
66
66
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "author": "Acoustic, L.P.",
11
11
  "peerDependencies": {
12
- "react-native-acoustic-mobile-push-beta": "3.9.33"
12
+ "react-native-acoustic-mobile-push-beta": "3.9.35"
13
13
  },
14
14
  "description": "BETA: Acoustic Mobile Push Snooze Action Plugin",
15
15
  "main": "index.js",
@@ -18,7 +18,7 @@
18
18
  "directory": "plugins/react-native-acoustic-mobile-push-snooze",
19
19
  "url": "https://github.com/aipoweredmarketer/ca-mce-react-native"
20
20
  },
21
- "version": "3.9.33",
21
+ "version": "3.9.35",
22
22
  "dependencies": {
23
23
  "plist": "^3.0.1",
24
24
  "xml2js": "^0.4.19",