diff --git a/.github/workflows/bank-sdk.alternative.version.artifact.yml b/.github/workflows/bank-sdk.alternative.version.artifact.yml new file mode 100644 index 000000000..be265fc6d --- /dev/null +++ b/.github/workflows/bank-sdk.alternative.version.artifact.yml @@ -0,0 +1,39 @@ +name: Build Bank SDK alternative version + +on: + workflow_dispatch: + workflow_call: + secrets: + GINI_MOBILE_TEST_CLIENT_SECRET: + required: true + BANK_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD: + required: true + +jobs: + build-example-apps: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + cache: 'gradle' + + - name: build unique release example app for QA + run: > + ./gradlew bank-sdk:example-app:assembleQaUniqueExampleAppRelease + -PclientId="gini-mobile-test" + -PclientSecret="${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}" + -PreleaseKeystoreFile="screen_api_example.jks" + -PreleaseKeystorePassword='${{ secrets.BANK_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}' + -PreleaseKeyAlias="screen_api_example" + -PreleaseKeyPassword='${{ secrets.BANK_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}' + + - name: archive unique release example app for QA + uses: actions/upload-artifact@v4 + with: + name: bank-sdk-example-app-qa-release + path: bank-sdk/example-app/build/outputs/apk/qaUniqueExampleApp/release \ No newline at end of file diff --git a/.github/workflows/health-sdk.alternative.version.check.yml b/.github/workflows/health-sdk.alternative.version.check.yml new file mode 100644 index 000000000..d4674ce90 --- /dev/null +++ b/.github/workflows/health-sdk.alternative.version.check.yml @@ -0,0 +1,39 @@ +name: Build Health SDK alternative version + +on: + workflow_dispatch: + workflow_call: + secrets: + GINI_MOBILE_TEST_CLIENT_SECRET: + required: true + HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD: + required: true + +jobs: + build-example-app: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + cache: 'gradle' + + - name: build unique release example app for QA + run: > + ./gradlew health-sdk:example-app:assembleQaUniqueRelease + -PclientId="gini-mobile-test" + -PclientSecret="${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}" + -PreleaseKeystoreFile="health_sdk_example.jks" + -PreleaseKeystorePassword='${{ secrets.HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}' + -PreleaseKeyAlias="health_sdk_example" + -PreleaseKeyPassword='${{ secrets.HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}' + + - name: archive unique release example app for QA + uses: actions/upload-artifact@v4 + with: + name: health-sdk-example-app-qaUnique-release + path: health-sdk/example-app/build/outputs/apk/qaUnique/release diff --git a/.github/workflows/merchant-sdk.alternative.version.artifact.yml b/.github/workflows/merchant-sdk.alternative.version.artifact.yml new file mode 100644 index 000000000..b1ab3f405 --- /dev/null +++ b/.github/workflows/merchant-sdk.alternative.version.artifact.yml @@ -0,0 +1,39 @@ +name: Check Merchant SDK alternative version + +on: + workflow_dispatch: + workflow_call: + secrets: + GINI_MOBILE_TEST_CLIENT_SECRET: + required: true + MERCHANT_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD: + required: true + +jobs: + build-example-app: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + cache: 'gradle' + + - name: build release example app for QA + run: > + ./gradlew merchant-sdk:example-app:assembleQaUniqueRelease + -PclientId="gini-mobile-test" + -PclientSecret="${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}" + -PreleaseKeystoreFile="merchant_sdk_example.jks" + -PreleaseKeystorePassword='${{ secrets.MERCHANT_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}' + -PreleaseKeyAlias="merchant_sdk_example" + -PreleaseKeyPassword='${{ secrets.MERCHANT_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}' + + - name: archive release example app for QA + uses: actions/upload-artifact@v4 + with: + name: merchant-sdk-example-app-qaUnique-release + path: merchant-sdk/example-app/build/outputs/apk/qaUnique/release \ No newline at end of file diff --git a/bank-sdk/example-app/build.gradle.kts b/bank-sdk/example-app/build.gradle.kts index 2b78d820f..864c047f1 100644 --- a/bank-sdk/example-app/build.gradle.kts +++ b/bank-sdk/example-app/build.gradle.kts @@ -118,6 +118,11 @@ android { create("qa") { dimension = "environment" } + create("qaUnique"){ + dimension = "environment" + val v = project(":bank-sdk:sdk").project.version.toString().replace(".", "_") + applicationIdSuffix = ".qa$v" + } create("exampleApp") { isDefault = true dimension = "purpose" diff --git a/health-sdk/example-app/build.gradle.kts b/health-sdk/example-app/build.gradle.kts index 5f24fab41..89e048e57 100644 --- a/health-sdk/example-app/build.gradle.kts +++ b/health-sdk/example-app/build.gradle.kts @@ -59,6 +59,11 @@ android { create("qa") { dimension = "environment" } + create("qaUnique"){ + dimension = "environment" + val v = project(":health-sdk:sdk").project.version.toString().replace(".", "_") + applicationIdSuffix = ".qa$v" + } } buildFeatures { viewBinding = true diff --git a/merchant-sdk/example-app/build.gradle.kts b/merchant-sdk/example-app/build.gradle.kts index f7ad42a67..800f70404 100644 --- a/merchant-sdk/example-app/build.gradle.kts +++ b/merchant-sdk/example-app/build.gradle.kts @@ -59,6 +59,11 @@ android { create("qa") { dimension = "environment" } + create("qaUnique"){ + dimension = "environment" + val v = project(":health-sdk:sdk").project.version.toString().replace(".", "_") + applicationIdSuffix = ".qa$v" + } } buildFeatures { viewBinding = true