B bridge1 Member Feb 3, 2022 #1 We have made a B4A library, but we would like to expose only 1 class with its public methods. We have eliminated from the XML file all the classes NOT to expose, and the visibility is correct for the application that should use it. This is the problem: using the library does NOT work, because the exposed methods call classes in the library which are NOT visible. How can we proceed ? Thank you
We have made a B4A library, but we would like to expose only 1 class with its public methods. We have eliminated from the XML file all the classes NOT to expose, and the visibility is correct for the application that should use it. This is the problem: using the library does NOT work, because the exposed methods call classes in the library which are NOT visible. How can we proceed ? Thank you
Erel B4X founder Staff member Licensed User Longtime User Feb 4, 2022 #2 The library code has nothing to do with the XML. The problem is somewhere else. Upvote 0
agraham Expert Licensed User Longtime User Feb 4, 2022 #3 bridge1 said: the library does NOT work, because the exposed methods call classes in the library which are NOT visible. Click to expand... Like Erel said, this is not the problem. If you want to post the code I can try compiling it for you. Upvote 0
bridge1 said: the library does NOT work, because the exposed methods call classes in the library which are NOT visible. Click to expand... Like Erel said, this is not the problem. If you want to post the code I can try compiling it for you.
B bridge1 Member Feb 11, 2022 #4 It would appear that the problem is removing the static classes from the XML file. Attached example of library project with complete XML, and with removal of the classes not used in the main program. Thanks. Attachments Test72_Library_HiddenClass_byXML_error.zip 5 KB · Views: 117 Upvote 0
It would appear that the problem is removing the static classes from the XML file. Attached example of library project with complete XML, and with removal of the classes not used in the main program. Thanks.
Erel B4X founder Staff member Licensed User Longtime User Feb 13, 2022 #5 Not enough information here. Post the full error message. Post a small project that reproduces it. Upvote 0