Android Question B4a bundle supports gradle features ?

sadeq.hitex

Member
Licensed User
Language change is working before uploading to Google Play Store (xml method values-en, values-fr, .......)
but not after uploading to play store (in aab , not for apk).

in stackoverflow said ,use `enableSplit = false` to resolve this problem
B4X:
android {

  //... removed for brevity
  bundle {

     language {
       enableSplit = false
     }
   }
}
https://stackoverflow.com/a/54862243/12361096

Is it possible to use this function in b4a ?
 

moster67

Expert
Licensed User
Longtime User
It should be possible,at least if you are creating an App Bundle.

See this thread and in particular the last posts.
Thread 'Vitamio 5 (Version 5.2.3)' https://www.b4x.com/android/forum/threads/vitamio-5-version-5-2-3.65176/

The paramers to write are probably similar to the ones explained in this web page.
 
Upvote 1

sadeq.hitex

Member
Licensed User
Thanks for your reply.


B4X:
{
    "optimizations": {
        "splits_config": {
            "split_dimension": [
                {
                    "value": "LANGUAGE",
                    "negate": false
                }
            ]
        }
    },
    
      "compression": {
    "uncompressedGlob": [
      "**/*.3g2",
      "**/*.3gp",
      "**/*.3gpp",
      "**/*.3gpp2",
      "**/*.aac",
      "**/*.amr",
      "**/*.awb",
      "**/*.gif",
      "**/*.imy",
      "**/*.jet",
      "**/*.jpeg",
      "**/*.jpg",
      "**/*.m4a",
      "**/*.m4v",
      "**/*.mid",
      "**/*.midi",
      "**/*.mkv",
      "**/*.mp2",
      "**/*.mp3",
      "**/*.mp4",
      "**/*.mpeg",
      "**/*.mpg",
      "**/*.ogg",
      "**/*.png",
      "**/*.rtttl",
      "**/*.smf",
      "**/*.wav",
      "**/*.webm",
      "**/*.wma",
      "**/*.wmv",
      "**/*.xmf"
    ]
  }
}
is this format and code is correct or not ?
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
I don't know. I just gave that example to you since I found it while looking for my issue.
If B4A compiles without errors when generating the Abb Bundle, then that is probably a good sign.

To test if it works, you will need to upload it using the Play Console and use the internal testing feature. In this way, you can verify on your phone if it works as expected before publishing (or updating) your app.

I am sorry but that is all I can say.

Good luck
 
Upvote 0
Top