diff --git a/packages/flutter_app_publisher/lib/src/publishers/playstore/app_package_publisher_playstore.dart b/packages/flutter_app_publisher/lib/src/publishers/playstore/app_package_publisher_playstore.dart index ab099de8..6927845c 100644 --- a/packages/flutter_app_publisher/lib/src/publishers/playstore/app_package_publisher_playstore.dart +++ b/packages/flutter_app_publisher/lib/src/publishers/playstore/app_package_publisher_playstore.dart @@ -51,12 +51,8 @@ class AppPackagePublisherPlayStore extends AppPackagePublisher { uploadMedia: uploadMedia, ); - await publisherApi.edits.commit( - publishConfig.packageName, - appEdit.id!, - ); - if (publishConfig.track != null) { + //must update track before edit commit. await publisherApi.edits.tracks.update( Track(track: publishConfig.track), publishConfig.packageName, @@ -65,6 +61,11 @@ class AppPackagePublisherPlayStore extends AppPackagePublisher { ); } + await publisherApi.edits.commit( + publishConfig.packageName, + appEdit.id!, + ); + return PublishResult( url: '', );