
You may consider not to share the following:
In IDEA 13 and earlier dataSources.ids, datasources.xml can contain database passwords. Android artifacts that produce a signed build (will contain keystore passwords). iml module files that can be located in different module directories (applies to IntelliJ IDEA) idea directory in the project root except the workspace.xml and tasks.xml files which store user specific settings
This format is used by all the recent IDE versions by default. Here is the definitive source from JetBrainsĭirectory based project format (.idea directory) If, on the other hand, you are using a third party library that includes these files, you may wish to remove these lines (*.o and *.so) from your. # built native files (uncomment if you build your own)Īlso note that as pointed out, the built native files section is primarily useful when you are building your own native code with the Android NDK. gitignore, and after reading through documentation on the Intellij IDEA website and reading posts on StackOverflow, I have constructed the following file: # built application files
Updated answer according to attached source and suggestionsīuilding on my normal Android. If your project is based on Gradle: in the new open/import dialog, you should check the use auto import checkbox and mark the use default gradle wrapper (recommended) radio button. Since version 0.3+ it seems you can commit and push *. This file should be located in the projects root folder and not inside the projects module folder. Since Android Studio 2.2 and up to 3.0, new projects are created with this gitignore file: *.imlĭeprecated – for older project format, add this section to your gitignore file:
#.idea/workspace.xml - remove # and delete. # Local configuration file (sdk path, etc) So, heres our gitignore file: #built application files gitignore for an Android Studio project?Ī late answer but this alternative answer was not right for us …