Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions patches/expo-widgets@58.0.18.patch
Original file line number Diff line number Diff line change
@@ -1,3 +1,64 @@
diff --git a/android/src/main/java/expo/modules/widgets/WidgetsModule.kt b/android/src/main/java/expo/modules/widgets/WidgetsModule.kt
index f947f46..d290055 100644
--- a/android/src/main/java/expo/modules/widgets/WidgetsModule.kt
+++ b/android/src/main/java/expo/modules/widgets/WidgetsModule.kt
@@ -84,6 +84,11 @@ class WidgetsModule : Module() {
}

Class("CustomNotification", CustomNotification::class) {
+ // A SharedObject class without a constructor fails module registration at launch.
+ Constructor { ->
+ throw UnsupportedOperationException("CustomNotification instances come from CustomNotificationFactory")
+ }
+
Function("getId") { notification: CustomNotification ->
notification.id
}
diff --git a/android/src/main/java/expo/modules/widgets/notifications/CustomNotificationBuilder.kt b/android/src/main/java/expo/modules/widgets/notifications/CustomNotificationBuilder.kt
index 07eca41..82cabea 100644
--- a/android/src/main/java/expo/modules/widgets/notifications/CustomNotificationBuilder.kt
+++ b/android/src/main/java/expo/modules/widgets/notifications/CustomNotificationBuilder.kt
@@ -14,8 +14,8 @@ import android.os.Bundle
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
import expo.modules.widgets.R
-import io.github.jakex7.peek.notification.PeekNotificationViews
-import io.github.jakex7.peek.notification.setPeekContent
+import io.github.expo.peek.notification.PeekNotificationViews
+import io.github.expo.peek.notification.setPeekContent

internal object CustomNotificationBuilder {
private const val DEFAULT_CHANNEL_ID = "expo_widgets_notifications"
diff --git a/android/src/main/java/expo/modules/widgets/notifications/CustomNotificationRenderer.kt b/android/src/main/java/expo/modules/widgets/notifications/CustomNotificationRenderer.kt
index 446a39e..e90b09a 100644
--- a/android/src/main/java/expo/modules/widgets/notifications/CustomNotificationRenderer.kt
+++ b/android/src/main/java/expo/modules/widgets/notifications/CustomNotificationRenderer.kt
@@ -8,9 +8,9 @@ import expo.modules.widgets.WidgetsStorage
import expo.modules.widgets.evaluateLayout
import expo.modules.widgets.getWidgetEnvironment
import expo.modules.widgets.toPeekRoot
-import io.github.jakex7.peek.emittables.peekEmittableNotificationViews
-import io.github.jakex7.peek.notification.PeekNotificationSizes
-import io.github.jakex7.peek.notification.PeekNotificationViews
+import io.github.expo.peek.emittables.peekEmittableNotificationViews
+import io.github.expo.peek.notification.PeekNotificationSizes
+import io.github.expo.peek.notification.PeekNotificationViews

internal object CustomNotificationRenderer {
suspend fun render(context: Context, state: CustomNotificationState): PeekNotificationViews {
diff --git a/android/src/main/java/expo/modules/widgets/notifications/CustomNotifications.kt b/android/src/main/java/expo/modules/widgets/notifications/CustomNotifications.kt
index a7b372e..dd001ee 100644
--- a/android/src/main/java/expo/modules/widgets/notifications/CustomNotifications.kt
+++ b/android/src/main/java/expo/modules/widgets/notifications/CustomNotifications.kt
@@ -3,7 +3,7 @@ package expo.modules.widgets.notifications
import android.annotation.SuppressLint
import android.content.Context
import androidx.core.app.NotificationManagerCompat
-import io.github.jakex7.peek.notification.PeekNotificationViews
+import io.github.expo.peek.notification.PeekNotificationViews
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.Job
import kotlinx.coroutines.coroutineScope
diff --git a/build/Widgets.types.d.ts b/build/Widgets.types.d.ts
index 4c474bb..b0173df 100644
--- a/build/Widgets.types.d.ts
Expand Down
63 changes: 13 additions & 50 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ overrides:
# Keep jsdom's optional peer consistent so Vite+ has one test-runner instance.
"@exodus/bytes>@noble/hashes": "1.8.0"
# Earlier React Navigation declarations create a circular type alias in TypeScript 7.
"@react-navigation/core": 7.21.13
# Move this with @react-navigation/native: an older core than it requires crashes
# every native stack at launch.
"@react-navigation/core": 7.24.0
# The dbus-next patch drops usocket from the package, but pnpm resolves from the
# registry manifest, so the edge has to be cut here as well.
"dbus-next>usocket": "-"
Expand Down
Loading