mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
- Add redirect_uri parameter to OAuth flow for mobile platforms - Create OAuthCallbackHandlerService to handle deep link callbacks - Register custom URI scheme (com.super-productivity.app://) in Android/iOS - Add platform-specific UI for OAuth flow (automatic vs manual) - Implement proper error handling for OAuth callback errors - Add comprehensive unit tests for callback handler - Fix memory leak by properly cleaning up event listeners - Use IS_NATIVE_PLATFORM constant for consistent platform detection Web/Electron continue using manual code entry (no regression). Mobile (iOS/Android) now use automatic redirect with deep linking. Fixes Dropbox OAuth authentication on iOS and Android platforms.
141 lines
5.4 KiB
XML
141 lines
5.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
|
|
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
|
|
|
|
<application
|
|
android:name=".App"
|
|
android:allowBackup="true"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:networkSecurityConfig="@xml/network_security_config"
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
android:supportsRtl="true"
|
|
android:theme="@style/AppTheme"
|
|
android:usesCleartextTraffic="true">
|
|
|
|
<!-- FileProvider for secure file sharing via Share plugin -->
|
|
<provider
|
|
android:name="androidx.core.content.FileProvider"
|
|
android:authorities="${applicationId}.fileprovider"
|
|
android:exported="false"
|
|
android:grantUriPermissions="true">
|
|
<meta-data
|
|
android:name="android.support.FILE_PROVIDER_PATHS"
|
|
android:resource="@xml/file_paths" />
|
|
</provider>
|
|
|
|
<!-- Set FullscreenActivity as the default launcher -->
|
|
<activity
|
|
android:name=".FullscreenActivity"
|
|
android:allowTaskReparenting="true"
|
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode|navigation"
|
|
android:exported="true"
|
|
android:hardwareAccelerated="true"
|
|
android:label="@string/title_activity_fullscreen"
|
|
android:launchMode="singleTask"
|
|
android:theme="@style/AppTheme.NoActionBarLaunch"
|
|
android:windowSoftInputMode="adjustResize">
|
|
|
|
<!-- This intent-filter adds the Trusted Web Activity to the Android Launcher -->
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
<action android:name="com.superproductivity.superproductivity.DONE" />
|
|
<action android:name="com.superproductivity.superproductivity.PAUSE" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<!-- All new Super-Productivity main activity, based on Capacitor to support offline use -->
|
|
<activity
|
|
android:name=".CapacitorMainActivity"
|
|
android:allowTaskReparenting="true"
|
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode|navigation"
|
|
android:exported="true"
|
|
android:hardwareAccelerated="true"
|
|
android:label="@string/title_activity_fullscreen"
|
|
android:launchMode="singleTask"
|
|
android:theme="@style/AppTheme.NoActionBarLaunch"
|
|
android:windowSoftInputMode="adjustResize">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.SEND" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<data android:mimeType="text/*" />
|
|
</intent-filter>
|
|
|
|
<!-- OAuth callback handler for Dropbox authentication -->
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.BROWSABLE" />
|
|
<data
|
|
android:scheme="com.super-productivity.app"
|
|
android:host="oauth-callback" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity
|
|
android:name=".webview.WebViewBlockActivity"
|
|
android:exported="false"
|
|
android:theme="@style/AppTheme" />
|
|
|
|
<service
|
|
android:name=".service.TrackingForegroundService"
|
|
android:enabled="true"
|
|
android:exported="false"
|
|
android:foregroundServiceType="specialUse">
|
|
<property
|
|
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
|
android:value="time_tracking" />
|
|
</service>
|
|
|
|
<service
|
|
android:name=".service.FocusModeForegroundService"
|
|
android:enabled="true"
|
|
android:exported="false"
|
|
android:foregroundServiceType="specialUse">
|
|
<property
|
|
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
|
|
android:value="focus_timer" />
|
|
</service>
|
|
|
|
<receiver
|
|
android:name=".receiver.ReminderAlarmReceiver"
|
|
android:enabled="true"
|
|
android:exported="false" />
|
|
|
|
<receiver
|
|
android:name=".receiver.ReminderActionReceiver"
|
|
android:enabled="true"
|
|
android:exported="false" />
|
|
|
|
<!-- Quick Add Widget -->
|
|
<receiver
|
|
android:name=".widget.QuickAddWidgetProvider"
|
|
android:exported="true"
|
|
android:label="@string/widget_quick_add_label">
|
|
<intent-filter>
|
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
|
</intent-filter>
|
|
<meta-data
|
|
android:name="android.appwidget.provider"
|
|
android:resource="@xml/widget_quick_add_info" />
|
|
</receiver>
|
|
|
|
<!-- Quick Add Dialog Activity -->
|
|
<activity
|
|
android:name=".widget.QuickAddActivity"
|
|
android:exported="false"
|
|
android:theme="@style/Theme.AppCompat.Light.Dialog"
|
|
android:excludeFromRecents="true" />
|
|
</application>
|
|
</manifest>
|