Code Monkey home page Code Monkey logo

Comments (4)

andydotxyz avatar andydotxyz commented on September 7, 2024

The alignment is done when we call the "zipalign" tool which is part of the SDK, so the zip install should not make any difference.
Are you able to check the zip align boundary for the .apk file that was generated?

You can get tips on checking here https://developer.android.com/tools/zipalign

from fyne.

Callial avatar Callial commented on September 7, 2024

Ok so I figured it out, it is zipaligning properly, but I mistakenly assumed it was zipaligning both the .apk generated by the command and the apk bundled in the aab. And as such during my testing I was not extracting the .apk from the .aab and instead I was just using the generated .apk When the apk told me that it was not zipaligned, I mistakenly assumed that meant that both apks would not be zipaligned.

tldr: .aab is generated and the internal apk is zipaligned properly, but the .apk generated is the apk before zipaligning

from fyne.

andydotxyz avatar andydotxyz commented on September 7, 2024

Oh, does this mean we are leaving a temporary file lying around? the .apk output should be created by "fyne package" and the .aab is by "fyne release".
A released Android app (.aab) is for upload to Google Play only and should not be tested locally - that is what the package command is for.

from fyne.

Callial avatar Callial commented on September 7, 2024

It appears to be that way, I only wanted to make sure it worked properly since it was my first time using the command and the last time I attempted to release an android app years ago I struggled with the signing process. Since it gives me both an apk and an aab, I figured it would be fine to test before uploading and that is where I went wrong I guess lol. But yeah I just deleted both files and ran just the release command again and it 100% generates both without deleting the apk after zipaliging and bundling.

from fyne.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.