Skip to content

Commit 812f12e

Browse files
committed
🚀 Fully migrate to Android Embedding v2
1 parent f6de80a commit 812f12e

File tree

5 files changed

+11
-21
lines changed

5 files changed

+11
-21
lines changed

example/android/app/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,4 @@ flutter {
6060
dependencies {
6161
implementation 'com.github.bumptech.glide:glide:4.11.0'
6262
kapt 'com.github.bumptech.glide:compiler:4.11.0'
63-
testImplementation 'junit:junit:4.13.2'
64-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
65-
androidTestImplementation 'androidx.test:runner:1.3.0'
6663
}

example/android/app/src/debug/AndroidManifest.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

example/android/app/src/main/AndroidManifest.xml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,29 @@
66
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
77

88
<application
9-
android:name="io.flutter.app.FlutterApplication"
109
android:label="Wechat Assets Picker Example"
1110
android:icon="@mipmap/ic_launcher"
1211
android:allowBackup="false">
1312
<activity
1413
android:name=".MainActivity"
14+
android:exported="true"
1515
android:launchMode="singleTop"
1616
android:theme="@style/LaunchTheme"
1717
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1818
android:hardwareAccelerated="true"
19-
android:windowSoftInputMode="adjustResize"
20-
android:exported="true">
19+
android:windowSoftInputMode="adjustResize">
2120
<intent-filter>
2221
<action android:name="android.intent.action.MAIN"/>
2322
<category android:name="android.intent.category.LAUNCHER"/>
2423
</intent-filter>
24+
<!-- Specifies an Android theme to apply to this Activity as soon as
25+
the Android process has started. This theme is visible to the user
26+
while the Flutter UI initializes. After that, this theme continues
27+
to determine the Window background behind the Flutter UI. -->
28+
<meta-data
29+
android:name="io.flutter.embedding.android.NormalTheme"
30+
android:resource="@style/NormalTheme"
31+
/>
2532
</activity>
2633
<!-- Don't delete the meta-data below.
2734
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->

example/android/app/src/profile/AndroidManifest.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.6.0'
2+
ext.kotlin_version = '1.6.10'
33
repositories {
44
google()
55
mavenCentral()

0 commit comments

Comments
 (0)