Build instructions? #134
-
Hi, I'm thinking about contributing to this project (with code/PRs) but I'm unsure how to build the apps. I dont have that much experience with Android development, I'm coming from desktop development (Java/C++ mainly) and from there I'm familiar with the concept of Git Submodules for common modules but here the Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
If you don't need to touch anything in Commons, it's enough to just run the app in Android Studio - Commons will be fetched from Jitpack as an external dependency. However, if you'd need to do anything in Commons, you can check this commented out code in Gallery: https://github.com/FossifyOrg/Gallery/blob/master/settings.gradle.kts#L24 and do something similar in any app you're working on to utilize local copy of Commons. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. I'm planning to work on the calendar app, thinking about/trying to implement my 'old' FR, also it's a good occassion learning more about Android development anyway. :) From a brief look, it seems I also need to work in Commons so I went with your second method but got a build error, see screenshot. |
Beta Was this translation helpful? Give feedback.
-
At first I had quite a few build errors but after updating Android Studio to latest version and commenting out a few lines which caused errors (as you said) I get it to build with a local copy of Thanks a lot for your guidance. |
Beta Was this translation helpful? Give feedback.
If you don't need to touch anything in Commons, it's enough to just run the app in Android Studio - Commons will be fetched from Jitpack as an external dependency.
However, if you'd need to do anything in Commons, you can check this commented out code in Gallery: https://github.com/FossifyOrg/Gallery/blob/master/settings.gradle.kts#L24 and do something similar in any app you're working on to utilize local copy of Commons.