Arguments constructor
Arguments(})
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 variablesfilePath- Path to the file or directory to uploadbinaryType- Type of binary file for filteringrepoName- GitHub repository namerepoOwner- GitHub repository owner/organizationtoken- GitHub personal access tokenreleaseName- 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"));
}