M Markos Well-Known Member Licensed User Longtime User Apr 2, 2017 #1 Hi All, When I create a library which imports libraries for needed functions and I deploy my Library, do I need to explicitly include those 3rd party libraries or they will be included automatically from my library? Thinking in terms of B4a/B4i IDE
Hi All, When I create a library which imports libraries for needed functions and I deploy my Library, do I need to explicitly include those 3rd party libraries or they will be included automatically from my library? Thinking in terms of B4a/B4i IDE
DonManfred Expert Licensed User Longtime User Apr 2, 2017 #2 Theywill not be included in your library. Upvote 0
M Markos Well-Known Member Licensed User Longtime User Apr 2, 2017 #3 So if someone uses my library they will have to re declare them in their B4X project explicitly? Or there is a reference within my library which their project inherits so they dont have to state ot in their library teference list project wise? Upvote 0
So if someone uses my library they will have to re declare them in their B4X project explicitly? Or there is a reference within my library which their project inherits so they dont have to state ot in their library teference list project wise?
Erel B4X founder Staff member Licensed User Longtime User Apr 2, 2017 #4 You should use @DependsOn to tell the compiler that your library depends on other jars or aar files. The references will be added automatically whenever someone checks your library in the libraries list. Upvote 0
You should use @DependsOn to tell the compiler that your library depends on other jars or aar files. The references will be added automatically whenever someone checks your library in the libraries list.
M Markos Well-Known Member Licensed User Longtime User Apr 2, 2017 #5 Hi Erel Thanks a mil for that suggestion. Do you have an example of the DependsOn syntax and is that to be put in the manifest area of the project? Upvote 0
Hi Erel Thanks a mil for that suggestion. Do you have an example of the DependsOn syntax and is that to be put in the manifest area of the project?
M Markos Well-Known Member Licensed User Longtime User Apr 2, 2017 #6 Markos said: Hi Erel Thanks a mil for that suggestion. Do you have an example of the DependsOn syntax and is that to be put in the manifest area of the project? Click to expand... Hi Erel I forgot to mention I am creating the library purely from B4X. Will the @dependson be easy to implement using the b4x IDE environment? If not Im cool with letting my Demo App state the dependent libraries Upvote 0
Markos said: Hi Erel Thanks a mil for that suggestion. Do you have an example of the DependsOn syntax and is that to be put in the manifest area of the project? Click to expand... Hi Erel I forgot to mention I am creating the library purely from B4X. Will the @dependson be easy to implement using the b4x IDE environment? If not Im cool with letting my Demo App state the dependent libraries
M Markos Well-Known Member Licensed User Longtime User Apr 3, 2017 #7 Markos said: Hi Erel I forgot to mention I am creating the library purely from B4X. Will the @dependson be easy to implement using the b4x IDE environment? If not Im cool with letting my Demo App state the dependent libraries Click to expand... The @DependsOn is if Im using eclipse to compile using Java as the source correct? So as Im using pure B4A IDE to produce source and compiling using B4A IDE. What are my options if any to have the required libraries referenced automatically or notify users these are library depencies? If there is no way to do such would you recommend my Demo app which shows how to use the new lib to highlight the included support libs in the b4a project file? Secondly is there future plans to put in the manifest if not currently available, to include jar's or xml's that we currently select via the IDE only in B4a and B4i? Upvote 0
Markos said: Hi Erel I forgot to mention I am creating the library purely from B4X. Will the @dependson be easy to implement using the b4x IDE environment? If not Im cool with letting my Demo App state the dependent libraries Click to expand... The @DependsOn is if Im using eclipse to compile using Java as the source correct? So as Im using pure B4A IDE to produce source and compiling using B4A IDE. What are my options if any to have the required libraries referenced automatically or notify users these are library depencies? If there is no way to do such would you recommend my Demo app which shows how to use the new lib to highlight the included support libs in the b4a project file? Secondly is there future plans to put in the manifest if not currently available, to include jar's or xml's that we currently select via the IDE only in B4a and B4i?
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2017 #8 You can use #AdditionalJar to reference external libraries. The references will be added to the generated XML file (open it and you will see). Upvote 0
You can use #AdditionalJar to reference external libraries. The references will be added to the generated XML file (open it and you will see).