Browse Source

consolidate mobile build instructions, moving config afterward

pull/127/head
Trent Larson 2 weeks ago
parent
commit
245959d783
  1. 67
      BUILDING.md

67
BUILDING.md

@ -108,25 +108,29 @@ Prerequisites: macOS with Xcode installed
npm run build:capacitor npm run build:capacitor
``` ```
2. Add iOS platform if not already added: 2. Update iOS project with latest build:
```bash ```bash
npx cap add ios npx cap sync ios
``` ```
3. Update iOS project with latest build: 3. Open the project in Xcode:
```bash ```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 ```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 ### Android Build
@ -140,27 +144,40 @@ Prerequisites: Android Studio with SDK installed
npm run build:capacitor npm run build:capacitor
``` ```
2. Add Android platform if not already added: 2. Update Android project with latest build:
```bash ```bash
npx cap add android npx cap sync android
``` ```
3. Update Android project with latest build: 3. Open the project in Android Studio:
```bash ```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 ```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: 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 ## PyWebView Desktop Build
### Prerequisites for PyWebView ### Prerequisites for PyWebView

Loading…
Cancel
Save