Android Question B4xLib and JarLib

LordZenzo

Well-Known Member
Licensed User
Longtime User
a question for @Erel
Is it possible to insert a library compiled by me in a B4xLib and expose it?
I explain the need
I create a class and would like to expose its properties without making the code editable
doing it with a B4xLib allows me to take advantage of both the Manifest file and the Files folder
 

DonManfred

Expert
Licensed User
Longtime User
b4xlib includes the Source.
If you do not want the code to be editable then compile the class to a library and publish the library. jar and xml
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
maybe the translation done with google is not clear?
I do not use Google Translate
doing it with a B4xLib allows me to take advantage of both the Manifest file and the Files folder
Compile the class to a library xy, creeate a b4xlib with the manifest and files. Reference the compiled Class in the dependson. Surely you need to publish both, b4xlib and compiled class...
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
but the references are fine for libraries that are present, it does not work for files inside the B4xLib
I wrote that you need to publish the compile class too. And the user need to copy them to the additional libs folder. You can not put them into the b4xlib

See b4xtable b4xlib as an example....
It references xclv for ex, but xclv is not included in the b4xlib file.
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
It is not possible to insert a compiled library inside B4XLib and recall it inside the B4XLib. I think @DonManfred 's answer is accurate. Only source that you can read or publish two libraries one compiled and another B4XLib which refers to the other.
 
Upvote 0

LordZenzo

Well-Known Member
Licensed User
Longtime User
just this limit I would like to overcome
for example it is possible to use or reference a jar file, I wanted to know if it is possible to reference a jar inside the b4xlib
for example
to use SQLite with b4j I put
#AdditionalJar: sqlite-jdbc-3.7.2
is it possible to use the same system with the Lib I compiled as a jar?
 
Upvote 0
Top