Skip to content

Commit 925cc48

Browse files
committed
Update example to newest Android standards
1 parent 1cd7ea8 commit 925cc48

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

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

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,23 @@
88
FlutterApplication and put your custom class here. -->
99
<application
1010
android:name="${applicationName}"
11-
android:label="flutter_web_auth_2_example"
12-
android:icon="@mipmap/ic_launcher">
11+
android:icon="@mipmap/ic_launcher"
12+
android:label="flutter_web_auth_2_example">
1313
<activity
1414
android:name=".MainActivity"
15+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1516
android:exported="true"
17+
android:hardwareAccelerated="true"
1618
android:launchMode="singleTop"
1719
android:theme="@style/LaunchTheme"
18-
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
19-
android:hardwareAccelerated="true"
2020
android:windowSoftInputMode="adjustResize">
2121
<!-- Specifies an Android theme to apply to this Activity as soon as
2222
the Android process has started. This theme is visible to the user
2323
while the Flutter UI initializes. After that, this theme continues
2424
to determine the Window background behind the Flutter UI. -->
2525
<meta-data
26-
android:name="io.flutter.embedding.android.NormalTheme"
27-
android:resource="@style/NormalTheme"
28-
/>
26+
android:name="io.flutter.embedding.android.NormalTheme"
27+
android:resource="@style/NormalTheme" />
2928
<intent-filter>
3029
<action android:name="android.intent.action.MAIN" />
3130
<category android:name="android.intent.category.LAUNCHER" />
@@ -43,29 +42,24 @@
4342

4443
<data android:scheme="foobar" />
4544
</intent-filter>
46-
<intent-filter>
47-
<action android:name="android.intent.action.SEND" />
48-
<category android:name="android.intent.category.DEFAULT" />
49-
<data android:mimeType="text/plain" />
50-
</intent-filter>
51-
</activity>
52-
<activity android:name="com.linusu.flutter_web_auth_2.AuthenticationManagementActivity">
5345
</activity>
46+
5447
<!-- Don't delete the meta-data below.
5548
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
5649
<meta-data
5750
android:name="flutterEmbedding"
5851
android:value="2" />
5952
</application>
53+
6054
<!-- Required to query activities that can process text, see:
6155
https://developer.android.com/training/package-visibility and
6256
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
6357
6458
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
6559
<queries>
6660
<intent>
67-
<action android:name="android.intent.action.PROCESS_TEXT"/>
68-
<data android:mimeType="text/plain"/>
61+
<action android:name="android.intent.action.PROCESS_TEXT" />
62+
<data android:mimeType="text/plain" />
6963
</intent>
7064
</queries>
7165
</manifest>

0 commit comments

Comments
 (0)