Build APK / build (push) Successful in 5m27s
- Offline tab is now FilesView(offline: true) over a FolderBrowser interface (FilesController / OfflineController) sharing controls, tiles, thumbnails - Synced files follow the Files Cache rule (default: refresh every 15 min): per-account WorkManager jobs, in-app timer, resume and pull triggers; root-etag shortcut skips full walks when nothing changed - Single sync at a time (shared lock); logging out stops that account's sync - Sync safety: PROPFIND failures skip the path instead of deleting local files - Mirror empty folders and remove deleted ones; drop synced paths deleted on the server; missing local files are re-downloaded - Notifications: silent per-account sync notifications, "Background sync notifications" setting, audible upload/download completion - Files refresh in place (no spinner flash); retry after network returns - Fix sync badges not updating (shared native status stream), "Sync off" on launch (eager providers), Files Cache section moved under Device Sync Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
125 lines
6.5 KiB
XML
125 lines
6.5 KiB
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<uses-permission android:name="android.permission.INTERNET"/>
|
|
<!-- For local_auth's biometric app-lock (Settings > Security). -->
|
|
<uses-permission android:name="android.permission.USE_BIOMETRIC"/>
|
|
<!-- For connectivity_plus (ConnectivityController), which gates the
|
|
Offline tab restriction and skips network requests entirely while
|
|
offline - see session_controller.dart/main.dart. -->
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
|
<!-- For ShareUploadService/DownloadService, which keep a "Share to Noo"
|
|
upload/download going (and cancellable from its notification) even
|
|
if the app is fully closed - see each service's own doc comment. -->
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC"/>
|
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
|
|
<!-- DownloadService's pre-Android-10 fallback only (MediaStore.Downloads
|
|
needs no runtime permission on API 29+, which is what targetSdk
|
|
actually enforces) - capped with maxSdkVersion so it's not even
|
|
requested on newer devices. -->
|
|
<uses-permission
|
|
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
|
|
android:maxSdkVersion="28"/>
|
|
<application
|
|
android:label="Noo"
|
|
android:name="${applicationName}"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:networkSecurityConfig="@xml/network_security_config"
|
|
android:usesCleartextTraffic="true"
|
|
android:enableOnBackInvokedCallback="true">
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:exported="true"
|
|
android:launchMode="singleTask"
|
|
android:taskAffinity=""
|
|
android:theme="@style/LaunchTheme"
|
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
|
android:hardwareAccelerated="true"
|
|
android:windowSoftInputMode="adjustResize">
|
|
<!-- Specifies an Android theme to apply to this Activity as soon as
|
|
the Android process has started. This theme is visible to the user
|
|
while the Flutter UI initializes. After that, this theme continues
|
|
to determine the Window background behind the Flutter UI. -->
|
|
<meta-data
|
|
android:name="io.flutter.embedding.android.NormalTheme"
|
|
android:resource="@style/NormalTheme"
|
|
/>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN"/>
|
|
<category android:name="android.intent.category.LAUNCHER"/>
|
|
</intent-filter>
|
|
<!-- Lets other apps' share sheets ("Share to...") send a file here
|
|
to be uploaded - handled by MainActivity.kt directly, not a
|
|
plugin (see its doc comment for why). -->
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.SEND"/>
|
|
<category android:name="android.intent.category.DEFAULT"/>
|
|
<data android:mimeType="*/*"/>
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.SEND_MULTIPLE"/>
|
|
<category android:name="android.intent.category.DEFAULT"/>
|
|
<data android:mimeType="*/*"/>
|
|
</intent-filter>
|
|
<!-- Lets Noo be picked as a source ("Google Photos", "Files", ...)
|
|
from another app's own file/photo picker chooser - handled by
|
|
MainActivity.kt/PickIntentService, not a plugin. A single
|
|
"*/*" filter matches any mimeType the caller requests
|
|
(image/*, video/*, or a generic file pick). -->
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.GET_CONTENT"/>
|
|
<category android:name="android.intent.category.DEFAULT"/>
|
|
<category android:name="android.intent.category.OPENABLE"/>
|
|
<data android:mimeType="*/*"/>
|
|
</intent-filter>
|
|
</activity>
|
|
<service
|
|
android:name=".ShareUploadService"
|
|
android:exported="false"
|
|
android:foregroundServiceType="dataSync"/>
|
|
<service
|
|
android:name=".DownloadService"
|
|
android:exported="false"
|
|
android:foregroundServiceType="dataSync"/>
|
|
<!-- The "Keep local"/"Use server" actions on a sync-conflict
|
|
notification (SyncWorker/SyncEngine) - must be a manifest-
|
|
registered receiver, not a runtime-registered one, since it
|
|
needs to work even when the app process isn't running. -->
|
|
<receiver
|
|
android:name=".SyncConflictReceiver"
|
|
android:exported="false"/>
|
|
<!-- Hands back the file(s) a caller picked via the GET_CONTENT filter
|
|
above - only the app's own cache/picker/ subfolder is exposed,
|
|
see file_paths.xml. -->
|
|
<provider
|
|
android:name="androidx.core.content.FileProvider"
|
|
android:authorities="${applicationId}.picker.fileprovider"
|
|
android:exported="false"
|
|
android:grantUriPermissions="true">
|
|
<meta-data
|
|
android:name="android.support.FILE_PROVIDER_PATHS"
|
|
android:resource="@xml/file_paths"/>
|
|
</provider>
|
|
<!-- Don't delete the meta-data below.
|
|
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
|
<meta-data
|
|
android:name="flutterEmbedding"
|
|
android:value="2" />
|
|
</application>
|
|
<!-- Required to query activities that can process text, see:
|
|
https://developer.android.com/training/package-visibility and
|
|
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
|
|
|
|
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
|
|
<queries>
|
|
<intent>
|
|
<action android:name="android.intent.action.PROCESS_TEXT"/>
|
|
<data android:mimeType="text/plain"/>
|
|
</intent>
|
|
<!-- Needed so open_file can find apps to open downloaded files. -->
|
|
<intent>
|
|
<action android:name="android.intent.action.VIEW"/>
|
|
<data android:mimeType="*/*"/>
|
|
</intent>
|
|
</queries>
|
|
</manifest>
|