From 6daf39d3cc322f7b42af0f6451bbc1f374fe57d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20L=C3=B3pez=20Dato?= Date: Thu, 31 Oct 2024 21:21:50 -0300 Subject: [PATCH] fetch android SDK version from jitpack/github releases --- docs/docs/clients/client-side/android.md | 2 +- docs/plugins/flagsmith-versions/index.js | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/docs/clients/client-side/android.md b/docs/docs/clients/client-side/android.md index 409d79cf92b7..c74cae6a56c1 100644 --- a/docs/docs/clients/client-side/android.md +++ b/docs/docs/clients/client-side/android.md @@ -26,7 +26,7 @@ repositories { In your project path `app/build.gradle` add a new dependency: -{`implementation("com.flagsmith:flagsmith-kotlin-android-client:v`}"{`)`} +{`implementation("com.flagsmith:flagsmith-kotlin-android-client:`}"{`)`} ## Basic Usage diff --git a/docs/plugins/flagsmith-versions/index.js b/docs/plugins/flagsmith-versions/index.js index f5024bdb86a1..55cc6dbbefce 100644 --- a/docs/plugins/flagsmith-versions/index.js +++ b/docs/plugins/flagsmith-versions/index.js @@ -26,11 +26,10 @@ const fetchJavaVersions = async () => artifactId: 'flagsmith-java-client', }); -const fetchAndroidVersions = async () => - fetchMavenVersions({ - groupId: 'com.flagsmith', - artifactId: 'flagsmith-kotlin-android-client', - }); +const fetchAndroidVersions = async () => { + const data = await fetchJSON('https://api.github.com/repos/flagsmith/flagsmith-kotlin-android-client/releases'); + return data.map((release) => release.tag_name); +}; const fetchIOSVersions = async () => { // retrieved from https://cocoapods.org/pods/FlagsmithClient