Android Question B4a 3.8 Beta Shared Code Modules

stevel05

Expert
Licensed User
Longtime User
As part or testing I made a shared code module read only, the IDE gave the expected error messages, but the code complied and ran.

It feels right to be able to make the shared modules read only so you don't inadvertently change it while working on one app and make it unusable for others.

But I'm not sure of the knock on's, or how it would be correctly integrated.
 

stevel05

Expert
Licensed User
Longtime User
I was thinking more along the lines of trying to avoid the situation where code could be amended in the shared module, then 3 weeks later compiling a different project that also uses the shared code that won't work anymore.

I know it's down to developers to manage their own code, but being able to plug these potential holes would be useful.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Shared modules can be used instead of compiled libraries in many cases.

However there are cases that a compiled library might be more suitable. Consider HttpUtils2 for example. It is made of two modules and depends on other libraries as well. It is easier to add it as a library with a single click.
 
Upvote 0
Top