hiding/cloaking variables so they dont show up in git commits, etc
in
Programming Questions
•
2 years ago
so i have a sketch that uses the twitter api and there are 4 keys that make the program work.
declarations at the beginning of the sketch like
i'd love to be able to regularly check in the program to a public repository without manually stripping the keys each time.
in C, i might use a #define statement and put the keys in a .h file that doesn't get checked in.
is there something similar in processing or java?
thanks,
dan
declarations at the beginning of the sketch like
- static String OAuthConsumerKey = "asdkjalsfovnakldjsnvk@#42398hwf"
i'd love to be able to regularly check in the program to a public repository without manually stripping the keys each time.
in C, i might use a #define statement and put the keys in a .h file that doesn't get checked in.
is there something similar in processing or java?
thanks,
dan
1