Skip to content

Commit 636a829

Browse files
committed
Fix Sonar security warnings in Post Types manifest
Set explicit secure defaults for `allowBackup` and `usesCleartextTraffic` to satisfy static analysis. Main app values override during manifest merge.
1 parent 6b91933 commit 636a829

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

libs/posttypes/src/main/AndroidManifest.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
Activities in this module are declared here and merged into the main app's manifest.
44
Using Material3 NoActionBar theme to avoid inheriting the app's action bar.
55
-->
6-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
7-
<application>
6+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
7+
xmlns:tools="http://schemas.android.com/tools">
8+
<application
9+
android:allowBackup="false"
10+
android:usesCleartextTraffic="false"
11+
tools:ignore="UnusedAttribute">
812
<activity
913
android:name="org.wordpress.android.posttypes.CptPostTypesActivity"
1014
android:theme="@style/Cpt.NoActionBar"

0 commit comments

Comments
 (0)