Skip to main content

AFCoreUI for Android

AFCoreUI for Android is a Jetpack Compose library that mirrors the SwiftUI package component for component. It lives at ui/afcore-ui-android as the Gradle module :ui:afcore-ui-android, and is not yet published to GitHub Packages, so consume it from source:

// settings.gradle.kts
include(":ui:afcore-ui-android")

// app/build.gradle.kts
dependencies {
implementation(project(":ui:afcore-ui-android"))
}

What's inside​

  • Theme -- AFCoreUITheme with the built-in Advanta Health light and dark themes, wired to Material 3.
  • Primitives -- AHCard, AHRing, AHBadge, AHBanner, AHEmptyState, AHHero, AHTrayNotification, AHSkeleton, AHHelpSheet.
  • Feature views -- WelcomeCarousel, PermissionsPrompt, ActivityCalendarView, CheckInSheet, BarcodeScannerView, FacilityMapView, SpotItDeckView.
  • Commerce -- merchant rows and maps, gift cards, balances, amount pickers and checkout scaffolding for rewards screens such as ActivePerks.
  • AFCoreUIShowcase() -- a gallery of every component.

Theming​

setContent {
AFCoreUITheme(darkTheme = isSystemInDarkTheme()) {
// your composables
}
}

To rebrand, pass your own theme -- copy a built-in theme and override the color tokens you need.

Learn more​

The Android sample app uses these components with live AFCore data, and the library README lists every component. Complete integration guides are in AIDE Docs.