Remove keys.dart, update workflow

This commit is contained in:
stopflock
2025-10-08 10:42:31 -05:00
parent 02f3cb0077
commit afa0ff94b2
2 changed files with 10 additions and 1 deletions

View File

@@ -1,33 +0,0 @@
// OpenStreetMap OAuth client IDs for this app.
//
// NEVER commit real secrets to public repos. For open source, use keys.dart.example instead.
import 'dart:io';
// Fallback client IDs for local development - replace with your own if building locally
const String _kOsmProdClientIdFallback = ''; // Put your fallback production client ID here
const String _kOsmSandboxClientIdFallback = ''; // Put your fallback sandbox client ID here
// Get client IDs from environment variables first, then fallback to constants
String get kOsmProdClientId {
final envValue = Platform.environment['OSM_PROD_CLIENTID'];
if (envValue != null && envValue.isNotEmpty) {
return envValue;
}
if (_kOsmProdClientIdFallback.isNotEmpty) {
return _kOsmProdClientIdFallback;
}
throw Exception('OSM Production Client ID not configured. Set OSM_PROD_CLIENTID environment variable or configure fallback in keys.dart');
}
String get kOsmSandboxClientId {
final envValue = Platform.environment['OSM_SANDBOX_CLIENTID'];
if (envValue != null && envValue.isNotEmpty) {
return envValue;
}
if (_kOsmSandboxClientIdFallback.isNotEmpty) {
return _kOsmSandboxClientIdFallback;
}
throw Exception('OSM Sandbox Client ID not configured. Set OSM_SANDBOX_CLIENTID environment variable or configure fallback in keys.dart');
}