From d112ade601d98b1ec1c4c8b9e105f6e2e8fa56d2 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Thu, 3 Sep 2026 13:12:48 +0200 Subject: [PATCH] style(android): space out the annotated and commented libmpv lock declarations ktlint's spacing-between-declarations-with-annotations and -with-comments rules failed on android/libmpv/build.gradle.kts, so scripts/format_native.sh --check - and with it scripts/ci_checks.sh - reported a failure on an untouched file. Add the blank line before the @Suppress'd mpvAssets declaration and before the comment above stagedArchiveName. --- android/libmpv/build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/libmpv/build.gradle.kts b/android/libmpv/build.gradle.kts index 39b7c6561..4b426f5b5 100644 --- a/android/libmpv/build.gradle.kts +++ b/android/libmpv/build.gradle.kts @@ -75,6 +75,7 @@ val mpvKey = mpvLockAndroid["key"] as? String ?: throw GradleException("$mpvLockFile artifacts.android.key is missing") val mpvAssetBase = mpvLockAndroid["assetBase"] as? String ?: throw GradleException("$mpvLockFile artifacts.android.assetBase is missing") + @Suppress("UNCHECKED_CAST") val mpvAssets = (mpvLockAndroid["assets"] as? Map>).let { assets -> val missing = mpvAbis.filter { assets?.get(it)?.get("asset").isNullOrEmpty() || assets?.get(it)?.get("checksum").isNullOrEmpty() } @@ -88,6 +89,7 @@ val mpvDir = layout.buildDirectory.dir("libmpv").get().asFile val mpvArchivesDir = File(mpvDir, "archives") val mpvNativeDir = File(mpvDir, "native") val mpvLibcxxDir = File(mpvDir, "libcxx") + // Downloaded archives are renamed to a key-independent name so a lock bump // (new key) changes task inputs, not the output file set. fun stagedArchiveName(abi: String) = "libmpv-android-$abi.tar.gz"