What is the best way to use an external library but with custom changes? For example, I am using an emoji library but I would like to change some of the emoji loading code to load 8 emojis per row instead of 10. This change would only affect 1 file and minimal code. I have tried submitting a pull request with a builder method that would set the number of emojis per row but it was rejected. I can compile the library as a aar with my custom changes and import it to my project but the original library changes quite quickly. How can I persist my custom changes AND keep up with the source repository easily?
My current process is: Rebase changes>Compile AAR>Import AAR>Discover errors>Reset custom branch to Master>Recreate the changes>Compile AAR>Works correctly!
More often than not, when the Master changes, I have to reset my branch to master and recreate the changes which is a bit time consuming.