appcenterpublisher 0.2.0

Build status

App Center Publisher #

Dart tooling to upload and distribute app to MS Appcenter by using the rest Appcenter Rest API .

Installation #

Run pub global activate appcenterpublisher

In order to update the tool use the same pub global activate command

Usage #


  1. Create an Api token on App Center Read more about how to create such a token here.

  2. Create a yaml file containing the config. For more info see the example config.

  3. Have a binary of the app (e.g. .ipa or .apk) located on the machine from where you want to run this tool.

Run appcenterpublisher publish --apiToken <appcenter apitoken> --binary <path to binary> --config <path to config yaml file>

Limitations #

The tool is not yet complete in the future I will add the following to the tool:

  • Distribute the app to multiple distribution groups at once
  • Add more configuration options:
    • Notify testers (now on by default)
    • Mandatory update (now on by default)

0.2.0 #

  • Breaking change: Add ability to upload multiple apps per config yaml

0.1.1 #

  • Fix analyzer issues introduced by Dart sdk 2.7

0.1.0+1 #

  • Minor fixes

0.1.0 #

  • Initial version

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate appcenterpublisher

2. Use it

The package has the following executables:

$ appcenterpublisher
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 12, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5

Health suggestions

Format bin/main.dart.

Run dartfmt to format bin/main.dart.

Format lib/src/api/commit_upload.dart.

Run dartfmt to format lib/src/api/commit_upload.dart.

Format lib/src/api/create_upload_url.dart.

Run dartfmt to format lib/src/api/create_upload_url.dart.

Fix additional 13 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/api/distribute_to_group.dart (Run dartfmt to format lib/src/api/distribute_to_group.dart.)
  • lib/src/api/upload_binary.dart (Run dartfmt to format lib/src/api/upload_binary.dart.)
  • lib/src/api_operation_data.dart (Run dartfmt to format lib/src/api_operation_data.dart.)
  • lib/src/api_operation_data.g.dart (Run dartfmt to format lib/src/api_operation_data.g.dart.)
  • lib/src/model/distribution_group.dart (Run dartfmt to format lib/src/model/distribution_group.dart.)
  • lib/src/model/distribution_group.g.dart (Run dartfmt to format lib/src/model/distribution_group.g.dart.)
  • lib/src/model/release_info.dart (Run dartfmt to format lib/src/model/release_info.dart.)
  • lib/src/model/release_info.g.dart (Run dartfmt to format lib/src/model/release_info.g.dart.)
  • lib/src/model/run_data.dart (Run dartfmt to format lib/src/model/run_data.dart.)
  • lib/src/model/run_data.g.dart (Run dartfmt to format lib/src/model/run_data.g.dart.)
  • lib/src/parse_yaml.dart (Run dartfmt to format lib/src/parse_yaml.dart.)
  • lib/src/publish_app_command.dart (Run dartfmt to format lib/src/publish_app_command.dart.)
  • lib/src/upload_orchestrator.dart (Run dartfmt to format lib/src/upload_orchestrator.dart.)

Maintenance suggestions

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and appcenterpublisher.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.6.0 <3.0.0
args ^1.5.2 1.5.2
functional_data ^0.2.3 0.2.3
http ^0.12.0+2 0.12.0+4
http_parser ^3.1.3 3.1.3
json_annotation ^3.0.0 3.0.1
meta ^1.1.7 1.1.8
sum_types ^0.2.1 0.2.1+2
yaml ^2.2.0 2.2.0
Transitive dependencies
async 2.4.0
charcode 1.1.3
collection 1.14.12
path 1.6.4
pedantic 1.9.0
source_span 1.6.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
build_runner ^1.7.1
dependency_validator ^1.0.0
functional_data_generator ^0.2.5
json_serializable ^3.2.0
mockito ^4.1.1
sum_types_generator ^0.2.1
test ^1.9.1