Skip to content
Closed
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased (develop)

- fixed: Android home screen long-press shortcuts no longer depend on a foreground activity during startup, and a shortcut registration failure no longer blocks the rest of the app.

## 4.51.0 (staging)

- added: Push info-server attestation tokens into edge-core-js via `setAttestationToken` so the login server can skip CAPTCHA for attested devices, and allow `LOGIN_SERVER` / `INFO_SERVER` env overrides for local E2E stacks.
Expand Down
17 changes: 17 additions & 0 deletions patches/expo-quick-actions+5.0.0.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ index 4db980e..53bb319 100644
}
}

diff --git a/node_modules/expo-quick-actions/android/src/main/java/expo/modules.quickactions/ExpoQuickActionsModule.kt b/node_modules/expo-quick-actions/android/src/main/java/expo/modules.quickactions/ExpoQuickActionsModule.kt
index 66dc4a0..6bda3f8 100644
--- a/node_modules/expo-quick-actions/android/src/main/java/expo/modules.quickactions/ExpoQuickActionsModule.kt
+++ b/node_modules/expo-quick-actions/android/src/main/java/expo/modules.quickactions/ExpoQuickActionsModule.kt
@@ -3 +2,0 @@
-import android.app.Activity
@@ -126,3 +124,0 @@
- private val currentActivity: Activity?
- get() = appContext.currentActivity
-
@@ -229,0 +226,3 @@
+ val launchIntent = context.packageManager
+ .getLaunchIntentForPackage(context.packageName)
+ ?: throw IllegalStateException("Unable to find the app launch intent")
@@ -232 +231 @@
- val intent = Intent(context, currentActivity!!::class.java)
+ val intent = Intent(launchIntent)
diff --git a/node_modules/expo-quick-actions/ios/ExpoQuickActionsModule.swift b/node_modules/expo-quick-actions/ios/ExpoQuickActionsModule.swift
index 252da49..12a29e4 100644
--- a/node_modules/expo-quick-actions/ios/ExpoQuickActionsModule.swift
Expand Down
3 changes: 2 additions & 1 deletion src/components/services/QuickActionsManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useAsyncEffect } from '../../hooks/useAsyncEffect'
import { useHandler } from '../../hooks/useHandler'
import { lstrings } from '../../locales/strings'
import { config } from '../../theme/appConfig'
import { trackError } from '../../util/tracking'
import { showError } from './AirshipInstance'

export const QuickActionsManager: React.FC = () => {
Expand Down Expand Up @@ -38,7 +39,7 @@ export const QuickActionsManager: React.FC = () => {
}
])
} catch (error: unknown) {
showError(error)
trackError(error, 'QuickActionsManager:setItems')
}
},
[],
Expand Down
Loading