Parcourir la source

[fix]修复快捷图标显示问题

zk il y a 1 an
Parent
commit
7c3e6dfb0e

+ 20 - 1
lib/data/consts/build_config.dart

@@ -8,7 +8,26 @@ class BuildConfig {
   static bool get isDebug => kDebugMode;
 }
 
-mixin GravityConfig {
+final class UmengConfig {
+  UmengConfig._();
+
+  //友盟统计配置
+  static const _umengAndroidAppKey = "66b07216cac2a664de82d222";
+  static const _umengIosAppKey = "66b07337cac2a664de82d457";
+
+  static String get umengAppKey {
+    if (Platform.isAndroid) {
+      return _umengAndroidAppKey;
+    } else if (Platform.isIOS) {
+      return _umengIosAppKey;
+    } else {
+      return '';
+    }
+  }
+}
+
+final class GravityConfig {
+  GravityConfig._();
   //引力引擎配置
   static const _gravityAndroidAppId = "24753190";
   static const _gravityIosAppId = "29235674";

+ 1 - 1
plugin/shortcut/android/src/main/java/com/atmob/shortcut/ShortcutUtil.java

@@ -143,7 +143,7 @@ public class ShortcutUtil {
         } catch (IOException e) {
             e.printStackTrace();
         }
-        return Icon.createWithAdaptiveBitmap(image);
+        return Icon.createWithBitmap(image);
     }