This commit is contained in:
2022-08-17 01:04:31 +00:00
parent 938c57f9a9
commit 7d2076d1c7

View File

@@ -1,3 +1,4 @@
#define DEVELOPMENT_TEST_ROCKFISH
using System;
using System.Text;
using System.Threading.Tasks;
@@ -28,18 +29,29 @@ namespace AyaNova.Core
internal static class License
{
//License server addresses
// private const string LICENSE_SERVER_URL_ROCKFISH = "https://rockfish.ayanova.com/";
#if (DEVELOPMENT_TEST_ROCKFISH)
private const string LICENSE_SERVER_URL_ROCKFISH = "http://localhost:3001/";
#warning FYI DEVELOPMENT_TEST_ROCKFISH is defined
#else
private const string LICENSE_SERVER_URL_ROCKFISH = "https://rockfish.ayanova.com/";
#endif
//CRITICAL PROBLEM IF THIS IS TRUE
#if(DEVELOPMENT_TEST_ROCKFISH && !DEBUG)
#error ### HOLDUP: DEVELOPMENT_TEST_ROCKFISH is defined in a RELEASE BUILD!!!!
#endif
private const string LICENSE_SERVER_URL_IO = "https://io.ayanova.com/";
private const string LICENSE_SERVER_URL_EUROPA = "https://europa.ayanova.com/";
private const string LICENSE_SERVER_URL_CALLISTO = "https://callisto.ayanova.com/";
// #if (DEBUG)
// private const string LICENSE_SERVER_URL = "http://localhost:3001/";
// #else
// private const string LICENSE_SERVER_URL = "https://rockfish.ayanova.com/";
// #endif
//Unlicensed token
private const string UNLICENSED_TOKEN = "UNLICENSED";
@@ -58,7 +70,7 @@ namespace AyaNova.Core
//This feature name means it's a trial key
private const string TRIAL_FEATURE_NAME = "TrialMode";
//Current license key, can be empty
private static AyaNovaLicenseKey _ActiveLicense = new AyaNovaLicenseKey();