| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import 'package:flutter_screenutil/flutter_screenutil.dart';
- import '../../utils/mmkv_util.dart';
- class Constants {
- Constants._();
- static const String env = envProd;
- static const String envDev = 'dev';
- static const String envTest = 'test';
- static const String envProd = 'prod';
- static const String _devBaseUrl = "http://192.168.10.230:8880";
- static const String _testBaseUrl = "http://42.193.245.11";
- static const String _prodBaseUrl = "https://project-api.atmob.com";
- static const String privacyPolicy =
- "https://doc.v8dashen.com/doc/298eb75d38dc2c4a";
- static const String userAgreement =
- "https://doc.v8dashen.com/doc/417838a4f155ec74";
- static const String personalInformationList =
- "https://doc.v8dashen.com/doc/d82db8fc7ac57d7f";
- static const String thirdPartyList =
- "https://doc.v8dashen.com/doc/626cfc364a1358a9";
- static const String kidPolicy =
- "https://doc.v8dashen.com/doc/0bc7b973c78011c9";
- static String baseUrl = getBaseUrl();
- static bool isProdEnv() {
- return Constants.env == Constants.envProd;
- }
- // TTARCLW,BDARCLWXM测试用特定渠道 Android
- static const String appDefaultChannel = "TTARCLW";
- static const int appDefaultAppId = 0;
- static const int appDefaultTgPlatformId = 0;
- static const String appChanelName = "app_channel_name";
- static const String appChannelId = "app_channel_id";
- static const String appTgPlatformId = "app_tg_platform_id";
- }
- String getBaseUrl() {
- switch (Constants.env) {
- case Constants.envDev:
- return Constants._devBaseUrl;
- case Constants.envTest:
- return Constants._testBaseUrl;
- case Constants.envProd:
- return Constants._prodBaseUrl;
- default:
- return Constants._devBaseUrl;
- }
- }
|