Skip to content

Commit

Permalink
fix: incorrect Java SDK installation and initialization code examples (
Browse files Browse the repository at this point in the history
  • Loading branch information
SaptarshiSarkar12 authored Sep 13, 2024
1 parent 52b9780 commit d12cf8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions frontend/common/code-help/init/init-java.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ module.exports = (
) => `${LIB_NAME_JAVA} ${LIB_NAME} = ${LIB_NAME_JAVA}
.newBuilder()
.setApiKey("${envId}")${
Constants.isCustomFlagsmithUrl &&
`\n .withConfiguration(FlagsmithConfig.builder()
Constants.isCustomFlagsmithUrl
? `\n .withConfiguration(FlagsmithConfig.newBuilder()
.baseUri("${Project.flagsmithClientAPI}")
.build())`
: ''
}
.build();
Expand Down
10 changes: 5 additions & 5 deletions frontend/common/code-help/install/install-java.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import Utils from 'common/utils/utils'

module.exports = () => `// Maven
${Utils.escapeHtml('<dependency>')}
${Utils.escapeHtml('<groupId>com.flagsmith</groupId>')}
${Utils.escapeHtml('<artifactId>flagsmith-java-client</artifactId>')}
${Utils.escapeHtml('<version>5.0.0/version>')}
</dependency>
${Utils.escapeHtml('<groupId>com.flagsmith</groupId>')}
${Utils.escapeHtml('<artifactId>flagsmith-java-client</artifactId>')}
${Utils.escapeHtml('<version>7.4.1</version>')}
${Utils.escapeHtml('</dependency>')}
// Gradle
implementation 'com.flagsmith:flagsmith-java-client:5.0.0'
implementation 'com.flagsmith:flagsmith-java-client:7.4.1'
`

0 comments on commit d12cf8b

Please sign in to comment.