I have a Xamarin Forms app which is being built using App Center. The app contains some code that looks like:
var secret= "secretvaluegoeshere";
I then use the secret to communicate with an API. Now I want to extract that secret from code so as not to having it in source control and inject it when building on App Center. Environment Variables seem like they should solve this very problem but the examples in the docs don't mention how they can get into code (only nuget and gradle config). Is there a way to do what I want with Environment Variables or should I be doing this another way?