Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "build android" command to Sharezone CLI #685

Merged
merged 6 commits into from
Jul 16, 2023

Conversation

nilsreichardt
Copy link
Member

Adds the sz build android command to the Sharezone CLI. It's part of a sz deploy command that should come in the future.

Running sz build android --help

NilsMBP13M14:sz_repo_cli nils$ fvm dart run sz_repo_cli build android --help
Build the Sharezone Android app in release mode. Codemagic CLI tools must be installed.

Usage: pub global run sz_repo_cli build android [arguments]
-h, --help            Print this usage information.
-s, --stage           [stable (default), alpha]
    --output-type     The type of output type, either "appbundle" or "apk".
                      [appbundle (default), apk]
    --build-number    An identifier used as an internal version number.
                      Each build must have a unique identifier to differentiate it from previous builds.
                      It is used to determine whether one build is more recent than
                      another, with higher numbers indicating more recent build.
                      When none is specified, the value from pubspec.yaml is used.
    --flavor          The flavor to build for. At the moment only "prod" is supported.
                      [prod (default), dev]

Run "pub global run sz_repo_cli help" to see global options.

Running sz build android

NilsMBP13M14:sz_repo_cli nils$ fvm dart run sz_repo_cli build android
Starting fvm flutter build appbundle --target lib/main_prod.dart --flavor prod --release --dart-define DEVELOPMENT_STAGE=STABLE...
Waiting for exit code...

Building without sound null safety ⚠️
Dart 3 will only support sound null safety, see https://dart.dev/null-safety

Running Gradle task 'bundleProdRelease'...                      
Removed unused resources: Binary resource data reduced from 609KB to 550KB: Removed 9%
Running Gradle task 'bundleProdRelease'...                         30.2s
✓ Built build/app/outputs/bundle/prodRelease/app-prod-release.aab (43.5MB).
Got exit code 0...
Build finished 🎉 

@docs-page
Copy link

docs-page bot commented Jul 16, 2023

To view this pull requests documentation preview, visit the following URL:

docs.page/sharezoneapp/sharezone-app~685

Documentation is deployed and generated using docs.page.

Copy link
Collaborator

@Jonas-Sander Jonas-Sander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments, otherwise LGTM!! :)

@nilsreichardt nilsreichardt added this pull request to the merge queue Jul 16, 2023
Merged via the queue into main with commit c2caa70 Jul 16, 2023
16 checks passed
@nilsreichardt nilsreichardt deleted the add-build-android-command branch July 16, 2023 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants