#!/usr/bin/env bash

echo "Inject Google Maps API Keys"
pwd

perl -pi -e 's/\$\(SolutionDir\)/../g' ./XFGoogleMapSample.Droid.csproj
perl -pi -e 's/\$\(SolutionDir\)/../g' ../XFGoogleMapSample/XFGoogleMapSample.csproj

#!/usr/bin/env bash

echo "Replace $(SolutionDir) to .. in .csproj"
perl -pi -e 's/\$\(SolutionDir\)/../g' ./XFGoogleMapSample.Droid.csproj
perl -pi -e 's/\$\(SolutionDir\)/../g' ../XFGoogleMapSample/XFGoogleMapSample.csproj

echo "Inject Google Maps API Keys"
perl -pi -e 's/your_google_maps_android_api_v2_api_key/$GOOGLEMAPS_ANDROID_API_KEY/g' ../XFGoogleMapSample/Variables_sample.cs

Add API key injection to script
Add API key injection to script
