Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
22fd9f9
feat(capture-sdk): Adding the unit and integration tests for the user…
obaidgini Sep 8, 2025
7210f71
feat(capture-sdk): accommodating the co-pilot comments
obaidgini Sep 8, 2025
811afd4
Merge branch 'main' of https://github.com/gini/gini-mobile-android in…
obaidgini Sep 29, 2025
401bf92
feat(capture-sdk): refactored the methods of UserAnalyticsEventTracke…
obaidgini Oct 1, 2025
9312a30
feat(capture-sdk): refactored the methods of AmplitudeUserAnalyticsEv…
obaidgini Oct 1, 2025
2463adb
feat(capture-sdk): refactored the methods of BufferedUserAnalyticsEve…
obaidgini Oct 1, 2025
e565aea
feat(capture-sdk): Changed the comments as per PR comments
obaidgini Oct 1, 2025
b4fd428
feat(capture-sdk): Changed the tests, according to new refactor and b…
obaidgini Oct 1, 2025
025d397
feat(capture-sdk): Changed the setup according to new return type of …
obaidgini Oct 1, 2025
c2ff476
feat(capture-sdk): Addressing the detekt issues
obaidgini Oct 1, 2025
56bf21f
feat(capture-sdk): Resolving the test failures because we changed the…
obaidgini Oct 1, 2025
3ec84d7
feat(capture-sdk): Adding a simple SharedPreferenceHelper to store an…
obaidgini Oct 15, 2025
95a11d2
feat(capture-sdk): Adding a Helper class for all the SAF related work…
obaidgini Oct 15, 2025
2a4439d
feat(capture-sdk): Adding the switch track color and background, also…
obaidgini Oct 15, 2025
c7e1264
feat(capture-sdk): Adding strings and styles, every item is temporary…
obaidgini Oct 15, 2025
8a54d8b
feat(capture-sdk): Linking the views to java file to initiate flow, w…
obaidgini Oct 15, 2025
0b74ecc
feat(capture-sdk): Updating the test according to change in createPre…
obaidgini Oct 15, 2025
a94a158
feat(capture-sdk): Adding the ability to remove the SAF data from the…
obaidgini Oct 15, 2025
f465a8d
feat(capture-sdk): adding the argument for AnalysisFragment to receiv…
obaidgini Oct 15, 2025
103f0d4
feat(capture-sdk): Adding a default method in callback to open a laun…
obaidgini Oct 15, 2025
a1962e2
feat(capture-sdk): Adding a method to release education lock, because…
obaidgini Oct 15, 2025
c413102
feat(capture-sdk): Adding the boolean which will inform AnalysisFragm…
obaidgini Oct 15, 2025
ad639dd
feat(capture-sdk): Adding required method in the contract of Analysis…
obaidgini Oct 15, 2025
da22591
feat(capture-sdk): Adding the SAF implementation in the Analysis frag…
obaidgini Oct 15, 2025
44fbb39
feat(capture-sdk): Addressing detekt issues
obaidgini Oct 15, 2025
faa9cd9
feat(capture-sdk): Addressing detekt issues
obaidgini Oct 15, 2025
cdfe337
feat(bank-api-library): Adding backend flag for the saveInvoicesLocally
obaidgini Oct 17, 2025
b3ac3b8
feat(bank-api-library): Adding backend flag for the saveInvoicesLocally
obaidgini Oct 17, 2025
b3eadd4
feat(capture-sdk): Configuring SDK flag in Capture
obaidgini Oct 17, 2025
e5b71d6
feat(capture-sdk): Configuring SDK flag in Bank sdk
obaidgini Oct 17, 2025
3131fa2
feat(capture-sdk): Adding use case for the SDK flag so it can be acce…
obaidgini Oct 17, 2025
1ebde3f
feat(capture-sdk): Adding di related work so SaveInvoicesLocallyFeatu…
obaidgini Oct 17, 2025
3654b31
feat(capture-sdk): Adding a separate class which will evaluate the vi…
obaidgini Oct 17, 2025
e464546
feat(capture-sdk): removing default value it is not needed
obaidgini Oct 17, 2025
5ff674e
feat(capture-sdk): By default the view visibility should be gone, so …
obaidgini Oct 17, 2025
ff0103f
feat(capture-sdk): The import type for photo was always null, putting…
obaidgini Oct 17, 2025
022ff1c
feat(capture-sdk): Handling the view visibility for save invoice loca…
obaidgini Oct 17, 2025
ea47d44
feat(example-app): Handling the turning off and on for SDK flag in ba…
obaidgini Oct 17, 2025
50217de
feat(capture-sdk): Putting the right import method to differentiate b…
obaidgini Oct 17, 2025
7b4dd46
feat(capture-sdk): Making the object internal so it can not be access…
obaidgini Oct 17, 2025
6ca8b71
feat(capture-sdk): Updating the show scan animation, because if we ha…
obaidgini Oct 22, 2025
058b3df
feat(capture-sdk): Updating the show scan animation, because if we ha…
obaidgini Oct 22, 2025
ce1ac03
feat(capture-sdk): adding new minimum width for tablets
obaidgini Oct 22, 2025
42771e6
feat(capture-sdk): renaming files
obaidgini Oct 22, 2025
cc0d797
feat(capture-sdk): updating xmls for new designs, adding backgrounds,…
obaidgini Oct 22, 2025
2cfdaa6
feat(capture-sdk): updating strings
obaidgini Oct 22, 2025
1bb12a1
feat(capture-sdk): updating styles for material switch 3
obaidgini Oct 22, 2025
5bff758
feat(capture-sdk): Taking care of background change according to figm…
obaidgini Oct 22, 2025
46cad24
feat(capture-sdk): Adding new view for tablet portrait view
obaidgini Oct 22, 2025
a4c99ef
feat(capture-sdk): Updating saving invoices locally view, according t…
obaidgini Oct 22, 2025
018b990
feat(capture-sdk): addressing ktlint issues
obaidgini Oct 22, 2025
bb2057d
feat(capture-sdk): addressing sonar issues
obaidgini Oct 22, 2025
94d6bef
feat(capture-sdk): Updating tests according to new parameter added in…
obaidgini Oct 22, 2025
5b66fbd
feat(capture-sdk): resolving co-pilot comments
obaidgini Oct 22, 2025
d1b2805
feat(capture-sdk): Updating test's according to changes in MultipageR…
obaidgini Oct 22, 2025
6288552
feat(capture-sdk): Updating test's according to changes in MultipageR…
obaidgini Oct 22, 2025
c541384
feat(bank-api-library): updating test according to new response of co…
obaidgini Oct 23, 2025
21dd34e
feat(capture-sdk): Adding unit test for SAF Helper
obaidgini Oct 23, 2025
67bcd74
feat(capture-sdk): Removing the un-used string
obaidgini Oct 24, 2025
6a2e64b
feat(capture-sdk): Adding english name for file name
obaidgini Oct 24, 2025
c33b2b0
feat(capture-sdk): Adding comment related to saveInvoicesLocallyEnabled
obaidgini Oct 24, 2025
bcfa130
feat(capture-sdk): Adding comment related to saveInvoicesLocallyEnabled
obaidgini Oct 24, 2025
281d412
feat(capture-sdk): changed the name of isInvoiceSavingEnabled
obaidgini Oct 24, 2025
dcaaa83
feat(bank-api-library): Formatted the code
obaidgini Oct 28, 2025
0837cd9
feat(bank-api-library): Removed un-used import
obaidgini Oct 28, 2025
5e5bcae
feat(capture-sdk): Added tests for SaveInvoicesFeatureEvaluatorTest
obaidgini Oct 28, 2025
0f2e77e
feat(capture-sdk): Adding spaces
obaidgini Oct 29, 2025
6bf9ed7
feat(capture-sdk): Fixing failing test
obaidgini Oct 29, 2025
5f535f6
feat(capture-sdk): Fixing failing test
obaidgini Oct 29, 2025
8850f09
feat(capture-sdk): Fixing failing test
obaidgini Oct 31, 2025
3d406c4
Merge branch 'PP-1700-unit-and-integration-tests' of https://github.c…
obaidgini Nov 3, 2025
b445d93
feat(capture-sdk): Adding test to check if the configuration call is …
obaidgini Nov 3, 2025
0b55451
feat(bank-api-library): Add SonarCloud analysis for bank-api-library
MozhganPeivandianSharbaf Nov 3, 2025
6d4bd61
feat(bank-api-library): Configure SonarCloud analysis and update depe…
MozhganPeivandianSharbaf Nov 3, 2025
6d9d90a
feat(bank-api-library): Add SonarQube configuration for analysis on p…
MozhganPeivandianSharbaf Nov 3, 2025
d218fdf
feat(bank-api-library): Update SonarCloud configuration for pull requ…
MozhganPeivandianSharbaf Nov 4, 2025
8cb4d73
feat(bank-api-library): Update SonarQube configuration for build and …
MozhganPeivandianSharbaf Nov 4, 2025
a5a2494
feat(bank-api-library): Enhance SonarCloud analysis configuration for…
MozhganPeivandianSharbaf Nov 4, 2025
3e4d9fa
feat(bank-api-library): Update SonarCloud configuration and improve b…
MozhganPeivandianSharbaf Nov 5, 2025
fc27542
feat(bank-api-library): Add SonarCloud host URL and Java binaries con…
MozhganPeivandianSharbaf Nov 5, 2025
1c236fb
feat(bank-api-library): Add SonarCloud exclusions for Java files
MozhganPeivandianSharbaf Nov 5, 2025
920ce60
feat: Add paymentDueHint flag in bank and capture SDK
abolfazlimahdi Oct 29, 2025
3167d38
refactor(bank-sdk): Rename Configuration to ExampleAppBankConfiguration
abolfazlimahdi Oct 29, 2025
c541aa2
feat(capture-sdk): Extracts the payment state from extractions
abolfazlimahdi Oct 29, 2025
c87d3d3
feat(capture-sdk): Implement payment due hint UI components and color…
abolfazlimahdi Nov 5, 2025
6e4da91
feat(capture-sdk): Add logic to show payment due hint in analysis screen
abolfazlimahdi Nov 6, 2025
6f53452
feat(capture-sdk): Add auto-dismissing animation for PaymentDueHint
abolfazlimahdi Nov 6, 2025
4270bc2
feat(capture-sdk): Prevent due date hint for documents with line item…
abolfazlimahdi Nov 7, 2025
1d2134f
refactor(capture-sdk): Rename paymentHintsEnabled to alreadyPaidHintE…
abolfazlimahdi Nov 7, 2025
dd0e0e5
feat(capture-sdk): Add payment due hint threshold days
abolfazlimahdi Nov 7, 2025
3900b1e
feat(capture-sdk): Avoid interruption of qr code education in case of…
abolfazlimahdi Nov 7, 2025
cfd6796
refactor(capture-sdk): Rename paymentHintsEnabled to isAlreadyPaidHin…
abolfazlimahdi Nov 10, 2025
9d8ce28
feat(capture-sdk): Add paymentDueHintEnabled client flag
abolfazlimahdi Nov 10, 2025
a93bfca
feat(capture-sdk): Show payment due hint after qr code education
abolfazlimahdi Nov 10, 2025
321fc4e
feat(capture-sdk): Add bridge to access Bank SDK properties
abolfazlimahdi Nov 11, 2025
7bef40d
fix(capture-sdk): update hint text formatting and improve string reso…
MozhganPeivandianSharbaf Nov 12, 2025
207097b
feat(capture-sdk): add bank SDK bridge to AnalysisFragment test
MozhganPeivandianSharbaf Nov 12, 2025
f7661af
fix(capture-sdk): simplify exception handling by using underscore for…
MozhganPeivandianSharbaf Nov 12, 2025
a13a9fc
fix(capture-sdk): suppress warning for too many functions in CaptureF…
MozhganPeivandianSharbaf Nov 13, 2025
3dfaefe
feat(capture-sdk):Changing the file name because system is sometime n…
obaidgini Nov 13, 2025
2fdc0f2
feat(capture-sdk): fix accessibility issues for payment due hint
MozhganPeivandianSharbaf Nov 13, 2025
dce657c
feat(capture-sdk):Adding some comments and improving variable names
obaidgini Nov 13, 2025
08edaf2
feat(capture-sdk):changing client id for workflows
obaidgini Nov 13, 2025
da7ed8f
Merge branch 'main' of https://github.com/gini/gini-mobile-android in…
obaidgini Nov 13, 2025
66317f7
fix(capture-sdk): clear image disk store on cancel action and prevent…
obaidgini Nov 13, 2025
ad96267
fix(capture-sdk): Adding the missing parameter for paymentHintsEnabled
obaidgini Nov 13, 2025
2439055
feat(capture-sdk): Add unit tests for GiniCaptureDefaultNetworkServic…
abolfazlimahdi Nov 13, 2025
2a5b658
Merge branch 'PP-1889-payment-due-hint' of https://github.com/gini/gi…
obaidgini Nov 13, 2025
3fe1f79
fix(capture-sdk): Removing un-necessary mutex unlock
obaidgini Nov 13, 2025
e373997
fix(capture-sdk): Providing required values in test
obaidgini Nov 13, 2025
eb12e17
fix(capture-sdk): Handling success full extractions
obaidgini Nov 13, 2025
07868da
fix(capture-sdk): handling saving invoices locally with due and paid …
obaidgini Nov 13, 2025
be18424
fix(capture-sdk): Adding parameterized names
obaidgini Nov 13, 2025
1df0529
fix(capture-sdk): Removing un-used import
obaidgini Nov 13, 2025
738441c
fix(capture-sdk): Resolving failing tests
obaidgini Nov 13, 2025
9460ad5
feat(capture-sdk): Make BankSDKBridge nullable
abolfazlimahdi Nov 14, 2025
46e5150
docs(capture-sdk): Update KDoc in BankSDKBridge
abolfazlimahdi Nov 14, 2025
1d30241
docs(capture-sdk): Add Javadocs for WarningPaymentState methods
abolfazlimahdi Nov 14, 2025
5b21dac
fix(capture-sdk): Add leading space to due date hint
abolfazlimahdi Nov 14, 2025
89bccbb
refactor(capture-sdk): Remove redundant 'Companion' keyword
abolfazlimahdi Nov 14, 2025
cb3e648
feat(capture-sdk): Update warning icon content description
abolfazlimahdi Nov 14, 2025
9cbe7a7
refactor(bank-api-library): Rename feature flag properties for consis…
abolfazlimahdi Nov 14, 2025
deaaba2
refactor(bank-sdk): Use named arguments for CaptureFlowFragmentFactory
abolfazlimahdi Nov 14, 2025
34049ac
refactor(capture-sdk): Rename savePhotosLocallyEnabled to isSavePhoto…
abolfazlimahdi Nov 14, 2025
8d1e76f
feat(capture-sdk): Capitalize warning and dismiss message strings
abolfazlimahdi Nov 14, 2025
1b77090
fix(capture-sdk):Updating styles for the saving invoices locally titl…
obaidgini Nov 17, 2025
1589cc1
feat(capture-sdk): Fixing the issue of folder deletion and updating t…
obaidgini Nov 18, 2025
eef96d3
feat(capture-sdk): Resolving detekt issues
obaidgini Nov 18, 2025
304e88d
feat(bank-api-library): Specify source directory for SonarCloud analysis
MozhganPeivandianSharbaf Nov 18, 2025
73356b8
feat(bank-api-library): Update JDK setup in SonarCloud configuration
MozhganPeivandianSharbaf Nov 18, 2025
cb7b53b
feat(bank-api-library): Refactor SonarCloud workflow for improved bui…
MozhganPeivandianSharbaf Nov 18, 2025
4fcefd9
ci(sonarqube): Update workflow triggers and add permissions
abolfazlimahdi Nov 19, 2025
5a4d973
feat(bank-api-library): adding missing params for test
obaidgini Nov 19, 2025
321f181
fix(ci): Add path filters for pull request triggers in SonarCloud wor…
obaidgini Nov 19, 2025
8fb1e1a
Merge branch 'resolved-conflicts-save-invoice-locally-and-payment-due…
obaidgini Nov 19, 2025
af2d998
ci: set working directory for SonarCloud analysis in bank-api-library
obaidgini Nov 19, 2025
19c2b01
ci: update SonarCloud analysis configuration for bank-api-library
obaidgini Nov 19, 2025
8967362
ci: configure SonarCloud analysis for bank-api-library
obaidgini Nov 20, 2025
d68aea0
ci: enhance SonarCloud analysis configuration for bank-api-library
obaidgini Nov 20, 2025
69f7431
ci: update SonarCloud analysis workflow for bank-api-library
obaidgini Nov 20, 2025
e6d6c4c
ci: update SonarCloud analysis command for bank-api-library
obaidgini Nov 20, 2025
d6f7d57
ci: fix SonarCloud analysis command for bank-api-library
obaidgini Nov 20, 2025
45a6fc9
ci: refactor SonarCloud analysis command for bank-api-library
obaidgini Nov 20, 2025
dac3f4c
ci: implement SonarQube analysis workflow for bank-api-library
obaidgini Nov 20, 2025
811e729
ci: fix indentation in SonarCloud analysis workflow for bank-api-library
obaidgini Nov 20, 2025
31a3d76
ci: enhance SonarQube analysis workflow for bank-api-library
obaidgini Nov 20, 2025
de2f4b5
ci: simplify SonarQube scan command for bank-api-library
obaidgini Nov 20, 2025
5bd4050
ci: update SonarQube scan command for bank-api-library
obaidgini Nov 20, 2025
a16d046
ci: downgrade SonarQube plugin version and enhance scan command for b…
obaidgini Nov 20, 2025
fe788fa
feat(bank-sdk): add SonarCloud analysis workflow for bank API library…
MozhganPeivandianSharbaf Dec 8, 2025
0992963
feat(bank-sdk): add SonarCloud analysis configuration for bank API li…
MozhganPeivandianSharbaf Dec 8, 2025
129b800
feat(bank-sdk): remove specific version for SonarQube plugin in build…
MozhganPeivandianSharbaf Dec 8, 2025
eda44a4
feat(bank-sdk): update SonarCloud project keys and add analysis confi…
MozhganPeivandianSharbaf Dec 8, 2025
fccfb6e
feat(capture-sdk): update SonarCloud analysis configuration for core …
MozhganPeivandianSharbaf Dec 8, 2025
c252450
feat(core-api-library): add SonarCloud analysis configuration for ban…
MozhganPeivandianSharbaf Dec 8, 2025
c37cf33
feat(bank-sdk): add SonarCloud analysis configuration for health API,…
MozhganPeivandianSharbaf Dec 8, 2025
c6162f0
feat(health-sdk): update SonarCloud build commands for example apps
MozhganPeivandianSharbaf Dec 8, 2025
6d36d69
feat(health-sdk): update permissions and add SONAR_TOKEN requirement …
MozhganPeivandianSharbaf Dec 8, 2025
4ab7964
feat(health-sdk): update build commands to include clientId and clien…
MozhganPeivandianSharbaf Dec 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 22 additions & 6 deletions .github/workflows/bank-api-library.check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ permissions:
on:
workflow_dispatch:
pull_request:
types: [opened, edited, reopened, synchronize]
types: [ opened, edited, reopened, synchronize ]
paths:
- 'bank-api-library/**'
- 'core-api-library/**'
Expand All @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
api-level: [22, 31]
api-level: [ 22, 31 ]
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -177,19 +177,35 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'

