Updating capacitor and android config to change appname

This commit is contained in:
Eric van der Vlist 2022-12-12 14:40:46 +01:00
parent 59faede004
commit 2f57bff6ed
3 changed files with 17 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dyomedea.solid"> package="com.dyomedea.dyomedea">
<application <application
android:allowBackup="true" android:allowBackup="true"
@ -14,7 +14,7 @@
<activity <activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:name="com.example.app.MainActivity" android:name="com.dyomedea.dyomedea.MainActivity"
android:label="@string/title_activity_main" android:label="@string/title_activity_main"
android:theme="@style/AppTheme.NoActionBarLaunch" android:theme="@style/AppTheme.NoActionBarLaunch"
android:launchMode="singleTask" android:launchMode="singleTask"

View File

@ -84,5 +84,17 @@ vdv@nuc:~/projects/tea/dyomedea/dyomedea$ echo $ANDROID_SDK_ROOT
``` ```
### To (re)generate android/
```bash
$ rm capacitor.config.ts
$ rm -rf android
$ npx cap init dyomedea com.dyomedea.dyomedea # assets in dist/
$ npx cap add android
$ cp AndroidManifest.xml ./android/app/src/main/AndroidManifest.xml
$ npx cap run --target RFCN20NEZ4R android
```

View File

@ -1,10 +1,10 @@
import { CapacitorConfig } from '@capacitor/cli'; import { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = { const config: CapacitorConfig = {
appId: 'com.dyomedea.solid', appId: 'com.dyomedea.dyomedea',
appName: 'solid-ol', appName: 'dyomedea',
webDir: 'dist', webDir: 'dist',
bundledWebRuntime: false, bundledWebRuntime: false
}; };
export default config; export default config;