B4J Question [SOLVED] Single B4XLib handling libraries jOkHttpUtils2 & jOkHttpUtils2_NONUI

rwblinn

Well-Known Member
Licensed User
Longtime User
Developing the library CCUXML2Map.b4xlib which uses the libraries jOkHttpUtils2 & jOkHttpUtils2_NONUI depending client UI or console.

The library has a single class module CCUXML2Map.bas which covers both UI and NONUI - the only difference is the library jOkHttpUtils2 or jOkHttpUtils2_NONUI.

So far created two CCUXML2Map.b4xlib libraries: CCUXML2Map.b4xlib and CCUXML2Map_NONUI.b4xlib with same class module (shared, CCUXML2Map.bas)

Not sure how to create a single b4xlib with both jOkHttpUtils2 & jOkHttpUtils2_NONUI libraries to then pick the right library depending UI or NONUI application?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Answer is simple: never use jOKHttpUtils2_NONUI.

1614521082855.png


jOkHttpUtils2_NONUI is identical to jOkHttpUtils2, just with a longer name.
 
Upvote 0
Top