Android App-Bundle

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Does kony support Android App-Bundle to efficiently manage android app size? if so, please share the documentation link

https://developer.android.com/platform/technology/app-bundle

Hi

From Visualizer side there is no such option. To optimize the APK, please follow the below link to learn more about the same.

https://support.google.com/googleplay/android-developer/answer/9006925?hl=en

This answer might help.

https://basecamp.kony.com/s/question/0D52K00003h34EcSAI/steps-to-resolve-the-unoptimised-apk-warning-while-publishing-the-app-to-play-store

Hi​, the link you shared won't work since it's a private discussion. Let me tag @Joe Axwvhvm​ who can help share the info.

Thanks @Adwivn Russell​

Kony has offered app bundle generation support from "V8 SP4 Fixpack 12 GA onwards"

https://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Content/Native_App_Properties.htm#AndroidAppBundle

For older releases you can import the generated native android project into Android studio(pick latest available)

and use "Build > Generate Signed Bundle" option to generate app bundle.

Native Android project generated is available under below paths

  • For Mobile : <workspace>\temp\<appid folder>\build\luaandroid\dist\<appid folder>\
  • For Tablet : <workspace>\temp\<appid folder>\build\luatabandroid\dist\<appid folder>\

https://developer.android.com/studio/run/#reference

https://medium.com/mindorks/android-app-bundle-6c65ce8105a1

https://developer.android.com/guide/app-bundle/

Thank you. I'll go through and get back with questions, if any

#Updated with some more steps to support 32 and 64 bit simultaneously while generating app bundle

Kony has offered app bundle generation support from "V8 SP4 Fixpack 12 GA onwards"

https://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Content/Native_App_Properties.htm#AndroidAppBundle

For older releases some manual steps are needed as indicated below

1) You can import the generated native android project into Android studio(pick latest available)

and use "Build > Generate Signed Bundle" option to generate app bundle.

Native Android project generated is available under below paths

For Mobile : <workspace>\temp\<appid folder>\build\luaandroid\dist\<appid folder>\

For Tablet : <workspace>\temp\<appid folder>\build\luatabandroid\dist\<appid folder>\

https://developer.android.com/studio/run/#reference

https://medium.com/mindorks/android-app-bundle-6c65ce8105a1

https://developer.android.com/guide/app-bundle/

2) Incase you wanted to support 32 bit and 64 bit as well.

V8 SP4 Fixpack 12 GA onwards has support for the same

https://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Content/Native_App_Properties.htm#Supportfor32-bitand64-bitArchitecturesinaSingleAPK

For older releases some manual steps are needed as indicated below

a) You would need to build the kony application twice

If you need to support x86 and x86_64 bit as well enable "Support x86" option in project properties.

=> Build 32 bit application with out enabling "Support 64-bit Devices" option in project properties.

=> Build 64 bit application by enabling "Support 64-bit Devices" option in project properties.

b) Merge the libs folder from both 32 and 64 bit Native android native projects,

specifically .so files and their architecture specific folders.

Make sure sub-dependent libraries contains all the required .so files for all supported architectures.

The sub-dependent library sources could be .aar files, gradle dependencies pulled from remote repositories

and any other libraries with source locally added by making entries in settings.gradle

c) Merge the build.gradles from both 32 and 64 bit Native android native projects

importantly ndk { abiFilters } entries needs to be merged from both build.gradle files