Arguments constructor

Arguments(
  1. Variables variables, {
  2. required String filePath,
  3. required String binaryType,
  4. required String repoName,
  5. required String repoOwner,
  6. required String token,
  7. required String releaseName,
  8. String releaseBody = "",
})

Creates a new GitHub Releases publisher arguments instance.

Initializes GitHub-specific configuration for automated app distribution through repository releases. Sets up API client and authentication for GitHub operations.

Required parameters:

  • variables - System and environment variables
  • filePath - Path to the file or directory to upload
  • binaryType - Type of binary file for filtering
  • repoName - GitHub repository name
  • repoOwner - GitHub repository owner/organization
  • token - GitHub personal access token
  • releaseName - Release name/tag

Example:

final args = Arguments(
  variables,
  filePath: '/path/to/app.apk',
  binaryType: 'apk',
  repoOwner: 'flutter-org',
  repoName: 'my-app',
  token: 'ghp_xxxxxxxxxxxxxxxxxxxx',
  releaseName: 'v1.0.0',
  releaseBody: 'Initial release',
);

Implementation

Arguments(
  Variables variables, {
  required super.filePath,
  required super.binaryType,
  required this.repoName,
  required this.repoOwner,
  required this.token,
  required this.releaseName,
  this.releaseBody = "",
}) : super("github", variables) {
  _dio = Dio(BaseOptions(baseUrl: "https://api.github.com"));
}