Skip to content

Commit 88ddac4

Browse files
committed
Strip pre-release ids off of patch segment
1 parent ab14ff5 commit 88ddac4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/groovy/io/invertase/gradle/build/ReactNativeShared.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ class ReactNativeShared implements WithExtensions {
4343

4444
int major = Integer.parseInt(tokens[0])
4545
int minor = Integer.parseInt(tokens[1])
46-
int patch = Integer.parseInt(tokens[2])
46+
47+
// additionally strips pre-releases off patch
48+
int patch = Integer.parseInt(tokens[2].tokenize('-')[0])
4749

4850
int code = major * 1000000 + minor * 1000 + patch
4951

0 commit comments

Comments
 (0)