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

Bsdk 35 create fastlane lane to generate release podspecs with the release version #450

Conversation

ValentinaIancu-Gini
Copy link
Contributor

@ValentinaIancu-Gini ValentinaIancu-Gini commented Jan 24, 2024

  • add a Readme file with manual steps for how to release a new version of podspecs in gini-podspecs
  • add an example of podspecs file
  • create a Fastlane lane to generate release podspecs with the release version

Steps to test this locally:

  • add the folder with the needed frameworks for GiniBankSDK(GiniBankSDK, GiniBankApiLibrary, and GiniCaptureSDK) in the recently added folder Pod which can be found in the GiniBankSDK folder from BankSDK from the main folder of the project
  • locate the local path for this folder from your computer
  • locate the local path for the gini-podspecs repo from your computer
  • pod_name: name of the podspecs file
  • template_podspec_path : path to the template podspec file from the local clone of the mono repo project, which is modified and used for the new pod version e.g: BankSDK/GiniBankSDK/Pod/GiniBankSDK.podspec
  • go to the terminal and navigate to the main folder of the gini-mobile-ios repo
  • run this command
fastlane publish_podspec xcframeworks_folder_path:</path/to/xcframeworks> pod_name:<Name> podspecs_repo_sdk_folder_path:</path/to/gini-podspecs> template_podspec_path:</path/to/Pod/<Pod_Name.podspec>

and replace all the paths.

Example:

fastlane publish_podspec xcframeworks_folder_path:/Users/valentinaiancu/Documents/Workspace/gini-mobile-ios/BankSDK/GiniBankSDK/Pod/GiniBankSDKPinning_3.7.2_XCFrameworks pod_name:GiniBankSDK podspecs_repo_sdk_folder_path:/Users/valentinaiancu/Documents/Workspace/gini-podspecs/GiniBankSDK template_podspec_path:/Users/valentinaiancu/Documents/Workspace/gini-mobile-ios/BankSDK/GiniBankSDK/Pod/GiniBankSDK.podspec

…ters in Fastfile

- added new lane to automatically create, commit and push new a folder version for GiniBankSDK in `gini-podspecs` repo with the new `podspec` file and frameworks archived

BSDK-35
… used for every SDK

- `podspec_name` parameter added to the `generate_release_podspecs` lane in order to be used to generate podspecs for whatever SDK is needed

BSDK-35
Copy link
Contributor

@a-szotyori a-szotyori left a comment

Choose a reason for hiding this comment

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

Just some small refactoring is needed to match the style of the existing lanes better and to reuse existing utility code.

fastlane/Fastfile Outdated Show resolved Hide resolved
fastlane/Fastfile Outdated Show resolved Hide resolved
fastlane/Fastfile Outdated Show resolved Hide resolved
fastlane/Fastfile Outdated Show resolved Hide resolved
fastlane/Fastfile Outdated Show resolved Hide resolved
fastlane/Fastfile Outdated Show resolved Hide resolved
Copy link
Collaborator

@zladzeyka zladzeyka left a comment

Choose a reason for hiding this comment

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

We've tested XCFrameworks generation yesterday together with @ValentinaIancu-Gini 👏🏻
Tiny suggestion: to use the latest released SDK version number in podspecs

BankSDK/GiniBankSDKPinning/Pod/GiniBankSDKPinning.podspec Outdated Show resolved Hide resolved
BankSDK/GiniBankSDKPinning/Pod/GiniBankSDKPinning.podspec Outdated Show resolved Hide resolved
fastlane/Fastfile Outdated Show resolved Hide resolved
BankSDK/GiniBankSDKPinning/Pod/GiniBankSDKPinning.podspec Outdated Show resolved Hide resolved
BankSDK/GiniBankSDK/Pod/GiniBankSDK.podspec Outdated Show resolved Hide resolved
@ValentinaIancu-Gini
Copy link
Contributor Author

@a-szotyori is this good to be merged? Thanks!

Copy link
Contributor

@a-szotyori a-szotyori left a comment

Choose a reason for hiding this comment

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

Awesome! I only saw an unused variable. I don't want to reject the PR due to that, but it would be nice to remove it before merging 😉 .

fastlane/Fastfile Outdated Show resolved Hide resolved
@ValentinaIancu-Gini ValentinaIancu-Gini merged commit 2f2df21 into main Feb 9, 2024
5 checks passed
@ValentinaIancu-Gini ValentinaIancu-Gini deleted the BSDK-35-Create-fastlane-lane-to-generate-release-podspecs-with-the-release-version branch February 9, 2024 11:45
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