Browse Source

Fix opening links for Android by upgrading Gradle and adding android.intent.action.VIEW query to Android manifest

pull/104/head
James Mills 1 month ago
parent
commit
0607bbfa21
Signed by: prologic GPG Key ID: AC4C014F1440EBD6
  1. 11
      android/app/src/main/AndroidManifest.xml
  2. 6
      android/build.gradle
  3. 2
      android/gradle/wrapper/gradle-wrapper.properties

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

@ -1,5 +1,16 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="social.yarn.goryon">
<uses-permission android:name="android.permission.INTERNET" />
<!-- Add the block below to your manifest file to configure apps with action.VIEW intent filters as visible to your app -->
<!-- START HERE -->
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
</intent>
</queries>
<!-- END HERE -->
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide

6
android/build.gradle

@ -2,11 +2,11 @@ buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
@ -14,7 +14,7 @@ buildscript {
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

2
android/gradle/wrapper/gradle-wrapper.properties

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip

Loading…
Cancel
Save