Skip to content

Commit

Permalink
fetch android SDK version from jitpack/github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
rolodato committed Nov 1, 2024
1 parent f4545b7 commit 6daf39d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/docs/clients/client-side/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repositories {

In your project path `app/build.gradle` add a new dependency:

<CodeBlock>{`implementation("com.flagsmith:flagsmith-kotlin-android-client:v`}<AndroidVersion />"{`)`}</CodeBlock>
<CodeBlock>{`implementation("com.flagsmith:flagsmith-kotlin-android-client:`}<AndroidVersion />"{`)`}</CodeBlock>

## Basic Usage

Expand Down
9 changes: 4 additions & 5 deletions docs/plugins/flagsmith-versions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6daf39d

Please sign in to comment.