#!/bin/bash # Bash script to set Google Maps API key environment variable # Usage: ./set-api-key.sh your_actual_api_key_here if [ $# -eq 0 ]; then echo "Usage: $0 " echo "Example: $0 AIzaSyYourActualApiKeyHere" exit 1 fi API_KEY="$1" # Set the environment variable for the current session export GoogleMapsApiKey="$API_KEY" echo "Google Maps API Key set to: $API_KEY" echo "You can now build the app with: dotnet build -f net9.0-android" echo "" echo "Note: This environment variable is only set for the current session." echo "To make it permanent, add this line to your ~/.bashrc or ~/.zshrc:" echo "export GoogleMapsApiKey=\"$API_KEY\""