Remove local webserver and refactor native bridge#176
Conversation
Replaces the legacy local webserver and iframe architecture with a standard Capacitor app structure served from the local filesystem. - Implements remote updates and offline support via a Service Worker strategy that prefers remote content but falls back to the local bundle. - Refactors native bridge logic (geolocation, authentication, deep linking) to use Capacitor plugins directly. - Simplifies build process to output to `www` directory. Co-authored-by: ecc521 <42424091+ecc521@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This change removes the dependency on
@ionic-native/web-serverandcordova-plugin-webserver, which were causing issues.Key changes:
www), eliminating the need for a local node.js-like server and iframe.src/allPages/nativeIntegration.js, which is dynamically imported on native platforms.sw.js): The Service Worker has been updated to handle remote updates. When running in the app, it intercepts requests for local assets and attempts to fetch the latest version fromhttps://rivers.run. It caches the response for offline use and falls back to the bundled assets if the network is unavailable.buildCapacitor.shnow builds the web app into awwwdirectory and copies it to the native platform, streamlining the deployment process.capacitor.config.jsonis updated to point towwwand use thehttpsscheme on Android for secure context.PR created automatically by Jules for task 15624957458305916308 started by @ecc521