Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Make flutter run work for the auth app

Manav Rathib71261fdd5f9
diff --git a/mobile/apps/auth/android/app/src/fdroid/AndroidManifest.xml b/mobile/apps/auth/android/app/src/fdroid/AndroidManifest.xml
new file mode 100644
index 0000000000..3b4c158a0a
--- /dev/null
+++ b/mobile/apps/auth/android/app/src/fdroid/AndroidManifest.xml
@@ -0,0 +1,13 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools">
+
+ <!-- Strips MainActivity's launcher entry; see independent/AndroidManifest.xml. -->
+ <application>
+ <activity android:name=".MainActivity">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN"/>
+ <category android:name="android.intent.category.LAUNCHER" tools:node="remove"/>
+ </intent-filter>
+ </activity>
+ </application>
+</manifest>
diff --git a/mobile/apps/auth/android/app/src/independent/AndroidManifest.xml b/mobile/apps/auth/android/app/src/independent/AndroidManifest.xml
new file mode 100644
index 0000000000..ed832ded88
--- /dev/null
+++ b/mobile/apps/auth/android/app/src/independent/AndroidManifest.xml
@@ -0,0 +1,16 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools">
+
+ <!-- Adding the following block to prevent the app from having multiple
+ launcher entries. We can remove this along with the `LAUNCHER` category from
+ main/AndroidManifest.xml once
+ https://github.com/flutter/flutter/issues/38965 is fixed. -->
+ <application>
+ <activity android:name=".MainActivity">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN"/>
+ <category android:name="android.intent.category.LAUNCHER" tools:node="remove"/>
+ </intent-filter>
+ </activity>
+ </application>
+</manifest>
diff --git a/mobile/apps/auth/android/app/src/main/AndroidManifest.xml b/mobile/apps/auth/android/app/src/main/AndroidManifest.xml
index d7c3026aab..50d9278fa0 100644
--- a/mobile/apps/auth/android/app/src/main/AndroidManifest.xml
+++ b/mobile/apps/auth/android/app/src/main/AndroidManifest.xml
@@ -16,6 +16,11 @@
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
diff --git a/mobile/apps/auth/android/app/src/playstore/AndroidManifest.xml b/mobile/apps/auth/android/app/src/playstore/AndroidManifest.xml
new file mode 100644
index 0000000000..3b4c158a0a
--- /dev/null
+++ b/mobile/apps/auth/android/app/src/playstore/AndroidManifest.xml
@@ -0,0 +1,13 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools">
+
+ <!-- Strips MainActivity's launcher entry; see independent/AndroidManifest.xml. -->
+ <application>
+ <activity android:name=".MainActivity">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN"/>
+ <category android:name="android.intent.category.LAUNCHER" tools:node="remove"/>
+ </intent-filter>
+ </activity>
+ </application>
+</manifest>