3

The build.gradle (app) file contains the app's keystore location and password. So I wonder, if I should include those in a public GitHub repository or not?

My guess would be 'no', and if so, how might I go about this problem? Can I somehow censor it or should I simply not include the files in the commits?

If I should leave them from the commit, how can I solve the problem with pulling the project because the file would be missing?

René Jörg Spies
  • 1,544
  • 1
  • 10
  • 29

2 Answers2

5

In the build.gradle file there is all the configuration for your android project.
Without this file it is impossible to build the project.

Then yes, you have to include it in the git repo.

But you can move all the sensitive data like keystore location and password, out of build.gradle.

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
0

Maybe this link help you and also write the files or folders that you don't want to push in your remote repository in .gitignore file.for example, look at this link

arman balash
  • 57
  • 1
  • 4