Browse Source

升级到embddv2

lyq.me@qq.com 3 years ago
parent
commit
77f0192e45

File diff suppressed because it is too large
+ 0 - 0
.flutter-plugins-dependencies


+ 2 - 4
android/app/src/main/AndroidManifest.xml

@@ -7,7 +7,7 @@
          additional functionality it is fine to subclass or reimplement
          FlutterApplication and put your custom class here. -->
     <application
-        android:name="io.flutter.app.FlutterApplication"
+        android:name="${applicationName}"
         android:label="douyin_demo"
         android:icon="@mipmap/ic_launcher">
         <activity
@@ -21,9 +21,7 @@
                  until Flutter renders its first frame. It can be removed if
                  there is no splash screen (such as the default splash screen
                  defined in @style/LaunchTheme). -->
-            <meta-data
-                android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
-                android:value="true" />
+            <meta-data android:name="flutterEmbedding" android:value="2"/>
             <intent-filter>
                 <action android:name="android.intent.action.MAIN"/>
                 <category android:name="android.intent.category.LAUNCHER"/>

+ 2 - 9
android/app/src/main/kotlin/com/example/douyin_demo/MainActivity.kt

@@ -1,13 +1,6 @@
 package com.example.douyin_demo
-
-import android.os.Bundle
-
-import io.flutter.app.FlutterActivity
-import io.flutter.plugins.GeneratedPluginRegistrant
+import io.flutter.embedding.android.FlutterActivity
 
 class MainActivity: FlutterActivity() {
-  override fun onCreate(savedInstanceState: Bundle?) {
-    super.onCreate(savedInstanceState)
-    GeneratedPluginRegistrant.registerWith(this)
-  }
+
 }

+ 1 - 0
android/app/src/main/res/values/styles.xml

@@ -5,4 +5,5 @@
              Flutter draws its first frame -->
         <item name="android:windowBackground">@drawable/launch_background</item>
     </style>
+
 </resources>

+ 10 - 10
pubspec.yaml

@@ -10,24 +10,24 @@ dependencies:
     sdk: flutter
 
   cupertino_icons: ^1.0.3
-  marquee:
+  marquee: ^2.2.1
   video_player: ^2.2.17
-  marquee_flutter:
+  marquee_flutter: ^0.1.4
   provider: ^6.0.1
   lpinyin: ^2.0.3
-  sticky_headers:
+  sticky_headers: ^0.2.0
   shared_preferences: ^2.0.7
   json_annotation: ^4.4.0
   flutter_swiper: ^1.1.6
-  stretchy_header:
-  after_layout:
-  camera:
+  stretchy_header: ^2.0.0
+  after_layout: ^1.1.0
+  camera: ^0.9.4+18
   path_provider: ^2.0.9
-  path:
-  uuid:
-  image_picker_saver:
+  path: ^1.8.1
+  uuid: ^3.0.6
+  image_picker_saver: ^0.3.0
   image_gallery_saver: ^1.7.1
-  firebase_ml_vision:
+  firebase_ml_vision: ^0.12.0+3
   image_picker: ^0.8.4+4
 
 dev_dependencies:

Some files were not shown because too many files changed in this diff