You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
thrownewError(`Unable to find either of the following plist files in order to infer your app's binary version: "${knownLocations.join("\", \"")}".`);
898
+
thrownewError(`Unable to find either of the following plist files in order to infer your app's binary version: "${knownLocations.join("\", \"")}". If your plist has a different name, or is located in a different directory, consider using either the "--plistFile" or "--plistFilePrefix" parameters to help inform the CLI how to find it.`);
890
899
}
891
900
}
892
901
@@ -900,43 +909,45 @@ function getReactNativeProjectAppVersion(command: cli.IReleaseReactCommand, proj
log(`Using the target binary version value "${parsedPlist.CFBundleShortVersionString}" from "${resolvedPlistFile}".\n`);
903
913
returnQ(parsedPlist.CFBundleShortVersionString);
904
914
}else{
905
-
thrownewError(`The "CFBundleShortVersionString" key in the "${resolvedPlistFile}" needs to have at least a major and minor version, for example "2.0" or "1.0.3".`);
915
+
thrownewError(`The "CFBundleShortVersionString" key in the "${resolvedPlistFile}" file needs to specify a valid semver string, containing both a major and minor version (e.g. 1.3.2, 1.1).`);
906
916
}
907
917
}else{
908
918
thrownewError(`The "CFBundleShortVersionString" key doesn't exist within the "${resolvedPlistFile}" file.`);
thrownewError(`The "android.defaultConfig.versionName" property value in "android/app/build.gradle" is not a valid string. If this is expected, consider using the --targetBinaryVersion option to specify the value manually.`);
936
+
thrownewError(`The "android.defaultConfig.versionName" property value in "${buildGradlePath}" is not a valid string. If this is expected, consider using the --targetBinaryVersion option to specify the value manually.`);
// The versionName property is a valid semver string,
933
943
// so we can safely use that and move on.
944
+
log(`Using the target binary version value "${appVersion}" from "${buildGradlePath}".\n`);
934
945
returnappVersion;
935
946
}elseif(/^\d.*/.test(appVersion)){
936
947
// The versionName property isn't a valid semver string,
937
948
// but it starts with a number, and therefore, it can't
938
949
// be a valid Gradle property reference.
939
-
thrownewError(`The "android.defaultConfig.versionName" property in "android/app/build.gradle" needs to specify a valid semver string, containing both a major and minor version (e.g. 1.3.2, 1.1).`);
950
+
thrownewError(`The "android.defaultConfig.versionName" property in the "${buildGradlePath}" file needs to specify a valid semver string, containing both a major and minor version (e.g. 1.3.2, 1.1).`);
940
951
}
941
952
942
953
// The version property isn't a valid semver string
@@ -964,9 +975,10 @@ function getReactNativeProjectAppVersion(command: cli.IReleaseReactCommand, proj
964
975
}
965
976
966
977
if(!isValidVersion(appVersion)){
967
-
thrownewError(`The "${propertyName}" property in "${propertiesFile}" needs to specify a valid semver string, containing both a major and minor version (e.g. 1.3.2, 1.1).`);
978
+
thrownewError(`The "${propertyName}" property in the "${propertiesFile}" file needs to specify a valid semver string, containing both a major and minor version (e.g. 1.3.2, 1.1).`);
968
979
}
969
980
981
+
log(`Using the target binary version value "${appVersion}" from the "${propertyName}" key in the "${propertiesFile}" file.\n`);
0 commit comments