expo-notifications 0.27.1 → 0.27.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/CHANGELOG.md CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.27.2 — 2023-12-19
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
13
17
  ## 0.27.1 — 2023-12-13
14
18
 
15
19
  _This version does not introduce any user-facing changes._
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '0.27.1'
6
+ version = '0.27.2'
7
7
 
8
8
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
9
9
  if (expoModulesCorePlugin.exists()) {
@@ -94,7 +94,7 @@ android {
94
94
  namespace "expo.modules.notifications"
95
95
  defaultConfig {
96
96
  versionCode 21
97
- versionName '0.27.1'
97
+ versionName '0.27.2'
98
98
  }
99
99
 
100
100
  buildFeatures {
@@ -8,7 +8,7 @@ typealias ResultReceiverBody = (resultCode: Int, resultData: Bundle?) -> Unit
8
8
 
9
9
  internal fun createDefaultResultReceiver(
10
10
  handler: Handler?,
11
- body: ResultReceiverBody,
11
+ body: ResultReceiverBody
12
12
  ): ResultReceiver {
13
13
  return object : ResultReceiver(handler) {
14
14
  override fun onReceiveResult(resultCode: Int, resultData: Bundle?) {
@@ -107,7 +107,7 @@ open class ExpoNotificationCategoriesModule : Module() {
107
107
  NotificationAction(
108
108
  actionMap.identifier,
109
109
  actionMap.buttonTitle,
110
- actionMap.options.opensAppToForeground,
110
+ actionMap.options.opensAppToForeground
111
111
  )
112
112
  )
113
113
  }
@@ -56,7 +56,7 @@ class NotificationPermissionsModule : Module() {
56
56
  val managerCompat = NotificationManagerCompat.from(context)
57
57
  val areEnabled = managerCompat.areNotificationsEnabled()
58
58
  val platformBundle = bundleOf(
59
- IMPORTANCE_KEY to managerCompat.importance,
59
+ IMPORTANCE_KEY to managerCompat.importance
60
60
  ).apply {
61
61
  val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as? NotificationManager
62
62
  if (notificationManager != null) {
@@ -80,7 +80,7 @@ class NotificationPermissionsModule : Module() {
80
80
  PermissionsResponse.STATUS_KEY to status,
81
81
  PermissionsResponse.CAN_ASK_AGAIN_KEY to canAskAgain,
82
82
  PermissionsResponse.GRANTED_KEY to areAllGranted,
83
- ANDROID_RESPONSE_KEY to platformBundle,
83
+ ANDROID_RESPONSE_KEY to platformBundle
84
84
  )
85
85
  )
86
86
  },
@@ -93,7 +93,7 @@ class NotificationPermissionsModule : Module() {
93
93
  val areEnabled = managerCompat.areNotificationsEnabled()
94
94
  val status = if (areEnabled) PermissionsStatus.GRANTED else PermissionsStatus.DENIED
95
95
  val platformBundle = bundleOf(
96
- IMPORTANCE_KEY to managerCompat.importance,
96
+ IMPORTANCE_KEY to managerCompat.importance
97
97
  ).apply {
98
98
  val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as? NotificationManager
99
99
  if (notificationManager != null) {
@@ -107,7 +107,7 @@ class NotificationPermissionsModule : Module() {
107
107
  PermissionsResponse.STATUS_KEY to status.status,
108
108
  PermissionsResponse.CAN_ASK_AGAIN_KEY to areEnabled,
109
109
  PermissionsResponse.GRANTED_KEY to (status == PermissionsStatus.GRANTED),
110
- ANDROID_RESPONSE_KEY to platformBundle,
110
+ ANDROID_RESPONSE_KEY to platformBundle
111
111
  )
112
112
  )
113
113
  }
@@ -13,7 +13,9 @@ open class RegistrationInfo(private val context: Context) {
13
13
 
14
14
  fun get(): String? = if (nonBackedUpRegistrationInfoFile.exists()) {
15
15
  nonBackedUpRegistrationInfoFile.readText()
16
- } else null
16
+ } else {
17
+ null
18
+ }
17
19
 
18
20
  fun set(registrationInfo: String?) {
19
21
  nonBackedUpRegistrationInfoFile.delete()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-notifications",
3
- "version": "0.27.1",
3
+ "version": "0.27.2",
4
4
  "description": "Notifications module",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -55,5 +55,5 @@
55
55
  "peerDependencies": {
56
56
  "expo": "*"
57
57
  },
58
- "gitHead": "1c97be7c8c3c8661698038bf7912fb7c64ba8c35"
58
+ "gitHead": "43f1b4f8a5a9bca649e4e7ca6e4155482a162431"
59
59
  }