5/31/2023 0 Comments Android studio git push![]() ![]() I will keep updating this thread if I have missed some part, for any major updates or changes I will make a separate blog. Like all things in git, the learning curve is steep but there are immense possibilities to get out of it once we get the basic concepts. Only after that we can add the changes and reflect them in parent module. after commiting changes in submodules we must push them. ![]() Failure to do this may lead to HEAD detached. always explicitely checkout to a branch in a submodule in git. ![]() It is super easy to maintain all 4 repositories. Hopefully this integration was proper and meaningful. Then in Android Studio File->Project Structure->app->add a new module and give the path to android_gisapp. So the project modules in PDM will look like That way we can change the submodules as we are developing PDM. ![]() I decided to keep my fork of android_gisapp as a module in our PDM app. The alternative was to compile the android_gisapp as a library and include the aar file in dependency. I realised we cannot use an apk as a dependency in android project and it supports only jar and aar dependencies as of now. This was the part in which I was stuck the most. Changing the submodules in my fork of android_gisapp to point to my forks of maplib and maplibui was simple, just change the path in. However for our research work we needed to change some core features of android_gisapp and soon realised it will be better to keep my own forks of maplib and maplibui.Īt this point it is better to get acquainted with submodules in git, the best blog which I could find is here. And voila, git clones the required submodules into android_gisapp and we are good to go. ![]()
0 Comments
Leave a Reply. |