소스 검색

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

zk 1 년 전
부모
커밋
7c3e6dfb0e
2개의 변경된 파일21개의 추가작업 그리고 2개의 파일을 삭제
  1. 20 1
      lib/data/consts/build_config.dart
  2. 1 1
      plugin/shortcut/android/src/main/java/com/atmob/shortcut/ShortcutUtil.java

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

@@ -8,7 +8,26 @@ class BuildConfig {
   static bool get isDebug => kDebugMode;
   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 _gravityAndroidAppId = "24753190";
   static const _gravityIosAppId = "29235674";
   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) {
         } catch (IOException e) {
             e.printStackTrace();
             e.printStackTrace();
         }
         }
-        return Icon.createWithAdaptiveBitmap(image);
+        return Icon.createWithBitmap(image);
     }
     }