build_config.dart 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import 'dart:io';
  2. import 'package:flutter/foundation.dart';
  3. final class BuildConfig {
  4. BuildConfig._();
  5. static bool get isDebug => kDebugMode;
  6. static const String qiyuKEY = "09ea6e0a6d006e25462906fbf6758c99";
  7. }
  8. final class BuglyConfig {
  9. BuglyConfig._();
  10. static const String buglyAndroidAppId = "9d862c5217";
  11. static const String buglyIosAppId = "38cc655743";
  12. }
  13. final class WechatConfig {
  14. WechatConfig._();
  15. static const String wechatAppId = 'wxd423dc54a6fd1640';
  16. }
  17. final class UmengConfig {
  18. UmengConfig._();
  19. //友盟统计配置
  20. static const umengAndroidAppKey = "67e11d9b48ac1b4f87f56ea2";
  21. static const umengIosAppKey = "67e11e7565c707471a29602e";
  22. static String get umengAppKey {
  23. if (Platform.isAndroid) {
  24. return umengAndroidAppKey;
  25. } else if (Platform.isIOS) {
  26. return umengIosAppKey;
  27. } else {
  28. return '';
  29. }
  30. }
  31. }
  32. final class GravityConfig {
  33. GravityConfig._();
  34. //引力引擎配置
  35. static const gravityAndroidAppId = "";
  36. static const gravityAndroidAccessToken = "9z0eEcjzcXggkJawmAuqIpypvYsotq7i";
  37. static const gravityIosAppId = "25718036";
  38. static const gravityIosAccessToken = "w9fuUykhmpYsqNrF6Zue8IvCXxmn4vyj";
  39. static String get gravityAppId {
  40. if (Platform.isAndroid) {
  41. return gravityAndroidAppId;
  42. } else if (Platform.isIOS) {
  43. return gravityIosAppId;
  44. } else {
  45. return '';
  46. }
  47. }
  48. static String get gravityAccessToken {
  49. if (Platform.isAndroid) {
  50. return gravityAndroidAccessToken;
  51. } else if (Platform.isIOS) {
  52. return gravityIosAccessToken;
  53. } else {
  54. return '';
  55. }
  56. }
  57. }