chore: setup fastlane

This commit is contained in:
Naveen Singh 2025-05-01 23:52:20 +05:30 committed by Naveen Singh
parent aabf627462
commit 3c85e6b4eb
5 changed files with 290 additions and 34 deletions

View file

@ -1,38 +1,12 @@
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
default_platform(:android)
platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "test")
end
desc 'Run unit & instrumentation tests'
lane(:test) { test_android }
desc "Submit a new Beta Build to Crashlytics Beta"
lane :beta do
gradle(task: "clean assembleRelease")
crashlytics
# sh "your_script.sh"
# You can also use other beta testing services here
end
desc 'Build & deploy AAB to Google Play (includes metadata)'
lane(:deploy) { deploy_android }
desc "Deploy a new version to the Google Play"
lane :deploy do
gradle(task: "clean assembleRelease")
upload_to_play_store
end
desc 'Push Play Store metadata'
lane(:metadata) { metadata_android }
end

48
fastlane/README.md Normal file
View file

@ -0,0 +1,48 @@
fastlane documentation
----
# Installation
Make sure you have the latest version of the Xcode command line tools installed:
```sh
xcode-select --install
```
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)
# Available Actions
## Android
### android test
```sh
[bundle exec] fastlane android test
```
Run unit & instrumentation tests
### android deploy
```sh
[bundle exec] fastlane android deploy
```
Build & deploy AAB to Google Play (includes metadata)
### android metadata
```sh
[bundle exec] fastlane android metadata
```
Push Play Store metadata
----
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).
The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).