Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can .aab be supported in addition to apk? #100

Open
dinghaoz opened this issue May 31, 2021 · 6 comments
Open

Can .aab be supported in addition to apk? #100

dinghaoz opened this issue May 31, 2021 · 6 comments

Comments

@dinghaoz
Copy link

No description provided.

@dinghaoz dinghaoz closed this as completed Jun 4, 2021
@Rileyp33
Copy link

@dinghaoz did you solve for uploading an AAB instead of an APK?

@brookse
Copy link

brookse commented May 10, 2022

@dinghaoz @Rileyp33 any update on uploading an AAB? I'm running into this now.

@joshdholtz
Copy link
Member

@brookse Heyyy!! 😁 The bad part about AAB is that they can't be sideloaded as easy an as APK. The AAB is more of a raw asset kind of thing that Google Play turns into different APKs versions when requested by devices.

So, something like https://play.google.com/store/apps/details?id=com.aefyr.sai&hl=en&gl=US needs to be installed on the client device in order to turn the AAB into an APK that can be installed 🤷‍♂️

It's probably recommended to upload an APK if you can but... I can look into an AAB upload if that doesn't work with the current features in this plugin 💪

@joshdholtz joshdholtz reopened this May 10, 2022
@brookse
Copy link

brookse commented May 12, 2022

@joshdholtz Hiya 👋 💜

Gotcha. One of my clients wants to submit aabs instead of apks to the Play store for a number of reasons (the biggest one is wanting to use Google's compression stuff so that the build is smaller, but also any new apps are required to be an aab, so I imagine it might bottleneck others), so it feels a little weird doing multiple builds (bundle & assemble) and delivering the assemble to s3 for testing and delivering the bundle to Play.

Is there an easy(ish) way to extract an apk to send up to s3, or something else you might recommend? My assumption is that even using another storage service like Dropbox won't work, since the aab can't be directly installed anyways.

@Aure77
Copy link
Contributor

Aure77 commented Apr 11, 2023

As workaround, I use files to upload aab on S3 (this format is now mandatory on Play Store since august 2021):

  aws_s3(
    ...
    files: lane_context[SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS],
  )

But I can't use version interpolation in path (https://github.com/fastlane-community/fastlane-plugin-s3/blob/master/lib/fastlane/plugin/aws_s3/actions/aws_s3_action.rb#L480)

@anthony3444
Copy link

Hi there! I use this setup but I can't upload any AAB files:

       ```
        upload_files = Array.new
        
        # Add file(s) to the array
        for file in lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS] do
            upload_files.push(file)
        end
        
        for file in lane_context[SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS] do
            upload_files.push(file)
        end
    
        aws_s3(
            access_key: options[:S3_ACCESS_KEY], 
            secret_access_key: options[:S3_SECRET_ACCESS_KEY],
            bucket: options[:S3_BUCKET],
            region: options[:S3_REGION],
            acl: '',
            files: upload_files)   
For APK files, there is no problem. But for AAB files it doesn't work:

`No IPA, APK file, folder or files paths given, pass using ipa: 'ipa path' or apk: 'apk path' or folder: 'folder path' or files: [file path1`, file path 2]`

Could you help me guys please?

Thank you very much,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants