How approov/approov-service-okhttp works
Project type and purpose
• This is an Android/Java library module (“approov-service”) that wraps the Approov SDK to secure HTTP API calls made via OkHttp.
• It is not a standalone app but a drop-in interceptor and utility set that apps include to (a) fetch Approov tokens, (b) mutate or sign outgoing HTTP requests, and (c) handle Approov-related exceptions.
File structure
• Top-level: CI workflows (.github/workflows), Maven publish helpers (.maven), root Gradle files (build.gradle, settings.gradle, gradle wrapper).
• Core module: approov-service/
– build.gradle, pom.xml, proguard rules → build and packaging config.
– src/main/AndroidManifest.xml → manifest entries for Android library.
– src/main/java/io/approov/service → ApproovService plus OkHttp interceptor extensions, exceptions, request-mutation classes.
– src/main/java/io/approov/util/http/sfv → Structured Fields parsing/generation (third-party code).
– src/main/java/io/approov/util/sig → HTTP message-signing utility (third-party code).
– src/test → unit tests for signature utilities.
README for additional insights
• Confirms the goal: simplify integration of Approov SDK with OkHttp.
• Mentions included third-party code for SFV and HTTPSIG with their licenses.
Final advice
• Be detailed: break down the Approov-Service into Interceptor, Service, SFV and Sig packages.
• External interactions (Approov SDK & Cloud, API Server).
• Do not overthink—separate the system into every logical component and show their interactions clearly.