android-play-publisher-api icon indicating copy to clipboard operation
android-play-publisher-api copied to clipboard

Support for Android App Bundle

Open rakeshgirase opened this issue 5 years ago • 5 comments

Add example for uploading aab file to playstore.

rakeshgirase avatar Jun 11 '19 15:06 rakeshgirase

When I try to upload a .aab file I get this error.

  File "/Users/XYZ/Library/Python/2.7/lib/python/site-packages/googleapiclient/discovery.py", line 814, in method
    raise UnacceptableMimeTypeError(media_mime_type)
googleapiclient.errors.UnacceptableMimeTypeError: application/x-authorware-bin

vashisthg avatar Jul 23 '19 17:07 vashisthg

You can try https://github.com/rakeshgirase/app-release-manager. This is a java project but on similar lines you can do a python one.

rakeshgirase avatar Aug 12 '19 09:08 rakeshgirase

@rakeshgirase managed to get this done by editing the upload call to include mime type:

+    service.edits().bundles().upload(
       editId=edit_id,
       packageName=package_name,
       media_body=apk_file,
+      media_mime_type="application/octet-stream"
).execute()

mujavidb avatar Nov 14 '19 11:11 mujavidb

Any updates on this?

redixhumayun avatar Feb 08 '20 11:02 redixhumayun

@redixhumayun you can use this library

osfunapps avatar Feb 09 '21 14:02 osfunapps