From 5cc923ae5879b89c45d00538f5c142a0206434d8 Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Mon, 9 Dec 2024 12:23:47 +0000 Subject: [PATCH 1/3] Remove jitpack from android client documentation --- docs/docs/clients/client-side/android.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/docs/clients/client-side/android.md b/docs/docs/clients/client-side/android.md index c74cae6a56c1..d5f8caf85579 100644 --- a/docs/docs/clients/client-side/android.md +++ b/docs/docs/clients/client-side/android.md @@ -14,19 +14,22 @@ This SDK can be used for Android applications written in Kotlin. The source code ### Gradle -Make sure your `settings.gradle` includes JitPack as a repository: - ```groovy repositories { google() mavenCentral() - maven("https://jitpack.io") } ``` In your project path `app/build.gradle` add a new dependency: -{`implementation("com.flagsmith:flagsmith-kotlin-android-client:`}"{`)`} +{`implementation("io.flagsmith:flagsmith-kotlin-android-client:`}"{`)`} + +:::info + +Note: jitpack support has been deprecated as of `v1.7.1`. + +::: ## Basic Usage From c31e34634ab62cc520e5ac075cd6f128b2bb40b6 Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Mon, 9 Dec 2024 15:51:46 +0000 Subject: [PATCH 2/3] io.flagsmith -> com.flagsmith --- docs/docs/clients/client-side/android.md | 2 +- docs/plugins/flagsmith-versions/index.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/docs/clients/client-side/android.md b/docs/docs/clients/client-side/android.md index d5f8caf85579..3d64e00ccd45 100644 --- a/docs/docs/clients/client-side/android.md +++ b/docs/docs/clients/client-side/android.md @@ -23,7 +23,7 @@ repositories { In your project path `app/build.gradle` add a new dependency: -{`implementation("io.flagsmith:flagsmith-kotlin-android-client:`}"{`)`} +{`implementation("com.flagsmith:flagsmith-kotlin-android-client:`}"{`)`} :::info diff --git a/docs/plugins/flagsmith-versions/index.js b/docs/plugins/flagsmith-versions/index.js index 2c43dcb16d07..96f036a1b0f8 100644 --- a/docs/plugins/flagsmith-versions/index.js +++ b/docs/plugins/flagsmith-versions/index.js @@ -31,7 +31,11 @@ const fetchGitHubReleases = async (repo) => { return data.map((release) => (release.tag_name.startsWith('v') ? release.tag_name.slice(1) : release.tag_name)); }; -const fetchAndroidVersions = async () => fetchGitHubReleases('flagsmith/flagsmith-kotlin-android-client'); +const fetchAndroidVersions = async () => + fetchMavenVersions({ + groupId: 'com.flagsmith', + artifactId: 'flagsmith-kotlin-android-client', + }); const fetchSwiftPMVersions = async () => fetchGitHubReleases('Flagsmith/flagsmith-ios-client'); From 0d985cf8a82fa27a9c8b4952a10eeef2e68c3680 Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Mon, 9 Dec 2024 16:40:45 +0000 Subject: [PATCH 3/3] Remove note about jitpack --- docs/docs/clients/client-side/android.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/docs/clients/client-side/android.md b/docs/docs/clients/client-side/android.md index 3d64e00ccd45..3fa87a91f2a0 100644 --- a/docs/docs/clients/client-side/android.md +++ b/docs/docs/clients/client-side/android.md @@ -25,12 +25,6 @@ In your project path `app/build.gradle` add a new dependency: {`implementation("com.flagsmith:flagsmith-kotlin-android-client:`}"{`)`} -:::info - -Note: jitpack support has been deprecated as of `v1.7.1`. - -::: - ## Basic Usage The SDK is initialised against a single environment within a project on [https://flagsmith.com](https://flagsmith.com),