Demo Capacitor app with an Android and a iOS demo plugin.
Folder structure:
src
contains the webapp consisting of a single page (Home.tsx).android
contains the Android project and the native Capacitor plugin OneTrustPlugin.java.ios
contains the iOS project and the native Capacitor plugin OneTrustPlugin.swift.
Install Node.js v12 (or v14) from https://nodejs.org/en/download/
npm install
npm start
npm run build
This needs to be done every time after building the web app.
npx cap sync
npx cap open android
npx cap open ios