1313# ## Workflow Jobs
1414# 1. **Setup**: Prepares the build environment
1515# - Checks out repository code
16- # - Sets up Java 17
16+ # - Sets up Java (default 17, configurable via `java-version` input)
1717# - Configures Gradle
1818# - Manages dependency caching
1919#
3636# - Generates platform-specific executables and packages
3737#
3838# ## Prerequisites
39- # - Java 17
39+ # - Java (configurable, defaults to 17)
4040# - Gradle
4141# - Configured build scripts for:
4242# - Android module
4747# - Dependency Guard
4848#
4949# ## Configuration Parameters
50- # The workflow requires two input parameters:
50+ # The workflow requires below parameters:
5151#
5252# | Parameter | Description | Type | Required |
5353# |-----------|-------------|------|----------|
5454# | `android_package_name` | Name of the Android project module | String | Yes |
5555# | `desktop_package_name` | Name of the Desktop project module | String | Yes |
56+ # | `web_package_name` | Name of the Web project module | String | Yes |
57+ # | `ios_package_name` | Name of the iOS project module | String | Yes |
58+ # | `build_ios` | Enable iOS build | Boolean | No |
59+ # | `use_cocoapods` | Whether to use CocoaPods for integrating the shared module into the iOS app | Boolean | Required **if `build_ios` = true** |
60+ # | `shared_module` | Gradle path to the shared Kotlin Multiplatform module used in the iOS app (e.g., :cmp-shared, :shared) | String | Required **if `build_ios` = true** |
61+ # | `java-version` | Java version to use (e.g., 17, 21) | String | No |
5662#
5763# ## Usage Example
5864# ```yaml
8187# web_package_name: 'cmp-web' # <-- Change Your Web Package Name
8288# ios_package_name: 'cmp-ios' # <-- Change Your iOS Package Name
8389# build_ios: true # <-- Change to 'false' if you don't want to build iOS
84- # use_cocoapods: true
85- # shared_module: ':cmp-shared'
90+ # use_cocoapods: true # <-- Required if build_ios = true
91+ # shared_module: ':cmp-shared' # <-- Required if build_ios = true
92+ # java-version: '21' # <-- Set according to the JDK your project uses (default is 17)
8693# ```
8794#
8895# GitHub Actions workflow for continuous integration of Mobile-Wallet project
@@ -93,6 +100,12 @@ name: Debug Build & PR Checks
93100on :
94101 workflow_call :
95102 inputs :
103+ java-version :
104+ description : ' Java version to use (e.g., 17, 21)'
105+ type : string
106+ required : false
107+ default : ' 17'
108+
96109 android_package_name :
97110 description : ' Name of the Android project module'
98111 type : string
@@ -155,7 +168,9 @@ jobs:
155168 uses : actions/checkout@v4
156169
157170 - name : Static Analysis Check
158- 171+ 172+ with :
173+ java-version : ${{ inputs.java-version }}
159174
160175 build_android_app :
161176 name : Build Android Application
0 commit comments