Updated logo + added production paths for gql and firebase api.

This commit is contained in:
Patrick Fic
2020-10-07 13:49:45 -07:00
parent 619df3620f
commit 81f1168441
7 changed files with 37 additions and 27 deletions

View File

@@ -9,9 +9,17 @@ namespace BodyshopPartner.Utils
public static class AppMetaData
{
//TODO: Change firebase API Key to be dependent on what environment monitor has been set for.
public static string FirebaseAPIKey_DEV = "AIzaSyDPLT8GiDHDR1R4nI66Qi0BY1aYviDPioc";
public static string ActiveShopId = Properties.Settings.Default.LastSelectedShop;
public static string ShopRegion = "";
public static dynamic CiecaOpCodes;
#if DEBUG
public static string graphQlEndpoint = "https://bodyshop-dev-db.herokuapp.com/v1/graphql";
public static string FirebaseAPIKey = "AIzaSyDPLT8GiDHDR1R4nI66Qi0BY1aYviDPioc";
#else
public static string graphQlEndpoint = "https://db.imex.online/v1/graphql";
public static string FirebaseAPIKey = "AIzaSyDSezy-jGJreo7ulgpLdlpOwAOrgcaEkhU";
#endif
}
}

View File

@@ -12,7 +12,7 @@ namespace BodyshopPartner.Utils
{
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
public static FirebaseAuthLink authlink;
static FirebaseAuthProvider ap = new FirebaseAuthProvider(new FirebaseConfig(Utils.AppMetaData.FirebaseAPIKey_DEV)); //TODO: Update this to be a dynamic key. Perhaps a function that fetches?
static FirebaseAuthProvider ap = new FirebaseAuthProvider(new FirebaseConfig(Utils.AppMetaData.FirebaseAPIKey));
private static Timer tokenTimer = new Timer();
private static string U;
private static string P;

View File

@@ -16,7 +16,7 @@ namespace BodyshopPartner.Utils
public static GraphQLHttpClient CreateGQLClient()
{
var graphQLClient = new GraphQLHttpClient("https://bodyshop-dev-db.herokuapp.com/v1/graphql", new NewtonsoftJsonSerializer());
var graphQLClient = new GraphQLHttpClient(AppMetaData.graphQlEndpoint, new NewtonsoftJsonSerializer());
graphQLClient.HttpClient.DefaultRequestHeaders.Add("Authorization", "Bearer " + Utils.Auth.authlink.FirebaseToken);
return graphQLClient;