diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b522f43dd72..7fca32e31c34 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -109,6 +109,7 @@ jobs: -p:AndroidSigningKeyAlias="$ANDROID_KEY_ALIAS" -p:AndroidSigningKeyPass="$ANDROID_KEY_PASS" -p:AndroidSigningStorePass="$ANDROID_STORE_PASS" + -p:CustomBeforeMicrosoftCommonTargets="${{ github.workspace }}/build/SuppressSubmoduleWarnings.targets" - name: Build Android APK (unsigned Release) if: steps.keystore.outputs.has_keystore != 'true' @@ -119,6 +120,7 @@ jobs: -p:Version="${{ steps.version.outputs.version }}" -p:ApplicationDisplayVersion="${{ steps.version.outputs.version }}" -p:ApplicationVersion="${{ github.run_number }}" + -p:CustomBeforeMicrosoftCommonTargets="${{ github.workspace }}/build/SuppressSubmoduleWarnings.targets" - name: Find APK id: find_apk diff --git a/build/SuppressSubmoduleWarnings.targets b/build/SuppressSubmoduleWarnings.targets new file mode 100644 index 000000000000..9001a40eaf98 --- /dev/null +++ b/build/SuppressSubmoduleWarnings.targets @@ -0,0 +1,8 @@ + + + + $(NoWarn);CS1591 + + diff --git a/osu.Android.props b/osu.Android.props index cd278aa880f0..ef39fb076579 100644 --- a/osu.Android.props +++ b/osu.Android.props @@ -23,7 +23,7 @@ AndroidPageSize16KBCompatibilityCheck=false should suppress the check, but Android SDK 36.1.53 still emits XA0141 in some build orderings, so we also add it to NoWarn. --> false - $(NoWarn);XA0141 + $(NoWarn);XA0141;NU1608;XA4301 - true + + false true