intentcall_android 0.1.0
intentcall_android: ^0.1.0 copied to clipboard
PRE-RELEASE — Android shortcuts XML manifest generator from intentcall agent manifest JSON.
⚠️ Pre-release (0.1.x) — Highly experimental. APIs may change without notice. Not for production. Details.
intentcall_android #
Android manifest codegen for intentcall (App Actions / dynamic shortcuts export).
Author workflow #
- Author tools — hand-written
AgentCallEntryor optional@AgentToolcodegen (intentcall_codegen). - Collect descriptors —
entry.toRegistration().descriptoror registry snapshot. - Generate manifest —
generateAndroidAgentManifest(descriptors)→agent_manifest.json. - Platform snippet — map manifest shortcuts to
shortcuts.xml/ App Actions.
import 'package:intentcall_android/intentcall_android.dart';
final json = generateAndroidAgentManifest([
entry.toRegistration().descriptor,
]);
// write to android/app/src/main/res/values/agent_manifest.json
Example XML-oriented snippet derived from manifest:
<!-- agent_manifest.json → res/xml/shortcuts.xml (illustrative) -->
<!-- shortcut android:shortcutId="app_demo_ping" -->
<!-- android:shortcutShortLabel="Demo ping" /> -->
Input: agent_manifest.json (platform: android, shortcuts[]).
Output: JSON manifest + documented XML mapping for App Actions.
See test/agent_manifest_generator_test.dart.