uploadToAppStore static method

Future<void> uploadToAppStore(
  1. String artifactPath
)

Implementation

static Future<void> uploadToAppStore(String artifactPath) async {
  final config = FlutterReleaseXConfig().config;
  final appStoreConfig = config.uploadOptions.appStore;

  if (!appStoreConfig.enabled) {
    return;
  }

  FlutterReleaseXHelpers.showLoading('🍎 Uploading to App Store...');
  final result = await FlutterReleaseXAppStoreUploadService.uploadToAppStore(
      artifactPath);
  FlutterReleaseXHelpers.stopLoading();

  if (result != null) {
    print('✅ Successfully uploaded to App Store!');
    print('🔗 Version: $result');
  } else {
    print('❌ Failed to upload to App Store.');
  }
}