mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-19 23:54:24 +01:00
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
file-length / file length <= 250 lines (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint) (push) Waiting to run
Tests / test (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Fires on the tap before the write; rejected logs stay silent. The dopamine-ux TODO now lists only the remaining work. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWVUTaKFW8m7YrvWbzV
93 lines
5.1 KiB
XML
93 lines
5.1 KiB
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<!-- Sync (github_client.dart) needs raw socket access. -->
|
|
<uses-permission android:name="android.permission.INTERNET"/>
|
|
<!-- HapticFeedback on a successful meal log (log_meal_screen.dart). -->
|
|
<uses-permission android:name="android.permission.VIBRATE"/>
|
|
<!-- Android 13+ requires runtime opt-in to post notifications; requested
|
|
at launch via NotificationService.requestPermission(). -->
|
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
|
|
<!-- WorkManager needs this to keep the CPU awake long enough to finish
|
|
a periodic due-slot check. -->
|
|
<uses-permission android:name="android.permission.WAKE_LOCK"/>
|
|
<!-- Lets WorkManager re-register the periodic task after a reboot. -->
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
|
<!-- Needed for the "Disable battery optimization" button in settings
|
|
(permission_handler's ignoreBatteryOptimizations) to actually show
|
|
the system dialog instead of silently returning denied. -->
|
|
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
|
|
<!-- Health Connect steps for the Body screen (health_steps.dart). Read
|
|
only, foreground only: no READ_HEALTH_DATA_IN_BACKGROUND, so the
|
|
WorkManager isolate never reads Health Connect. -->
|
|
<uses-permission android:name="android.permission.health.READ_STEPS"/>
|
|
<!-- Deliberately NOT requesting SCHEDULE_EXACT_ALARM: the background
|
|
check is a 15-minute WorkManager periodic task, not exact alarms
|
|
(more robust against OEM background-kill; +/-15 min is accepted, see
|
|
background_check_service.dart). Don't add this permission to "fix"
|
|
perceived lateness, which trades robustness for precision we don't
|
|
need. -->
|
|
<application
|
|
android:label="DietGuard"
|
|
android:name="${applicationName}"
|
|
android:icon="@mipmap/ic_launcher">
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:exported="true"
|
|
android:launchMode="singleTop"
|
|
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>
|
|
<!-- Health Connect (Android 13 and below) opens this to show why
|
|
the app wants steps; see the `health` plugin README. -->
|
|
<intent-filter>
|
|
<action android:name="androidx.health.ACTION_SHOW_PERMISSIONS_RATIONALE"/>
|
|
</intent-filter>
|
|
</activity>
|
|
<!-- Health Connect (Android 14+) links "view permission usage" here. -->
|
|
<activity-alias
|
|
android:name="ViewPermissionUsageActivity"
|
|
android:exported="true"
|
|
android:targetActivity=".MainActivity"
|
|
android:permission="android.permission.START_VIEW_PERMISSION_USAGE">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW_PERMISSION_USAGE"/>
|
|
<category android:name="android.intent.category.HEALTH_PERMISSIONS"/>
|
|
</intent-filter>
|
|
</activity-alias>
|
|
<!-- 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>
|
|
<!-- Lets the `health` plugin see whether Health Connect is installed. -->
|
|
<package android:name="com.google.android.apps.healthdata"/>
|
|
<intent>
|
|
<action android:name="androidx.health.ACTION_SHOW_PERMISSIONS_RATIONALE"/>
|
|
</intent>
|
|
</queries>
|
|
</manifest>
|