better config handling
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:pshared/config/apply.dart';
|
||||
|
||||
|
||||
class CommonConstants {
|
||||
static String apiProto = 'https';
|
||||
static String apiHost = 'app.sendico.io';
|
||||
static String apiEndpoint = '/api/v1';
|
||||
static String amplitudeSecret = 'c3d75b3e2520d708440acbb16b923e79';
|
||||
static String amplitudeServerZone = 'EU';
|
||||
static String posthogApiKey =
|
||||
'phc_lVhbruaZpxiQxppHBJpL36ARnPlkqbCewv6cauoceTN';
|
||||
static String posthogApiKey = 'phc_lVhbruaZpxiQxppHBJpL36ARnPlkqbCewv6cauoceTN';
|
||||
static String posthogHost = 'https://eu.i.posthog.com';
|
||||
static Locale defaultLocale = const Locale('en');
|
||||
static String defaultCurrency = 'EUR';
|
||||
static int defaultDimensionLength = 500;
|
||||
static String clientId = '';
|
||||
static String wsProto = 'ws';
|
||||
@@ -38,18 +36,12 @@ class CommonConstants {
|
||||
setApiHost: (value) => apiHost = value,
|
||||
currentApiEndpoint: apiEndpoint,
|
||||
setApiEndpoint: (value) => apiEndpoint = value,
|
||||
currentAmplitudeSecret: amplitudeSecret,
|
||||
setAmplitudeSecret: (value) => amplitudeSecret = value,
|
||||
currentAmplitudeServerZone: amplitudeServerZone,
|
||||
setAmplitudeServerZone: (value) => amplitudeServerZone = value,
|
||||
currentPosthogApiKey: posthogApiKey,
|
||||
setPosthogApiKey: (value) => posthogApiKey = value,
|
||||
currentPosthogHost: posthogHost,
|
||||
setPosthogHost: (value) => posthogHost = value,
|
||||
currentDefaultLocale: defaultLocale,
|
||||
setDefaultLocale: (value) => defaultLocale = value,
|
||||
currentDefaultCurrency: defaultCurrency,
|
||||
setDefaultCurrency: (value) => defaultCurrency = value,
|
||||
currentWsProto: wsProto,
|
||||
setWsProto: (value) => wsProto = value,
|
||||
currentWsEndpoint: wsEndpoint,
|
||||
|
||||
Reference in New Issue
Block a user