Skip to content

Commit 18cf661

Browse files
committed
Relocate and update capacitor config
1 parent 60560d7 commit 18cf661

File tree

5 files changed

+54
-15
lines changed

5 files changed

+54
-15
lines changed

client/capacitor.config.ts

-13
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
{
22
"appId": "org.openmsupply.client",
33
"appName": "openmsupply-client",
4-
"webDir": "packages/host/dist",
4+
"webDir": "notexistent",
55
"bundledWebRuntime": false,
66
"android": {
7-
"path": "packages/android"
7+
"path": "./"
8+
},
9+
"server": {
10+
"url": "https://localhost:8000",
11+
"hostname": "should.notmatch.localhost",
12+
"allowNavigation": [
13+
"*"
14+
]
815
}
916
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { CapacitorConfig } from '@capacitor/cli';
2+
3+
// This file is used to generate packages/android/app/src/main/assets/capacitor.config.json
4+
// run `yarn apply-config` when changing this file
5+
6+
const config: CapacitorConfig = {
7+
appId: 'org.openmsupply.client',
8+
appName: 'openmsupply-client',
9+
// This is only needed for `npx cap copy` to work, it doesn't have to point to actual bundle
10+
// bundle is server by remote server (local or discovered) or through webpack if debugging (see comment below)
11+
webDir: 'notexistent',
12+
bundledWebRuntime: false,
13+
android: {
14+
path: './',
15+
},
16+
server: {
17+
url: 'https://localhost:8000',
18+
// If hostname is kept as localhost then Capacitor localServer will try to use bundled web app vs web app from remote/wepack server
19+
hostname: 'should.notmatch.localhost',
20+
allowNavigation: ['*'],
21+
},
22+
// Below will turn on debug (uncomment and run `yarn apply-config`)
23+
// plugins: {
24+
// NativeApi: {
25+
// debugUrl: 'http://192.168.178.42:3003',
26+
// },
27+
// },
28+
};
29+
30+
export default config;
31+

node_modules/.yarn-integrity

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

yarn.lock

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+

0 commit comments

Comments
 (0)