c6f236ecf9
Device telemetry proved the app-embedded AudioRoute class never registered (not in
Capacitor.Plugins) — appending a CAPBridgedPlugin to AppDelegate.swift gets stripped/undiscovered
in release builds. The plugins that DO register (Share, Camera, Filesystem) are all npm packages
wired by cap sync. So AudioRoute is now a local plugin package (mobile/plugins/audio-route,
file: dep in mobile/package.json) with a podspec + CAPBridgedPlugin Swift — cap sync adds its pod
and Capacitor registers it like the others. load() sets the launch speaker default; setSpeaker({on})
overrides the output port. inject-audio.js no longer injects the plugin class (would duplicate);
it keeps only the AppDelegate launch default as a fallback.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
32 lines
971 B
JSON
32 lines
971 B
JSON
{
|
|
"name": "biz-connect-mobile",
|
|
"version": "0.1.0",
|
|
"description": "Biz Connect mobile app — Capacitor shell loading the Connect web UI",
|
|
"scripts": {
|
|
"sync": "cap sync",
|
|
"assets": "capacitor-assets generate --android",
|
|
"assets:all": "capacitor-assets generate",
|
|
"android": "cap open android",
|
|
"ios": "cap open ios"
|
|
},
|
|
"dependencies": {
|
|
"audio-route": "file:plugins/audio-route",
|
|
"@capacitor-community/safe-area": "^7.0.0",
|
|
"@capacitor/android": "^7.0.0",
|
|
"@capacitor/app": "^7.0.0",
|
|
"@capacitor/camera": "^7.0.0",
|
|
"@capacitor/core": "^7.0.0",
|
|
"@capacitor/filesystem": "^7.0.0",
|
|
"@capacitor/ios": "^7.0.0",
|
|
"@capacitor/keyboard": "^7.0.0",
|
|
"@capacitor/share": "^7.0.0",
|
|
"@capacitor/push-notifications": "^7.0.0",
|
|
"@capacitor/splash-screen": "^7.0.0",
|
|
"@capacitor/status-bar": "^7.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@capacitor/assets": "^3.0.5",
|
|
"@capacitor/cli": "^7.0.0"
|
|
}
|
|
}
|