Skip to content

Commit

Permalink
Refactor SDK version in code to a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbalakirev committed Oct 27, 2024
1 parent 7892b8a commit 2245aa0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/corbado/sdk/CorbadoSdk.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
@Slf4j
public class CorbadoSdk {

private static final String CURRENT_SDK_VERSION = "2.0.0";

/** The Constant CORBADO_HEADER_NAME. */
private static final String CORBADO_HEADER_NAME = "X-Corbado-SDK";

Expand Down Expand Up @@ -101,7 +103,7 @@ private static String getLanguageVersion() {
*
* @return the version
*/
public String getVersion() {
return "2.0.0";
public static String getVersion() {
return CURRENT_SDK_VERSION;
}
}

0 comments on commit 2245aa0

Please sign in to comment.