expo-invoke 3.1.2 → 3.1.3
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/android/build.gradle
CHANGED
|
@@ -33,6 +33,12 @@ dependencies {
|
|
|
33
33
|
implementation project(':expo-modules-core')
|
|
34
34
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlinVersion}"
|
|
35
35
|
implementation "androidx.core:core-ktx:1.12.0"
|
|
36
|
+
// InvokeSliceProvider.kt uses androidx.slice.* (Slice, SliceProvider, ListBuilder,
|
|
37
|
+
// SliceAction) but nothing declared the artifact that ships those classes —
|
|
38
|
+
// every consumer with slices configured (or even just autolinked, since Gradle
|
|
39
|
+
// compiles this whole module regardless of feature usage) failed to compile.
|
|
40
|
+
implementation "androidx.slice:slice-core:1.0.0"
|
|
41
|
+
implementation "androidx.slice:slice-builders:1.0.0"
|
|
36
42
|
}
|
|
37
43
|
|
|
38
44
|
def safeExtGet(prop, fallback) {
|
|
@@ -27,15 +27,17 @@ function generateShortcutsXml(intents, packageName) {
|
|
|
27
27
|
`You have ${shortcutIntents.length} intents with shortTitle — ` +
|
|
28
28
|
`only the first 5 will be included. Remove shortTitle from lower-priority intents.`);
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
// Static shortcuts have no `android:rank` XML attribute — AAPT rejects it
|
|
31
|
+
// outright ("attribute android:rank not found"). Rank only exists on the
|
|
32
|
+
// runtime ShortcutInfo.Builder API for dynamic shortcuts; for static ones,
|
|
33
|
+
// priority is implied purely by declaration order in this file.
|
|
34
|
+
const items = shortcutIntents.slice(0, 5).map((intent) => {
|
|
32
35
|
const resourceName = toResourceName(intent.id);
|
|
33
36
|
return ` <shortcut
|
|
34
37
|
android:shortcutId="${escapeXml(intent.id)}"
|
|
35
38
|
android:enabled="true"
|
|
36
39
|
android:shortcutShortLabel="@string/shortcut_short_label_${resourceName}"
|
|
37
|
-
android:shortcutLongLabel="@string/shortcut_long_label_${resourceName}"
|
|
38
|
-
android:rank="${rank}">
|
|
40
|
+
android:shortcutLongLabel="@string/shortcut_long_label_${resourceName}">
|
|
39
41
|
<intent
|
|
40
42
|
android:action="${escapeXml(packageName)}.SHORTCUT"
|
|
41
43
|
android:targetPackage="${escapeXml(packageName)}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateShortcutsXml.js","sourceRoot":"","sources":["../../../plugin/codegen/generateShortcutsXml.ts"],"names":[],"mappings":";;AAgBA,
|
|
1
|
+
{"version":3,"file":"generateShortcutsXml.js","sourceRoot":"","sources":["../../../plugin/codegen/generateShortcutsXml.ts"],"names":[],"mappings":";;AAgBA,oDAiDC;AAOD,gEAgBC;AAtFD,SAAS,SAAS,CAAC,CAAS;IAC1B,OAAO,CAAC;SACL,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC;SACtB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC7B,CAAC;AAED,4EAA4E;AAC5E,yEAAyE;AACzE,SAAS,cAAc,CAAC,EAAU;IAChC,OAAO,EAAE,CAAC,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,oBAAoB,CAClC,OAA2B,EAC3B,WAAmB;IAEnB,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IAE5D,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjC,OAAO;;;CAGV,CAAC;IACA,CAAC;IAED,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/B,OAAO,CAAC,IAAI,CACV,0DAA0D;YAC1D,YAAY,eAAe,CAAC,MAAM,6BAA6B;YAC/D,mFAAmF,CACpF,C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,uCAAuC,YAAY,KAAK,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,WAAW;SACxG,CAAC;IACJ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,OAAO,wDAAwD,OAAO,kBAAkB,CAAC;AAC3F,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-invoke",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"description": "The complete native-surface-to-JS bridge for Expo. One intent config → Siri, Google Assistant, home screen widgets, Dynamic Island, app icon menus, notification actions, NFC, QR, deep links and more — all through a single useInvoke() hook.",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"module": "build/src/index.js",
|