Upload Projects to GitHub

xulihang

Well-Known Member
Licensed User
Longtime User
Hi there,

I have the habit to upload projects onto GitHub. I think open-sourcing is good for expanding the impact of B4X.

Here are some thoughts and problems I meet which I would like to share with you.

1. I use .gitignore to avoiding adding unnecessary files.

B4X:
*.meta
Objects
AutoBackups

But there are still meta data in the b4a/b4j/b4i files like file order being tracked.

2. Git will ignore empty folders. So if I created a B4Xpages project and manage it with Git, the Shared Files folder may be omitted if it is empty. Then the CustomBuildAction will fail if other users git clone the project.

3. GitHub does not recognize B4X. It detects the code file as Visual Basic source code files.
 

aeric

Expert
Licensed User
Longtime User
We can add a dummy text file into the empty folder right?
 

LWGShane

Well-Known Member
Licensed User
Longtime User
1. I use .gitignore to avoiding adding unnecessary files.

I use the following gitignore and it works perfectly with B4X.

B4X:
#Directories:
!**/Objects/res
**/Objects
**/AutoBackups
#Files:
*.ipa
*.dex
*.jar
*.apk


Notes:
  • The "!" means that I tell git to not ignore the "/Objects/res" folder in B4A projects.)
  • The double asterisk ("**") tells git to look for those items anywhere in the file structure. (So I can put the .gitignore file in the root folder, including B4XPages projects.)
  • The pound/hashtag symbol ("#") are comments.
 

AnandGupta

Expert
Licensed User
Longtime User

xulihang

Well-Known Member
Licensed User
Longtime User

xulihang

Well-Known Member
Licensed User
Longtime User
Top