- name: run ktlint
run: ./gradlew bank-api-library:library:ktlintCheck

- name: archive ktlint report
uses: actions/upload-artifact@v4
with:
name: bank-api-library-ktlint-report
path: bank-api-library/library/build/reports/ktlint/**/*.html


sonar:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"

- name: Build Bank API Library
run: ./gradlew :bank-api-library:library:assembleDebug

- name: SonarQube Scan
run: ./gradlew :bank-api-library:library:sonar --info --stacktrace
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
29 changes: 28 additions & 1 deletion .github/workflows/bank-sdk.check.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Check Bank SDK

permissions:
contents: read
contents: write
packages: write

on:
workflow_dispatch:
Expand All @@ -19,6 +20,8 @@ on:
required: true
BANK_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD:
required: true
SONAR_TOKEN:
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-check
Expand Down Expand Up @@ -251,3 +254,27 @@ jobs:
with:
name: bank-sdk-ktlint-report
path: bank-sdk/sdk/build/reports/ktlint/**/*.html
sonar:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: "gradle"

# Build both modules (example-app depends on sdk)
- name: Build modules for Sonar
run: |
./gradlew bank-sdk:sdk:assembleDebug \
bank-sdk:example-app:assembleDevExampleAppDebug

# Run Sonar on both modules
- name: SonarQube Scan
run: ./gradlew bank-sdk:sdk:sonar bank-sdk:example-app:sonar --info --stacktrace
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/bank-sdk.publish.firebase.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
secrets:
GINI_MOBILE_TEST_CLIENT_SECRET: ${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}
BANK_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD: ${{ secrets.BANK_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}

SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

publish_to_firebase_distribution:
needs: check
runs-on: ubuntu-latest
Expand Down
28 changes: 27 additions & 1 deletion .github/workflows/capture-sdk.check.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Check Capture SDK

permissions:
contents: read
contents: write
packages: write


on:
workflow_dispatch:
Expand Down Expand Up @@ -322,3 +324,27 @@ jobs:
with:
name: capture-sdk-ktlint-report
path: capture-sdk/sdk/build/reports/ktlint/**/*.html
sonar:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: "gradle"

# Build both modules (example-app depends on sdk)
- name: Build modules for Sonar
run: |
./gradlew capture-sdk:sdk:assembleDebug \
capture-sdk:default-network:assembleDebug

# Run Sonar on both modules
- name: SonarQube Scan
run: ./gradlew capture-sdk:sdk:sonar capture-sdk:default-network:sonar --info --stacktrace
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/capture-sdk.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
secrets:
GINI_MOBILE_TEST_CLIENT_SECRET: ${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}
CAPTURE_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD: ${{ secrets.CAPTURE_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}

SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

release:
needs: check
runs-on: ubuntu-latest
Expand Down
28 changes: 26 additions & 2 deletions .github/workflows/core-api-library.check.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Check Core API Library

permissions:
contents: read
contents: write
packages: write

on:
workflow_dispatch:
Expand Down Expand Up @@ -183,4 +184,27 @@ jobs:
with:
name: core-api-library-ktlint-report
path: core-api-library/library/build/reports/ktlint/**/*.html

sonar:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: "gradle"

# Build both modules (example-app depends on sdk)
- name: Build modules for Sonar
run: |
./gradlew core-api-library:library:assembleDebug \
core-api-library:shared-tests:assembleDebug

# Run Sonar on both modules
- name: SonarQube Scan
run: ./gradlew core-api-library:library:sonar core-api-library:shared-tests:sonar --info --stacktrace
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/gpc.publish.firebase.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
secrets:
GINI_MOBILE_TEST_CLIENT_SECRET: ${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}
BANK_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD: ${{ secrets.BANK_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}

SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

publish_to_firebase_distribution:
needs: check
runs-on: ubuntu-latest
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/health-api-library.check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,23 @@ jobs:
with:
name: health-api-library-ktlint-report
path: health-api-library/library/build/reports/ktlint/**/*.html


sonar:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"

- name: Build health API Library
run: ./gradlew :health-api-library:library:assembleDebug

- name: SonarQube Scan
run: ./gradlew :health-api-library:library:sonar --info --stacktrace
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
33 changes: 32 additions & 1 deletion .github/workflows/health-sdk.check.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Check Health SDK

permissions:
contents: read
contents: write
packages: write

on:
workflow_dispatch:
Expand All @@ -18,6 +19,8 @@ on:
required: true
HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD:
required: true
SONAR_TOKEN:
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-check
Expand Down Expand Up @@ -153,3 +156,31 @@ jobs:
with:
name: health-sdk-ktlint-report
path: health-sdk/sdk/build/reports/ktlint/**/*.html

sonar:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: "gradle"

# Build both modules (example-app depends on sdk)
- name: Build modules for Sonar
run: |
./gradlew \
health-sdk:sdk:assembleDebug \
health-sdk:example-app:assembleDebug \
-PclientId="gini-mobile-ci" \
-PclientSecret="${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}"

# Run Sonar on both modules
- name: SonarQube Scan
run: ./gradlew health-sdk:sdk:sonar health-sdk:example-app:sonar --info --stacktrace
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/health-sdk.publish.firebase.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
secrets:
GINI_MOBILE_TEST_CLIENT_SECRET: ${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}
HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD: ${{ secrets.HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}

SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

publish_to_firebase_distribution:
needs: check
runs-on: ubuntu-latest
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/internal-payment-sdk.check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,23 @@ jobs:
with:
name: internal-payment-sdk-ktlint-report
path: internal-payment-sdk/sdk/build/reports/ktlint/**/*.html

sonar:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"

- name: Build Internal Payment SDK
run: ./gradlew :internal-payment-sdk:sdk:assembleDebug

- name: SonarQube Scan
run: ./gradlew :internal-payment-sdk:sdk:sonar --info --stacktrace
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
33 changes: 32 additions & 1 deletion .github/workflows/merchant-sdk.check.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Check Merchant SDK

permissions:
contents: read
contents: write
packages: write

on:
workflow_dispatch:
Expand All @@ -19,6 +20,8 @@ on:
required: true
MERCHANT_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD:
required: true
SONAR_TOKEN:
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-check
Expand Down Expand Up @@ -154,3 +157,31 @@ jobs:
with:
name: merchant-sdk-ktlint-report
path: merchant-sdk/sdk/build/reports/ktlint/**/*.html

sonar:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: "gradle"

# Build both modules (example-app depends on sdk)
- name: Build modules for Sonar
run: |
./gradlew \
merchant-sdk:sdk:assembleDebug \
merchant-sdk:example-app:assembleDebug \
-PclientId="gini-mobile-ci" \
-PclientSecret="${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}"

# Run Sonar on both modules
- name: SonarQube Scan
run: ./gradlew merchant-sdk:sdk:sonar merchant-sdk:example-app:sonar --info --stacktrace
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
secrets:
GINI_MOBILE_TEST_CLIENT_SECRET: ${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}
MERCHANT_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD: ${{ secrets.MERCHANT_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

publish_to_firebase_distribution:
needs: check
Expand Down
Loading
Loading