@capacitor/local-notifications 9.0.0-alpha.1 → 9.0.0-alpha.2
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/CapacitorLocalNotifications.podspec +1 -1
- package/Package.swift +2 -2
- package/android/build.gradle +3 -4
- package/android/src/main/java/com/capacitorjs/plugins/localnotifications/LocalNotificationsPlugin.java +1 -0
- package/android/src/main/java/com/capacitorjs/plugins/localnotifications/NotificationChannelManager.java +1 -1
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { :git => 'https://github.com/ionic-team/capacitor-plugins.git', :tag => package['name'] + '@' + package['version'] }
|
|
13
13
|
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}', 'local-notifications/ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
-
s.ios.deployment_target = '
|
|
14
|
+
s.ios.deployment_target = '16.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
16
|
s.swift_version = '5.1'
|
|
17
17
|
end
|
package/Package.swift
CHANGED
|
@@ -3,14 +3,14 @@ import PackageDescription
|
|
|
3
3
|
|
|
4
4
|
let package = Package(
|
|
5
5
|
name: "CapacitorLocalNotifications",
|
|
6
|
-
platforms: [.iOS(.
|
|
6
|
+
platforms: [.iOS(.v16)],
|
|
7
7
|
products: [
|
|
8
8
|
.library(
|
|
9
9
|
name: "CapacitorLocalNotifications",
|
|
10
10
|
targets: ["LocalNotificationsPlugin"])
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
|
13
|
-
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "9.0.0-alpha.
|
|
13
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "9.0.0-alpha.5")
|
|
14
14
|
],
|
|
15
15
|
targets: [
|
|
16
16
|
.target(
|
package/android/build.gradle
CHANGED
|
@@ -15,7 +15,7 @@ buildscript {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
dependencies {
|
|
18
|
-
classpath 'com.android.tools.build:gradle:
|
|
18
|
+
classpath 'com.android.tools.build:gradle:9.2.1'
|
|
19
19
|
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
|
|
20
20
|
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
|
|
21
21
|
}
|
|
@@ -31,10 +31,9 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
|
|
|
31
31
|
|
|
32
32
|
android {
|
|
33
33
|
namespace = "com.capacitorjs.plugins.localnotifications"
|
|
34
|
-
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
34
|
+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 37
|
|
35
35
|
defaultConfig {
|
|
36
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
37
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
36
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 26
|
|
38
37
|
versionCode 1
|
|
39
38
|
versionName "1.0"
|
|
40
39
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -121,6 +121,7 @@ public class LocalNotificationsPlugin extends Plugin {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
@PluginMethod
|
|
124
|
+
@SuppressWarnings("deprecation")
|
|
124
125
|
public void getDeliveredNotifications(PluginCall call) {
|
|
125
126
|
JSArray notifications = new JSArray();
|
|
126
127
|
StatusBarNotification[] activeNotifications = notificationManager.getActiveNotifications();
|
|
@@ -117,7 +117,7 @@ public class NotificationChannelManager {
|
|
|
117
117
|
channel.put(CHANNEL_SOUND, notificationChannel.getSound());
|
|
118
118
|
channel.put(CHANNEL_VIBRATE, notificationChannel.shouldVibrate());
|
|
119
119
|
channel.put(CHANNEL_USE_LIGHTS, notificationChannel.shouldShowLights());
|
|
120
|
-
channel.put(CHANNEL_LIGHT_COLOR, String.format("#%06X",
|
|
120
|
+
channel.put(CHANNEL_LIGHT_COLOR, String.format("#%06X", 0xFFFFFF & notificationChannel.getLightColor()));
|
|
121
121
|
Logger.debug(Logger.tags("NotificationChannel"), "visibility " + notificationChannel.getLockscreenVisibility());
|
|
122
122
|
Logger.debug(Logger.tags("NotificationChannel"), "importance " + notificationChannel.getImportance());
|
|
123
123
|
channels.put(channel);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/local-notifications",
|
|
3
|
-
"version": "9.0.0-alpha.
|
|
3
|
+
"version": "9.0.0-alpha.2",
|
|
4
4
|
"description": "The Local Notifications API provides a way to schedule device notifications locally (i.e. without a server sending push notifications).",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "3865beba413621711a947acc8d61bb4c74d98122"
|
|
86
86
|
}
|