Skip to content

Conversation

@dellis1972
Copy link
Contributor

Google has removed the RELEASE.txt from the latest ndk version in
favour of a source.properties file.

This commit adds support for reading the version from this new
file.

if (!File.Exists (sourcePropertiesPath)) {
return false;
}
var match = Regex.Match (File.ReadAllText (sourcePropertiesPath).Trim (), "(\\d+).(\\d+).(\\d+)");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this regex, as it could match nearly anything, and I'm not sure I want to rely on source.properties only ever containing two lines, one of which only containing one dotted number.

I would instead prefer matching on:

^Pkg.Revision\s*=\s*([.0-9]+)$

This way we ensure we only grab the value of the Pkg.Revision "key".

… from source.properties

Google has removed the RELEASE.txt from the latest ndk version in
favour of a source.properties file.

This commit adds support for reading the version from this new
file.
@jonpryor jonpryor merged commit f3943b1 into dotnet:master Aug 4, 2016
radekdoulik pushed a commit to radekdoulik/xamarin-android that referenced this pull request Aug 12, 2016
…dotnet#138)

Google has removed the RELEASE.txt from the latest ndk version in
favour of a source.properties file.

This commit adds support for reading the version from this new
file.
radical pushed a commit that referenced this pull request May 8, 2018
Fixes reading/writing the size of table indexes in external pdb files.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants