feat: blocca orientamento in portrait su APK e browser
- Dockerfile: aggiunge android:screenOrientation="portrait" all'activity in AndroidManifest.xml per bloccare il portrait nativamente sull'APK - App.vue: fixOrientation() rileva il landscape tramite dimensioni viewport e applica un counter-rotate CSS in modo che l'app rimanga visivamente in portrait anche da browser mobile (dev server) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -56,6 +56,10 @@ RUN npx cap add android
|
||||
RUN sed -i 's|</manifest>| <uses-permission android:name="android.permission.CAMERA" />\n</manifest>|' \
|
||||
android/app/src/main/AndroidManifest.xml
|
||||
|
||||
# ── Orientamento bloccato in portrait ────────────────────────────────────────
|
||||
RUN sed -i 's/android:exported="true"/android:exported="true"\n android:screenOrientation="portrait"/' \
|
||||
android/app/src/main/AndroidManifest.xml
|
||||
|
||||
# ── Versione da package.json → android/app/build.gradle ──────────────────────
|
||||
RUN node -e "\
|
||||
const v = require('./package.json').version; \
|
||||
|
||||
Reference in New Issue
Block a user