How zzc10086/tiebalite works
Project type and purpose
• This is an Android mobile client (“Tieba Lite”) for the Baidu Tieba service. It’s a single APK that implements its own UI (XML + Jetpack Compose), an MVVM architecture, networking via Retrofit & Protobuf, local persistence (SQLite via LitePal and DataStore), and background tasks (JobService, BroadcastReceiver).
File structure
• Top-level “app” module: AndroidManifest, assets (JS scripts, JSON, XML), src/main/java structure
• Packages:
• ui & components: Activities/Fragments/Compose widgets
• arch: BaseViewModel, PartialChange, UiIntent/UiState → MVVM core
• repository: data‐source façade classes
• api: domain API interfaces & models + adapters/casters
• api/retrofit: RetrofitTiebaApi, converters, call adapters, interceptors
• models/database: LitePal entities, DataStore
• services & receivers: background job triggers and execution
• utils: utility functions
• Build files: Gradle Kotlin DSL, Protobuf definitions under src/main/protos, LitePal config, proguard rules