#3427 - Treat manifest warnings as warnings (#3429)

* feat: treat warnings as warnings during aapt2 build

* test: add invalid fragment to manifest to confirm warning
This commit is contained in:
Connor Tumbleson 2023-11-16 06:45:38 -05:00 committed by GitHub
parent bf1041e4fb
commit 72d0bc164d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -178,6 +178,9 @@ public class AaptInvoker {
cmd.add("--no-compile-sdk-metadata");
// #3427 - Ignore stricter parsing during aapt2
cmd.add("--warn-manifest-validation");
if (mApkInfo.sparseResources) {
cmd.add("--enable-sparse-encoding");
}

View File

@ -6,6 +6,7 @@
android:name="android.accessibilityservice"
android:resource="@xml/accessibility_service_config" />
</service>
<fragment android:name=".views.Issue3427"/>
<meta-data name="test_int_as_string" value="\ 12345" />
<meta-data name="test_int" value="12345" />
</application>