feat(mobile): Android prep — icons/splash assets, permissions, FCM setup
- resources/: 1024 icon.png + 2732 splash.png/splash-dark.png generated from the PWA icon + brand blue; wired @capacitor/assets (npm run assets) + splash-screen plugin. - ANDROID_SETUP.md: end-to-end guide (SDK setup, cap add android, manifest permissions, Firebase/google-services.json + Gradle, run, Play AAB build) for package com.bizgaze.connect. - android-permissions.xml: paste-ready POST_NOTIFICATIONS + camera/mic/WebRTC perms. - mobile/README links the guide; setup adds `npm run assets`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# App icon & splash source images
|
||||
|
||||
`@capacitor/assets` generates every Android (and iOS) icon/splash density from these masters.
|
||||
|
||||
| File | Size | Purpose |
|
||||
|------|------|---------|
|
||||
| `icon.png` | 1024×1024 | App icon (all densities + Android adaptive icon) |
|
||||
| `splash.png` | 2732×2732 | Launch splash (light) |
|
||||
| `splash-dark.png` | 2732×2732 | Launch splash (dark mode) |
|
||||
|
||||
These were generated from the existing PWA icon (`server/public/icon-512.png`) + brand blue
|
||||
`#1F3B73`. To rebrand, replace these three files (keep the sizes) and re-run:
|
||||
|
||||
```bash
|
||||
cd mobile
|
||||
npm run assets # Android only (npm run assets:all for iOS too)
|
||||
npx cap sync
|
||||
```
|
||||
|
||||
Tip: for the sharpest result, drop a true 1024×1024 `icon.png` (and a 2732×2732 `splash.png`)
|
||||
exported from the design source rather than an upscale.
|
||||
@@ -0,0 +1,19 @@
|
||||
<!-- Paste these into mobile/android/app/src/main/AndroidManifest.xml, inside <manifest> and
|
||||
directly above the <application> element. INTERNET is already added by Capacitor.
|
||||
See ANDROID_SETUP.md §3. -->
|
||||
|
||||
<!-- Push notifications: Android 13 (API 33)+ shows a runtime prompt -->
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
|
||||
<!-- Voice / video calls + camera, used by the WebRTC features in the web UI -->
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
||||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
|
||||
|
||||
<!-- Camera is optional hardware (tablets without one can still install) -->
|
||||
<uses-feature android:name="android.hardware.camera" android:required="false" />
|
||||
|
||||
<!-- Later, for screen-sharing FROM the phone (needs a screen-capture plugin):
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
|
||||
-->
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 157 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 211 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 211 KiB |
Reference in New Issue
Block a user