Update build.gradle

This is needed to accept the <queries> in AndroidManifest.xml, which is needed
to open links when targeting Android API 30 or later
This commit is contained in:
Roland Geider
2021-05-01 15:13:33 +02:00
parent bd3da0caa0
commit 292460eb42
4 changed files with 18 additions and 3 deletions

View File

@@ -4,5 +4,12 @@
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
</queries>
<application android:usesCleartextTraffic="true"/>
</manifest>

View File

@@ -7,6 +7,12 @@
FlutterApplication and put your custom class here. -->
<uses-permission android:name="android.permission.INTERNET"/>
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
</queries>
<supports-screens android:smallScreens="true"
android:normalScreens="true"
@@ -49,6 +55,8 @@
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data