You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fluffychat/lib/pangea/config/environment.dart

79 lines
2.1 KiB
Dart

import 'package:flutter_dotenv/flutter_dotenv.dart';
class Environment {
static bool get itIsTime =>
DateTime.utc(2023, 1, 25).isBefore(DateTime.now());
static String get fileName {
return ".env";
}
static bool get isStaging => synapsURL.contains("staging");
static String get baseAPI {
return dotenv.env["BASE_API"] ?? 'BASE API not found';
}
static String get frontendURL {
return dotenv.env["FRONTEND_URL"] ?? "Frontend URL NOT FOUND";
}
static String get synapsURL {
return dotenv.env['SYNAPSE_URL'] ?? 'Synapse Url not found';
}
static String get homeServer {
return dotenv.env["HOME_SERVER"] ?? 'Home Server not found';
}
static String get choreoApi {
// return "http://localhost:8000/choreo";
return dotenv.env['CHOREO_API'] ?? 'Not found';
}
static String get choreoApiKey {
return dotenv.env['CHOREO_API_KEY'] ??
'e6fa9fa97031ba0c852efe78457922f278a2fbc109752fe18e465337699e9873';
}
//Question for Jordan - does the client ever pass this to the server?
static String get googleAuthKey {
return dotenv.env['GOOGLE_AUTH_KEY'] ??
'466850640825-qegdiq3mpj3h5e0e79ud5hnnq2c22mi3.apps.googleusercontent.com';
}
static String get sentryDsn {
return dotenv.env["SENTRY_DSN"] ??
'https://c2fd19ab2cdc4ebb939a32d01c0e9fa1@o225078.ingest.sentry.io/1376295';
}
static String get rcProjectId {
return dotenv.env["RC_PROJECT"] ?? 'a499dc21';
}
static String get rcKey {
return dotenv.env["RC_KEY"] ?? 'sk_eVGBdPyInaOfJrKlPBgFVnRynqKJB';
}
static String get rcGoogleKey {
return dotenv.env["RC_GOOGLE_KEY"] ?? 'goog_paQMrzFKGzuWZvcMTPkkvIsifJe';
}
static String get rcIosKey {
return dotenv.env["RC_IOS_KEY"] ?? 'appl_DUPqnxuLjkBLzhBPTWeDjqNENuv';
}
static String get rcStripeKey {
return dotenv.env["RC_STRIPE_KEY"] ?? 'strp_YWZxWUeEfvagiefDNoofinaRCOl';
}
static String get rcOfferingName {
return dotenv.env["RC_OFFERING_NAME"] ?? 'default';
}
static String get stripeManagementUrl {
return dotenv.env["STRIPE_MANAGEMENT_LINK"] ??
'https://billing.stripe.com/p/login/dR6dSkf5p6rBc4EcMM';
}
}