We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab14ff5 commit 88ddac4Copy full SHA for 88ddac4
src/main/groovy/io/invertase/gradle/build/ReactNativeShared.groovy
@@ -43,7 +43,9 @@ class ReactNativeShared implements WithExtensions {
43
44
int major = Integer.parseInt(tokens[0])
45
int minor = Integer.parseInt(tokens[1])
46
- int patch = Integer.parseInt(tokens[2])
+
47
+ // additionally strips pre-releases off patch
48
+ int patch = Integer.parseInt(tokens[2].tokenize('-')[0])
49
50
int code = major * 1000000 + minor * 1000 + patch
51
0 commit comments