build_config.dart 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import 'dart:io';
  2. import 'package:flutter/foundation.dart';
  3. final class BuildConfig{
  4. BuildConfig._();
  5. static bool get isDebug => kDebugMode;
  6. }
  7. final class BuglyConfig {
  8. BuglyConfig._();
  9. static const String buglyAndroidAppId = "0801c48428";
  10. static const String buglyIosAppId = "a9232adcaa";
  11. }
  12. final class UmengConfig {
  13. UmengConfig._();
  14. //友盟统计配置
  15. static const umengAndroidAppKey = "680dcdadbc47b67d834e37bb";
  16. static const umengIosAppKey = "680dcf8479267e02104bfa01";
  17. static String get umengAppKey {
  18. if (Platform.isAndroid) {
  19. return umengAndroidAppKey;
  20. } else if (Platform.isIOS) {
  21. return umengIosAppKey;
  22. } else {
  23. return '';
  24. }
  25. }
  26. }
  27. final class JpushConfig {
  28. JpushConfig._();
  29. //极光推送配置
  30. static const jpushAndroidAppKey = "e4c8b538fa1046eccce756de";
  31. // 这个不确定是不是ios
  32. static const jpushIosAppKey = " e4c8b538fa1046eccce756de";
  33. static String get jpushAppKey {
  34. if (Platform.isAndroid) {
  35. return jpushAndroidAppKey;
  36. } else if (Platform.isIOS) {
  37. return jpushIosAppKey;
  38. } else {
  39. return '';
  40. }
  41. }
  42. }
  43. final class GravityConfig {
  44. GravityConfig._();
  45. //引力引擎配置
  46. static const gravityAndroidAppId = "";
  47. static const gravityAndroidAccessToken = "YesJRruqje8xzgm5HuOK7AhXwEznTfBV";
  48. static const gravityIosAppId = "";
  49. static const gravityIosAccessToken = "ulA57gz2zpioGukhyiQFkTEjfKS1aPxw";
  50. static String get gravityAppId {
  51. if (Platform.isAndroid) {
  52. return gravityAndroidAppId;
  53. } else if (Platform.isIOS) {
  54. return gravityIosAppId;
  55. } else {
  56. return '';
  57. }
  58. }
  59. static String get gravityAccessToken {
  60. if (Platform.isAndroid) {
  61. return gravityAndroidAccessToken;
  62. } else if (Platform.isIOS) {
  63. return gravityIosAccessToken;
  64. } else {
  65. return '';
  66. }
  67. }
  68. }