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

add set version script #407

Merged
merged 7 commits into from
Nov 21, 2024
Merged

add set version script #407

merged 7 commits into from
Nov 21, 2024

Conversation

ShiCheng-Lu
Copy link
Contributor

@ShiCheng-Lu ShiCheng-Lu commented Oct 25, 2024

There are two components of this PR, improved CI checks, and version updating script.

  1. Improved CI checks.
  • adding a check to make sure both versions do not exist in pod yet
  • lint both SDKs before uploading either
    This should make sure that if CI passes, both are successfully uploaded, and if CI fails, neither are uploaded.
  1. version updating script.
  • this script does everthing in the iOS version bump/release document in notion, I believe running the script will overall result in less version bumping mistakes than doing it by hand every time. Of course it's still recommended to follow through the document and check the changes in git.

(There was no documentation on bumping MotionSDK in notion, which should have been there, I've updated the notion document)

pod lib lint --allow-warnings RadarSDKMotion.podspec
pod trunk push --allow-warnings RadarSDK.podspec
pod trunk push --allow-warnings RadarSDKMotion.podspec
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we definitely want to lint both before publishing any of the two.

@@ -949,7 +949,6 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 3.9.6;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the package settings, which overwrites the project settings, we should just have the version set for project settings which will be resolved everywhere to the single correct marketing version

@@ -979,7 +978,6 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 3.9.6;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

same as above

@@ -347,6 +348,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = 3.18.4;
Copy link
Contributor Author

@ShiCheng-Lu ShiCheng-Lu Nov 6, 2024

Choose a reason for hiding this comment

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

adding the marketing version to motion sdks to be the same as main sdk. (project setting)

@ShiCheng-Lu ShiCheng-Lu marked this pull request as ready for review November 6, 2024 15:18
Copy link
Contributor

@lmeier lmeier left a comment

Choose a reason for hiding this comment

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

I'm gonna test this with a bump today to verify it's good before 👍, but this looks good. Thank you — nice proactive change.

set_version.sh Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

I think there's also a CFBundleShortVersionString in the Info.plist that has lagged for a while and we don't generally update. We should get that too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CFBundleShortVersionString is set to parameter substitution of #(MARKETING_VERSION) so we are good there.

Copy link
Contributor

@KennyHuRadar KennyHuRadar left a comment

Choose a reason for hiding this comment

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

script works well from my testing and the changes to release script makes sense imo

@ShiCheng-Lu ShiCheng-Lu merged commit ba6b0ff into master Nov 21, 2024
2 checks passed
@ShiCheng-Lu ShiCheng-Lu deleted the set-version-sh branch November 21, 2024 15:10
nickpatrick pushed a commit that referenced this pull request Nov 26, 2024
* add set version script

* improve CI steps to detect errors earlier

---------

Co-authored-by: KennyHuRadar <139801512+KennyHuRadar@users.noreply.github.com>
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.

3 participants