From 52156aa9ffa7b308cb64540c742d7422da268334 Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Fri, 15 Aug 2025 16:23:17 +0800 Subject: [PATCH] [no ci] Let renovate update NDK --- renovate.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/renovate.json b/renovate.json index 57bb6fa36..3682b32c8 100644 --- a/renovate.json +++ b/renovate.json @@ -40,6 +40,17 @@ "versioningTemplate": "regex:^(?\\d{4})-(?\\d{2})-(?\\d{2})$", "datasourceTemplate": "custom.rust-nightly", "depNameTemplate": "rust-nightly" + }, + { + "customType": "regex", + "managerFilePatterns": [ + "settings.gradle.kts" + ], + "matchStrings": [ + "ndkVersion = \"(?[^\"]+)\"" + ], + "depNameTemplate": "NDK", + "datasourceTemplate": "custom.ndk" } ], "customDatasources": { @@ -50,6 +61,12 @@ "rust-nightly": { "defaultRegistryUrlTemplate": "https://rust-lang.github.io/rustup-components-history/aarch64-linux-android/rust-std", "format": "plain" + }, + "ndk": { + "defaultRegistryUrlTemplate": "https://api.github.com/repos/android/ndk/releases/latest", + "transformTemplates": [ + "{\"releases\":[{\"version\":$match(body,/ndkVersion \"([^\"]+)\"/).groups[0]}],\"changelogUrl\":html_url}" + ] } }, "packageRules": [