2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 05:26:47 +00:00

Update to allow android 30 (and newer) to open HTTPS links

Ref: https://medium.com/flutter-community/package-visibility-for-url-launcher-on-android-11-api-30-7c03cbce76a5
This commit is contained in:
Oliver 2021-07-28 16:18:41 +10:00
parent 6f366452f8
commit b8379e05db
4 changed files with 14 additions and 3 deletions

View File

@ -6,6 +6,15 @@
In most cases you can leave this as-is, but you if you want to provide In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. --> FlutterApplication and put your custom class here. -->
<!-- Provide required visibility configuration for API level 30 and above -->
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
</queries>
<application <application
android:label="InvenTree" android:label="InvenTree"
android:icon="@mipmap/ic_launcher"> android:icon="@mipmap/ic_launcher">
@ -43,4 +52,6 @@
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.CAMERA"/> <uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.MICROPHONE"/> <uses-permission android:name="android.permission.MICROPHONE"/>
</manifest> </manifest>

@ -1 +1 @@
Subproject commit 5889c96004c734ac81a9c67002e75fe477f632cd Subproject commit b1cbc0ded4c29c84f5714e73872d5c665b2265e0

View File

@ -627,7 +627,7 @@ packages:
name: url_launcher name: url_launcher
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "6.0.0" version: "6.0.9"
url_launcher_linux: url_launcher_linux:
dependency: transitive dependency: transitive
description: description:

View File

@ -31,7 +31,7 @@ dependencies:
flutter_speed_dial: ^3.0.5 # FAB menu elements flutter_speed_dial: ^3.0.5 # FAB menu elements
sentry_flutter: 5.0.0 # Error reporting sentry_flutter: 5.0.0 # Error reporting
image_picker: ^0.8.0 # Select or take photos image_picker: ^0.8.0 # Select or take photos
url_launcher: 6.0.0 # Open link in system browser url_launcher: 6.0.9 # Open link in system browser
flutter_markdown: ^0.6.2 # Rendering markdown flutter_markdown: ^0.6.2 # Rendering markdown
camera: # Camera camera: # Camera
path_provider: 2.0.1 # Local file storage path_provider: 2.0.1 # Local file storage