Me and my Friends are creating a program and using SVN to share code. The problem is that we are using google maps in it, so we need all of us to have different API keys. For now we have commented lines of our API keys in the application, but it is annoying if someone changes that class and commits with his API.
Is there a way to tell not to commit certain lines of code to SVN?
Remove the hard-coding from your program, so that the classes are universal (and can be committed to SVN).
Instead, store the config / API key in an external config file or database. Enhance the code to load the config from wherever you’ve stored it when the application starts.
Update:
Here’s a very simple code example for creating and using a properties file: http://www.bartbusschots.ie/blog/?p=360