-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage of git submodules #3
Comments
Hi and sorry for the delay! I have to learn more about git submodules ... For now, I would propose to use not head but 100 tags of all libs. They will not change. I will always keep versions 100 up to date with the latest stable release for F-Droid. This means we should replace these 4 links: Best regards, |
This would not really solve it, because you still can't build it really reproducible. If I then want to build an old version I won't know which version of the libs to select. I would really suggest you to take a look on |
Hi, this "7.11 Git Tools - Submodules Here it has even better explanation: https://docs.gitlab.com/ee/ci/git_submodules.html Thanks for this recommendation and hint! I will implement it, hopefully soon ... then I will update you here. Best regards, |
Hi I have created this file: https://github.com/MetatransApps/Android_APK_2DGravity/blob/master/.gitmodules |
This did not quite work. Better use the |
Hi and sorry for the delay. |
You have to change into the folder of the submodule and type |
Hi, I made these changes. I am not sure whether this is correct. |
Seems like you only added commit to Android_LIB_Commons after the 100 tag |
Hi, this is what I tried for 1 dependency (Android_LIB_CommonsAds): C:\AndroidStudio\workspace\Android_APK_2DGravity\Android_LIB_CommonsAds> but then I don't see any changes in GitHub Desktop app ... Best regards, |
You need to |
I do "cd ..." as well, but still nothing appears in my desktop app as change ... I am stuck here. ;-( |
It does not change anything, because you did not commit anything after tag 100 in all dependencies except |
Hi and thanks for the reply! |
You actually use the submodules like git repos. But the version you checked out will be noted inside the parent repo. By that you are able to pin those submodules to a specific version when you release a new version/tag, so that if someone builds the app off a specific tag (like we do over at F-Droid), they will get the same result as you building it during the release. |
To be honest, it was a big mess on my side, regarding versioning, before uploading everything to git. I made it a few months ago, when starting to work with F-Droid. Do I need to create new release with this 'git checkout 100' command included? |
Sorry for letting you wait that long, seems like I have missed your reply.
Yes that would be the best option and please also do the same with your other apps. |
Hi, no worries, I forgot everything I have done with git submodules but now I will remember the right way and will do it from scratch for all games. :-) |
Hm, what about the gradle scripts I have now. Will they work the same way after I made this changes with submodules? Maybe they also have to be changed. The gradle files are auto generated from Android Studio. When we are done with the submodules, I will connect Android Studio with git and I assume it will recognize submodules and will regenerate the gradle script, so hopefully this will not be an issue. |
Hi @jugendhacker jugendhacker, UPDATE1: I have added one last commit to this test repo. UPDATE2: Here is my script which do it: cd Android_APK_2DGravity_submodules git submodule add https://github.com/MetatransApps/Android_LIB_Commons
cd Android_LIB_Commons
|
Hi there, I am very happy to share that the new version 110 of the Gravity game is now available on F-Droid! Best regards, |
As the current status with the dependency repos is pretty much complicated (especially for F-Droid), I would suggest to use git submodules to fix specific versions of the dependency repos that should be pulled for build the app or at least state in the repo which exact tag is needed to build a version of Gravity Play, so we could use sourcelibs on the F-Droid side.
The text was updated successfully, but these errors were encountered: