Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ android {
applicationIdSuffix ".test"
versionNameSuffix "-test"
}
// R8 shrinks and optimizes the native part (Google Play asks for it). Capacitor's own rules
// keep every plugin class, which the bridge finds by reflection. The mapping file goes into
// the app bundle, so Play shows crash reports with the real class and method names.
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
// On Codemagic the upload key comes in through these variables (codemagic.yaml); without them,
Expand Down
4 changes: 2 additions & 2 deletions app/android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-renamesourcefileattribute SourceFile
3 changes: 3 additions & 0 deletions app/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
<!-- localeConfig: the app's language can be chosen in Android's settings (13 and later), like
any app's. No "locale" in configChanges below: choosing one restarts the app, and the
page comes back in the new language. -->
<!-- screenOrientation portrait: on a phone held sideways the scene and both bar rows don't fit.
Android 16 ignores it on tablets and foldables, where the page stands as a column in the
middle and works either way. Google Play warns about it; the warning is kept on purpose. -->

<activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|screenLayout|uiMode|navigation|density"
Expand Down
Loading