forked from trent_larson/crowd-funder-for-time-pwa
consolidate mobile build instructions, moving config afterward
This commit is contained in:
75
BUILDING.md
75
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
|
|
||||||
npx cap add ios
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Update iOS project with latest build:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx cap sync ios
|
npx cap sync ios
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Open the project in Xcode:
|
3. Open the project in Xcode:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx cap open ios
|
npx cap open ios
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Use Xcode to build and run on simulator or device.
|
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
|
||||||
|
rm -rf ios
|
||||||
|
npx cap add ios
|
||||||
|
```
|
||||||
|
|
||||||
|
... 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
|
|
||||||
npx cap add android
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Update Android project with latest build:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx cap sync android
|
npx cap sync android
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Open the project in Android Studio:
|
3. Open the project in Android Studio:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npx cap open android
|
npx cap open android
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Use Android Studio to build and run on emulator or device.
|
3. Use Android Studio to build and run on emulator or device.
|
||||||
|
|
||||||
## Building Android for deep links
|
If you have forked this to make your own app, you'll want to customize the android files:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
rm -rf android
|
||||||
|
npx cap add android
|
||||||
|
```
|
||||||
|
|
||||||
|
... and then: repeat the steps above, and look below for the deep link configuration.
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|||||||
Reference in New Issue
Block a user