PR workflow

This commit is contained in:
Gergely Hegedus 2023-09-07 14:11:28 +03:00
parent ede7a752c4
commit 192bfbe7aa
5 changed files with 205 additions and 38 deletions

View file

@ -32,15 +32,7 @@ platform :android do
lane :deployInternalFirebase do |options|
release_notes = options[:release_notes]
gradle(task: 'clean', flags: "--no-daemon")
gradle(
task: 'assemble',
build_type: 'release',
flags: "--no-daemon",
properties: {
"applicationId" => "com.initproject.staging"
}
)
buildReleaseApk()
internal_apk = lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS].find{ |i| i[/app-*release*.apk/] }
firebase_app_distribution(
@ -53,6 +45,18 @@ platform :android do
)
end
lane :buildReleaseApk do
gradle(task: 'clean', flags: "--no-daemon")
gradle(
task: 'assemble',
build_type: 'release',
flags: "--no-daemon",
properties: {
"applicationId" => "com.initproject.staging"
}
)
end
desc "Submit a new Production Build to Play Store"
lane :deployProdPlayStore do |options|
version_code = options[:version_code] # optional, if not set, it gets the last from PlayStore then adds + 1

View file

@ -31,6 +31,14 @@ Submit a new Internal Build to Firebase
```
### android buildReleaseApk
```sh
[bundle exec] fastlane android buildReleaseApk
```
### android deployProdPlayStore
```sh