Fix `scripts/update-status-go.sh` so it updates right file and removes any `v` prefix
This commit is contained in:
parent
57ef0b2ba3
commit
85e0834d3a
|
@ -27,8 +27,10 @@ dependencies {
|
||||||
|
|
||||||
// Check if the local status-go jar exists, and compile against that if it does
|
// Check if the local status-go jar exists, and compile against that if it does
|
||||||
final String localStatusLibOutputDir = "${rootDir}/../modules/react-native-status/android/libs", localVersion = 'local'
|
final String localStatusLibOutputDir = "${rootDir}/../modules/react-native-status/android/libs", localVersion = 'local'
|
||||||
if ( new File("${localStatusLibOutputDir}/${statusGoGroup}/${statusGoName}/${localVersion}/${statusGoName}-${localVersion}.aar").exists() ) {
|
final File localFile = new File("${localStatusLibOutputDir}/${statusGoGroup}/${statusGoName}/${localVersion}/${statusGoName}-${localVersion}.aar")
|
||||||
|
if ( localFile.exists() ) {
|
||||||
// Use the local version
|
// Use the local version
|
||||||
|
logger.warn("Using local build of Android status-go library ${localFile.absolutePath}.")
|
||||||
statusGoVersion = localVersion
|
statusGoVersion = localVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,6 @@ if [ $# -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
STATUSGO_VERSION=$1
|
STATUSGO_VERSION=$1
|
||||||
|
STATUSGO_VERSION=${STATUSGO_VERSION#"v"}
|
||||||
|
|
||||||
sedi "s/\([[:blank:]]\{28,\}<version>\).*\(<\/version>\)/\1$STATUSGO_VERSION\2/" modules/react-native-status/ios/RCTStatus/pom.xml
|
echo $STATUSGO_VERSION > STATUS_GO_VERSION
|
||||||
sedi "s/\(statusGoVersion = '\).*\('\)/\1$STATUSGO_VERSION\2/" modules/react-native-status/android/build.gradle
|
|
||||||
|
|
Loading…
Reference in New Issue