Skip to content

Commit

Permalink
Add Capacitor iOS/Catalyst (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
talaviram authored Jan 11, 2025
1 parent a26e4ff commit 0646632
Show file tree
Hide file tree
Showing 53 changed files with 743 additions and 30 deletions.
28 changes: 28 additions & 0 deletions capacitor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Install dependencies

```bash
yarn --cwd .. install
yarn install
```

Expand All @@ -12,6 +13,8 @@ Build niimblue static files
yarn build-www
```

# Android

Run debug build on android device (adb)

```bash
Expand All @@ -32,3 +35,28 @@ yarn build-android
To see console, go to `chrome:inspect/#devices` on desktop chrome browser and select niimblue on your device.

To get prebuilt apk, see the latest artifact in [build-android-app](https://github.com/MultiMote/niimblue/actions/workflows/build-android-app.yml) Actions task.

# iOS (experimental)

Run debug build on iPhone Simulator

```bash
yarn run-ios
```

Run on device,

```bash
yarn build-ios
```

**iOS**: Unlike Android (and also Cordova), Capacitor lacks ability to pass `DEVELOPMENT_TEAM` as environment variable.

In order to run on actual device, you'll need to set your own DEVELOPMENT_TEAM within Xcode under `Signing & Capabilities`.

Free (limited) developer account is also available.
[Click here for more details](https://developer.apple.com/support/compare-memberships/)

**macOS (Catalyst)**: Choose Mac Catalyst.

Note: macOS doesn't need codesign to run on local machine.
3 changes: 3 additions & 0 deletions capacitor/capacitor.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const config: CapacitorConfig = {
signingType: "apksigner",
},
},
ios: {
scheme: "NiimBlues",
},
};

export default config;
13 changes: 13 additions & 0 deletions capacitor/ios/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
App/build
App/Pods
App/output
App/App/public
DerivedData
xcuserdata

# Cordova plugins for Capacitor
capacitor-cordova-ios-plugins

# Generated Config files
App/App/capacitor.config.json
App/App/config.xml
Loading

0 comments on commit 0646632

Please sign in to comment.