Skip to content

Commit

Permalink
#3427 - Treat manifest warnings as warnings (#3429)
Browse files Browse the repository at this point in the history
* feat: treat warnings as warnings during aapt2 build

* test: add invalid fragment to manifest to confirm warning
  • Loading branch information
iBotPeaches authored Nov 16, 2023
1 parent bf1041e commit 72d0bc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ private void invokeAapt2(File apkFile, File manifest, File resDir, File rawDir,

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");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 72d0bc1

Please sign in to comment.