Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update set_version.sh to work with beta versions #423

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ShiCheng-Lu
Copy link
Contributor

@ShiCheng-Lu ShiCheng-Lu commented Dec 11, 2024

tested by running it with beta / none-beta version strings with various versions

@gregsadetsky
Copy link

gregsadetsky commented Dec 11, 2024

this is my first time seeing this file - don't mean to reshuffle everything, but the sed seems somewhat risky, since it regexps any return \d.\d.\d.+ string in RadarUtils..? i.e. if any other string like that appeared in that file, it would also be replaced with the sdk version?

could the actual version string be moved to a #define first (so that the version string appears on a single line with a clear name like SDK_VERSION), and then the sed line can be modified to only affect that SDK_VERSION? finally, sdkVersion would simply return that constant?

again, this feels safer than regexp'ing return ...

@ShiCheng-Lu
Copy link
Contributor Author

this is my first time seeing this file - don't mean to reshuffle everything, but the sed seems somewhat risky, since it regexps any return \d.\d.\d.+ string in RadarUtils..? i.e. if any other string like that appeared in that file, it would also be replaced with the sdk version?

could the actual version string be moved to a #define first (so that the version string appears on a single line with a clear name like SDK_VERSION), and then the sed line can be modified to only affect that SDK_VERSION? finally, sdkVersion would simply return that constant?

again, this feels safer than regexp'ing return ...

this is my first time seeing this file - don't mean to reshuffle everything, but the sed seems somewhat risky, since it regexps any return \d.\d.\d.+ string in RadarUtils..? i.e. if any other string like that appeared in that file, it would also be replaced with the sdk version?

could the actual version string be moved to a #define first (so that the version string appears on a single line with a clear name like SDK_VERSION), and then the sed line can be modified to only affect that SDK_VERSION? finally, sdkVersion would simply return that constant?

again, this feels safer than regexp'ing return ...

Thats a great idea, It'll be safer

@gregsadetsky
Copy link

gregsadetsky commented Dec 11, 2024

Great work!

I don't want to be annoying but if you could also add a comment above the DEFINE line just to note that it's important that this line stays as it is (in case someone is tempted to refactor it), that'd be great

Thanks again!

EDIT: done

@gregsadetsky
Copy link

hitting an error on the CI, possibly related to xcpretty/xcpretty#391 ..?

downgrade xcpretty?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants