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("\", \"")}".`);
897
+
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
898
}
891
899
}
892
900
@@ -900,43 +908,45 @@ function getReactNativeProjectAppVersion(command: cli.IReleaseReactCommand, proj
log(`Using the target binary version value "${parsedPlist.CFBundleShortVersionString}" from "${resolvedPlistFile}".\n`);
903
912
returnQ(parsedPlist.CFBundleShortVersionString);
904
913
}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".`);
914
+
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
915
}
907
916
}else{
908
917
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.`);
935
+
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
942
// so we can safely use that and move on.
943
+
log(`Using the target binary version value "${appVersion}" from "${buildGradlePath}".\n`);
934
944
returnappVersion;
935
945
}elseif(/^\d.*/.test(appVersion)){
936
946
// The versionName property isn't a valid semver string,
937
947
// but it starts with a number, and therefore, it can't
938
948
// 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).`);
949
+
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
950
}
941
951
942
952
// The version property isn't a valid semver string
@@ -964,9 +974,10 @@ function getReactNativeProjectAppVersion(command: cli.IReleaseReactCommand, proj
964
974
}
965
975
966
976
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).`);
977
+
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
978
}
969
979
980
+
log(`Using the target binary version value "${appVersion}" from the "${propertyName}" key in the "${propertiesFile}" file.\n`);
0 commit comments