Skip to content

FYT flavor + AGP, Gradle and dependencies update - #351

Open
vasyl91 wants to merge 2 commits into
timschneeb:masterfrom
vasyl91:master
Open

vasyl91 wants to merge 2 commits into
timschneeb:masterfrom
vasyl91:master

Conversation

@vasyl91

@vasyl91 vasyl91 commented Oct 5, 2026

Copy link
Copy Markdown
  1. 2673902 Add the "fyt" flavor for FYT head units
  • the entire app/src/fyt/: manifest with sharedUserId, androidkeystore.jks, AutostartReceiver (james.dsp.action.AUTOSTART - meant for devices where BOOT_COMPLETED is not delivered), and BootStarter,
  • in app/build.gradle.kts, only the additions for FYT: the fyt flavor, fyt signing configuration with enforcement per variant, sourceSets with src/root, fytImplementation with libsu, and isDefault for plugin and fdroid.
  1. 7256bc9 Migrate the build to AGP 9 / Gradle 9 and update dependencies
  • the remaining changes in app/build.gradle.kts (AGP 9, new versions, localbroadcastmanager),
  • changes in the main build.gradle.kts, buildSrc, gradle.properties, wrapper, settings.gradle, codeview, and hidden-api-*,
  • gradle/gradle-daemon-jvm.properties,
  • code fixes: CrashlyticsImpl (Firebase without -ktx) and three files with androidx.appcompat.R.

vasyl91 and others added 2 commits October 5, 2026 03:54
New root-based product flavor (applicationId james.dsp) for FYT Android
head units, where the app runs as a system app.

- Flavor reuses the root flavor sources (src/root) and the libsu dependency.
- Manifest overlay sets sharedUserId=android.uid.system and re-declares the
  root permissions/SessionInstallerService.
- Only this flavor is signed with the platform key stored in
  src/fyt/androidkeystore.jks (alias/password "android"). The signing config
  is forced per variant via androidComponents, since the buildType-level
  signingConfig would otherwise override the flavor's. All other variants
  keep the original (debug keystore) signing.
- FYT radios never deliver BOOT_COMPLETED, so add AutostartReceiver: an
  exported receiver for the custom action james.dsp.action.AUTOSTART that
  starts the root audio service without showing any UI (via BootStarter).
- Keep pluginFdroid as the IDE's default build variant (isDefault) so the
  new flavor does not become the default alphabetically.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Build system
- AGP 9 with built-in Kotlin: drop org.jetbrains.kotlin.android and
  kotlin-kapt (no kapt dependencies), move plugin versions to the root
  buildscript/plugins block, replace archivesBaseName with
  base.archivesName, drop kotlinOptions, enable buildConfig explicitly.
- Update Gradle wrapper, buildSrc, gradle.properties and the library
  modules (codeview, hidden-api-*); add the generated daemon JVM
  properties.

Dependencies
- Firebase BoM 34 (the -ktx modules are gone, use the main artifacts),
  Material 1.14, AppCompat 1.8, Room 2.8, Retrofit 2.12, libsu 6.0 and
  other version bumps. Treessence and Pluto stay on their current
  versions because newer ones rename packages/artifacts.
- Add androidx.localbroadcastmanager explicitly; debug variants no longer
  get it transitively.

Source fixes required by the migration
- CrashlyticsImpl: use com.google.firebase.Firebase and
  com.google.firebase.crashlytics.crashlytics instead of the removed ktx
  APIs.
- Resources from AppCompat (colorError, colorPrimary,
  select_dialog_singlechoice_material) are no longer visible through
  com.google.android.material.R with non-transitive R classes; reference
  them via androidx.appcompat.R.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant