aboutsummaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-06-02 23:58:56 +0530
committerAkshay Nair <phenax5@gmail.com>2020-06-02 23:58:56 +0530
commit68654e9c7bdecd09d494e1919f5490c430044dfa (patch)
tree8f9b52f95f4289182ef86e3b8ca7ac0fd98d3899 /android
parent3ad62745af3a23170635ace1c7e29e0df7a8ac13 (diff)
downloaddaft-launcher-68654e9c7bdecd09d494e1919f5490c430044dfa.tar.gz
daft-launcher-68654e9c7bdecd09d494e1919f5490c430044dfa.zip
Adds open app settings and uninstall actions
Diffstat (limited to '')
-rw-r--r--android/app/src/main/AndroidManifest.xml14
-rw-r--r--android/settings_aar.gradle1
2 files changed, 10 insertions, 5 deletions
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index f47f73c..3d9998a 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -4,7 +4,8 @@
calls FlutterMain.startInitialization(this); in its onCreate method.
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
- FlutterApplication and put your custom class here. -->
+ FlutterApplication and put your custom class here. -->
+ <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
<application
android:name="io.flutter.app.FlutterApplication"
android:label="owyn"
@@ -34,10 +35,13 @@
android:resource="@drawable/launch_background"
/>
<intent-filter>
- <action android:name="android.intent.action.MAIN"/>
- <category android:name="android.intent.category.LAUNCHER"/>
- <category android:name="android.intent.category.HOME" />
- <category android:name="android.intent.category.DEFAULT" />
+ <action android:name="android.intent.action.MAIN"/>
+ <action android:name="android.intent.action.DELETE" />
+ <action android:name="android.intent.action.UNINSTALL_PACKAGE" />
+ <category android:name="android.intent.category.LAUNCHER"/>
+ <category android:name="android.intent.category.HOME" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:scheme="package" />
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
diff --git a/android/settings_aar.gradle b/android/settings_aar.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/android/settings_aar.gradle
@@ -0,0 +1 @@
+include ':app'