mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fix(gradle-plugin): fix nightly build regression (#37332)
Summary: Nightly builds of Android no longer build due to a recent version format change. ## Changelog: [ANDROID] [FIXED] - Fixed nightly builds of Android no longer building due to a recent version format change Pull Request resolved: https://github.com/facebook/react-native/pull/37332 Test Plan: ``` git clone https://github.com/microsoft/react-native-test-app.git cd react-native-test-app npm run set-react-version nightly cd example yarn android ``` Reviewed By: jacdebug Differential Revision: D45690926 Pulled By: cortinico fbshipit-source-id: dc935733607c2b33ba296b507a98f43ba483e348
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ec66f2eeb9
commit
cceef57be1
+1
-1
@@ -84,7 +84,7 @@ internal object DependencyUtils {
|
||||
val versionStringFromFile = reactAndroidProperties["VERSION_NAME"] as? String ?: ""
|
||||
// If on a nightly, we need to fetch the -SNAPSHOT artifact from Sonatype.
|
||||
val versionString =
|
||||
if (versionStringFromFile.startsWith("0.0.0")) {
|
||||
if (versionStringFromFile.startsWith("0.0.0") || "-nightly-" in versionStringFromFile) {
|
||||
"$versionStringFromFile-SNAPSHOT"
|
||||
} else {
|
||||
versionStringFromFile
|
||||
|
||||
Reference in New Issue
Block a user