version: 1.01
This project template can be use for starting a B4X class library project.
The project also contains a Demo folder which contains B4XPages projects and a Server project that already linked to the library's class using relative path.
GitHub: https://github.com/pyhoon/B4X-Library-Template
* I learned that the project generated from template is following alphabetical order. It means if use "Test" folder instead of "Demo", once the new project is created, it will open the project inside "Server" folder. I don't want this to happen, so I renamed it to "Demo". Then the project will be loaded from "Lib" folder. This is the actual project we expect to work with.
* Another thing is $APPNAME$ works with this unusual project structure. The project created using this template will named according to the name that the developer entered when create a new project from menu File -> New -> B4X Library.
How to use:
This project template can be use for starting a B4X class library project.
The project also contains a Demo folder which contains B4XPages projects and a Server project that already linked to the library's class using relative path.
GitHub: https://github.com/pyhoon/B4X-Library-Template
* I learned that the project generated from template is following alphabetical order. It means if use "Test" folder instead of "Demo", once the new project is created, it will open the project inside "Server" folder. I don't want this to happen, so I renamed it to "Demo". Then the project will be loaded from "Lib" folder. This is the actual project we expect to work with.
* Another thing is $APPNAME$ works with this unusual project structure. The project created using this template will named according to the name that the developer entered when create a new project from menu File -> New -> B4X Library.
How to use:
- Download attached B4X Library.b4xtemplate and drop it to Additional Libraries/B4J
- Create a project from B4J from menu File -> New -> B4X Library.
- The project in "Lib" folder will be opened.
- Develop your library.
- Once you are happy with it, test whether it also works for B4XPages UI (B4A, B4i, B4J) and Server projects inside the "Demo" folder.
- Change the LICENSE file if you like.
- Use #Macro: Title, Update Version with manifest-writer.jar to write the manifest.txt file.
- Use #Macro: Title, Create B4xLib to package your library. The YourLib.b4xlib will be created inside your project folder.
- Use #Macro: Title, Copy to B4X AddLibs to copy the library to the Additional Libraries/B4X folder.
- Share your library with the community.
Attachments
Last edited: