Skip to content

Commit 11641a6

Browse files
hborisoffmilos1290
andauthored
Remove build number suffix from SDK version parameter (#399)
* Remove build number suffix from SDK version parameter * Fix build number test Co-authored-by: Milos Jakovljevic <[email protected]>
1 parent f16c220 commit 11641a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

AndroidSDKCore/src/main/java/com/leanplum/internal/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class Constants {
3636
public static int SOCKET_PORT = 443;
3737
public static int NETWORK_TIMEOUT_SECONDS = 10;
3838
public static int NETWORK_TIMEOUT_SECONDS_FOR_DOWNLOADS = 10;
39-
public static String LEANPLUM_VERSION = BuildConfig.SDK_VERSION + '.' + BuildConfig.BUILD_NUMBER;
39+
public static String LEANPLUM_VERSION = BuildConfig.SDK_VERSION;
4040
public static String CLIENT = "android";
4141
public static String LEANPLUM_SUPPORTED_ENCODING = "gzip";
4242

AndroidSDKTests/src/test/java/com/leanplum/internal/BuildConfigTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ public void testVersion() {
3939

4040
String[] parts = version.split("\\.");
4141

42-
assertEquals(4, parts.length);
42+
assertEquals(3, parts.length);
4343
// Ensure we can parse and do not go down in major version.
4444
int major = Integer.parseInt(parts[0]);
4545
assert(major >= 4);
4646

47-
// Ensure minor and patch versions are parseable.
47+
// Ensure minor and patch versions are parsable.
4848
int minor = Integer.parseInt(parts[1]);
4949
assert(minor >= 0);
5050

0 commit comments

Comments
 (0)