RCF-1277 Implemented logic to add dynamic description with placeholde… #393
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Android Registration-Client | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| serverBaseURL: | |
| description: "Enter serverBaseURL for APK" | |
| required: true | |
| default: "https://api.default.example.com" | |
| type: string | |
| push: | |
| branches: | |
| - release* | |
| - develop | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Replace serverBaseURL in all build.gradle files | |
| run: | | |
| find android -type f -name "build.gradle*" -print0 \ | |
| | xargs -0 sed -i "s#api-internal.sandbox.xyz.net#${{ github.event.inputs.serverBaseURL }}#g" | |
| if: ${{ github.event_name == 'workflow_dispatch' }} | |
| - name: Setup java 17 | |
| uses: actions/setup-java@v2 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '17' | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.10.4' | |
| - name: Install Dart SDK | |
| run: flutter pub get | |
| - name: Flutter clean | |
| run: flutter clean | |
| - name: Creating Folders for generated source code | |
| run: | | |
| sh pigeon.sh | |
| # - name: Flutter test | |
| # run: flutter test | |
| - name: Decode android/app/arc-local-keystore.jks | |
| run: echo "${{ secrets.JKS_PRIVATE_SECRET }}" | base64 --decode > android/app/arc-local-keystore.jks | |
| - name: Decode android/key.properties | |
| run: echo "${{ secrets.KEY_PROPERTIES }}" | base64 --decode > android/key.properties | |
| - name: Build Android APK | |
| run: flutter build apk | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: apk-output | |
| path: ./build/app/outputs/flutter-apk/app-release.apk | |
| retention-days: 10 |