Skip to content

Commit

Permalink
feat(GiniInternalPaymentSDK): Bumps version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinaIancu-Gini committed Nov 26, 2024
1 parent 56d5443 commit 37ad461
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/internal-payment-sdk.check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check Gini Internal Payment SDK
on:
push:
paths:
- 'GiniComponents/GiniInternalPaymentSDK/**'
tags-ignore:
- '**'
workflow_call:
workflow_dispatch:

jobs:
check:
runs-on: macos-latest
strategy:
matrix:
target: [GiniInternalPaymentSDK]
destination: ['platform=iOS Simulator,OS=17.2,name=iPhone SE (3rd generation)', 'platform=iOS Simulator,OS=17.5,name=iPhone 15']
steps:
- uses: maxim-lobanov/[email protected]
with:
xcode-version: '15.3'

- name: Checkout
uses: actions/checkout@v4

- name: Check package GiniInternalPaymentSDK
run: |
cd GiniComponents/GiniInternalPaymentSDK
swift package update
- name: Build sdk targets
run: |
xcodebuild -workspace GiniMobile.xcworkspace -scheme "${{ matrix.target }}" -destination "${{ matrix.destination }}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
43 changes: 43 additions & 0 deletions .github/workflows/internal-payment-sdk.release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release Gini Internal Payment SDK
on:
push:
tags:
- 'GiniInternalPaymentSDK;[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:

jobs:
check:
uses: gini/gini-mobile-ios/.github/workflows/internal-payment-sdk.check.yml@main

release:
needs: check
runs-on: macos-latest
steps:
- uses: maxim-lobanov/[email protected]
with:
xcode-version: '15.3'

- name: Checkout
uses: actions/checkout@v4

- name: setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.0'
bundler-cache: true

- name: Publish GiniInternalPaymentSDK package to the release repo
uses: maierj/[email protected]
with:
lane: 'publish_swift_package'
options: >
{
"project_folder": "GiniComponents",
"package_folder": "GiniInternalPaymentSDK",
"version_file_path": "GiniComponents/GiniInternalPaymentSDK/Sources/GiniInternalPaymentSDK/GiniInternalPaymentSDKVersion.swift",
"git_tag": "${{ github.ref }}",
"repo_url": "https://github.com/gini/internal-payment-sdk-ios.git",
"repo_user": "${{ secrets.RELEASE_GITHUB_USER }}",
"repo_password": "${{ secrets.RELEASE_GITHUB_PASSWORD }}",
"ci": "true"
}
4 changes: 2 additions & 2 deletions GiniComponents/GiniInternalPaymentSDK/Package-release.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ let package = Package(
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(name: "GiniHealthAPILibrary", url: "https://github.com/gini/health-api-library-ios.git", .exact("4.3.0")),
.package(name: "GiniUtilites", url: "https://github.com/gini/utilites-ios.git", .exact("1.0.0")),
.package(name: "GiniHealthAPILibrary", url: "https://github.com/gini/health-api-library-ios.git", .exact("5.0.0")),
.package(name: "GiniUtilites", url: "https://github.com/gini/utilites-ios.git", .exact("1.1.0")),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
// GiniInternalPaymentSDKVersion.swift
//
// Copyright © 2024 Gini GmbH. All rights reserved.
//


import Foundation
public let GiniInternalPaymentSDKVersion = "1.0.0"

0 comments on commit 37ad461

Please sign in to comment.