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
| <activity | |
| android:name="com.shafayat.helloworld.ui.features.main.MainActivity" | |
| android:exported="true"> | |
| <tools:validation testUrl="https://helloworldmobile.github.io" /> | |
| <intent-filter> | |
| <action android:name="android.intent.action.MAIN" /> | |
| <category android:name="android.intent.category.LAUNCHER" /> | |
| </intent-filter> |
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: CI/CD workflow | |
| on: push | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 |
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 and distribute app | |
| run: | | |
| export LC_ALL=en_US.UTF-8 | |
| export LANG=en_US.UTF-8 | |
| git config --global user.email ${{github.event.pusher.email}} | |
| git config --global user.name ${{github.event.pusher.name}} | |
| bundle exec fastlane build_and_distribute |
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: Cache Ruby dependencies | |
| uses: actions/cache@v2 | |
| with: | |
| path: 'vendor/bundle' | |
| key: ${{ runner.os }}-gems-${{ secrets.GEMS_CACHE_VERSION }}-${{ hashFiles('**/Gemfile.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gems- | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v2 | |
| with: |
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; Checkout the repository | |
| uses: actions/checkout@v2 | |
| with: fetch-depth: 0 |
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: CI workflow | |
| # Events when the workflow will dispatch/run. | |
| on: push | |
| jobs: | |
| # Define jobs and their steps that will be executed. | |
| deploy: | |
| steps: | |
| # Define steps to complete the current job. |
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
| fastlane_require "dotenv" | |
| PACKAGE_NAME = "<package name here>" | |
| FIREBASE_APP_ID = "<firebase app id here>" | |
| KEYSTORE_PATH = nil | |
| FIREBASE_KEY_PATH = nil | |
| PLAYSTORE_KEY_PATH = nil | |
| BUNDLE_FILE_PATH = nil | |
| UPDATED_VERSION_CODE = nil |
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
| desc "Responsible for testing, building and uploading bundle to firebase app distribution and playstore by calling other private lanes." | |
| lane build_and_distribute: | |
| increment_version_code_in_project_gradle() | |
| run_unit_tests() | |
| build() | |
| distribute_to_firebase() | |
| distribute_playstore() | |
| end |
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
| desc "After successful execution of all task, this block is called" | |
| after_all do | |
| git_add(path: "*") | |
| git_commit( | |
| path: "*", | |
| message: "#" + UPDATED_VERSION_CODE + " released" | |
| ) | |
| push_to_git_remote( | |
| local_branch: buildConfigs.key(options[:buildConfig]), | |
| remote: "origin", |
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
| desc "Responsible for uploading aab to playstore" | |
| lane :distribute_playstore do | |
| upload_to_play_store( | |
| track: "production", | |
| aab: BUNDLE_FILE_PATH, | |
| json_key: PLAYSTORE_KEY_PATH, | |
| package_name: PACKAGE_NAME | |
| ) | |
| end |