diff --git a/BUILDING.md b/BUILDING.md index 6949b3f..a774c24 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -108,25 +108,29 @@ Prerequisites: macOS with Xcode installed npm run build:capacitor ``` -2. Add iOS platform if not already added: +2. Update iOS project with latest build: ```bash - npx cap add ios + npx cap sync ios ``` -3. Update iOS project with latest build: +3. Open the project in Xcode: ```bash - npx cap sync ios + npx cap open ios ``` -4. Open the project in Xcode: +4. Use Xcode to build and run on simulator or device. + +If you have forked this to make your own app, you'll want to customize the ios files: ```bash - npx cap open ios + rm -rf ios + npx cap add ios ``` -5. Use Xcode to build and run on simulator or device. +... and then repeat the steps above. + ### Android Build @@ -140,27 +144,40 @@ Prerequisites: Android Studio with SDK installed npm run build:capacitor ``` -2. Add Android platform if not already added: +2. Update Android project with latest build: ```bash - npx cap add android + npx cap sync android ``` -3. Update Android project with latest build: +3. Open the project in Android Studio: ```bash - npx cap sync android + npx cap open android ``` -4. Open the project in Android Studio: +3. Use Android Studio to build and run on emulator or device. + +If you have forked this to make your own app, you'll want to customize the android files: ```bash - npx cap open android + rm -rf android + npx cap add android ``` -5. Use Android Studio to build and run on emulator or device. +... and then: repeat the steps above, and look below for the deep link configuration. -## Building Android for deep links +## Building Android from the console + + ```bash + cd android + ./gradlew clean + ./gradlew build -Dlint.baselines.continue=true + cd .. + npx cap run android + ``` + +## Configuring Android for deep links You must add the following intent filter to the `android/app/src/main/AndroidManifest.xml` file: @@ -226,26 +243,6 @@ Modify `/android/build.gradle` to use a stable version of AGP and make sure Kotl } ``` -## Building Android from the console - - ```bash - cd android - ./gradlew clean - ./gradlew build -Dlint.baselines.continue=true - cd .. - npx cap run android - ``` - -## Development - -To run the application in development mode: - -1. Start the development server: - - ```bash - npm run dev - ``` - ## PyWebView Desktop Build ### Prerequisites for PyWebView