uploadToPlayStore static method
Implementation
static Future<void> uploadToPlayStore(String artifactPath) async {
final config = FlutterReleaseXConfig().config;
final playStoreConfig = config.uploadOptions.playStore;
if (!playStoreConfig.enabled) {
return;
}
FlutterReleaseXHelpers.showLoading('π± Uploading to Google Play Store...');
final result =
await FlutterReleaseXPlayStoreUploadService.uploadToPlayStore(
artifactPath);
FlutterReleaseXHelpers.stopLoading();
if (result != null) {
print('β
Successfully uploaded to Google Play Store!');
print('π Release: $result');
} else {
print('β Failed to upload to Google Play Store.');
}
}