CI / check (push) Canceled after 0s
Google Play Protect blocked installing beta.7, most likely for the
notification listener (notification summaries).
- A second flavour dimension, `reading`: `standard` declares no listener and
no permission of it; `notifications` is the full build plus the listener,
with the same application id and key. Variants: fullStandard,
fullNotifications, fdroidStandard (no F-Droid build with the listener).
The listener class and its manifest entry live in src/notifications only.
- Settings in a standard build says where notification summaries went and
why. The self-updater installs only its own kind: a notifications build
takes latest.json's optional `notifications {url, sha256}` or nothing.
- Release builds carry arm64-v8a and armeabi-v7a only; debug keeps x86_64
for the emulator. The engine's unused C and C++ API libraries are left out.
- scripts/check-apk.sh checks the built files (listener only where it may
be, model stored, no x86 in a release); CI runs it on the three debug APKs
and on an unsigned release build, release.yml on what it publishes.
- release.yml publishes llembas-android-<version>.apk, -notifications.apk
and -fdroid.apk with SHA256SUMS.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
22 lines
784 B
Kotlin
22 lines
784 B
Kotlin
package eu.llembas.android.notify
|
|
|
|
import android.content.Context
|
|
import android.content.Intent
|
|
|
|
/**
|
|
* The standard builds cannot read the phone's notifications: they declare no notification
|
|
* listener at all, because Google Play Protect blocks installing an app from outside the Play
|
|
* Store that does. Notification summaries are in the `notifications` build -- the same app, the
|
|
* same signature, with the listener -- and Settings says so. Everything else about them is the
|
|
* same code in both, which here simply never has anything to read.
|
|
*/
|
|
object NotificationAccess {
|
|
const val AVAILABLE = false
|
|
|
|
fun granted(context: Context): Boolean = false
|
|
|
|
fun settingsIntent(context: Context): Intent? = null
|
|
|
|
fun read(context: Context): List<Notice> = emptyList()
|
|
}
|