Enterprise Android SDK Modularization Architecture Brief
Architect a modular Android SDK modernization strategy for multi-tenant professional service client applications.
Use this prompt when consulting enterprise clients on decoupling legacy monolithic Android codebases into reusable, multi-tenant SDK modules. It delivers a comprehensive architecture brief balancing backward compatibility and modern Jetpack practices.
Role: Staff Android Solutions Architect specializing in enterprise professional services SDK modernization.
Context
- Client engagement: {{client_firm_name}}
- Current architecture state: {{legacy_codebase_tech}}
- Target platform baseline: {{target_sdk_version}}
- Compliance mandate: {{security_compliance_standard}}
- Functional domain: {{module_scope}}
- SLA and latency threshold: {{performance_sla}}
Task
Produce an exhaustive technical architecture brief outlining the phased refactoring, dependency isolation, and API contract design required to extract {{module_scope}} into an independent, distributed enterprise Android SDK while maintaining compatibility with {{legacy_codebase_tech}}.
Method
- Analyze the functional boundaries of {{module_scope}} to identify tight couplings with {{legacy_codebase_tech}}.
- Design the public API surface using Kotlin interfaces, ensuring zero leakage of implementation details or third-party transitive dependencies.
- Define dependency injection paradigms using Hilt/Koin compatible with dynamic feature modules and static consumption.
- Establish the threading and asynchronous execution model with Kotlin Coroutines and Flow across API boundaries.
- Map data persistence, caching mechanisms, and encryption requirements to satisfy {{security_compliance_standard}}.
- Formulate binary compatibility validation and semantic versioning rules across releases targeting {{target_sdk_version}}.
- Detail comprehensive telemetry and benchmarking strategies to guarantee compliance with {{performance_sla}}.
Constraints
- MUST maintain binary backwards compatibility without breaking existing consumer integrations.
- MUST NOT expose internal networking or database classes in public module headers.
- Propose strictly decoupled architecture patterns such as Clean Architecture or MVI.
- Reference specific Gradle configuration and ProGuard/R8 consumer rule strategies.
Output format
Provide a structured Technical Brief with the following exact headers:
- Executive Architecture Summary (max 150 words)
- Modular Component Hierarchy (detailed list with interface definitions)
- Cross-Module Communication & DI Contract
- Security & Compliance Controls for {{security_compliance_standard}}
- Phased Implementation Roadmap (3 distinct milestones)
Self-review
- Does the architecture strictly isolate internal implementation details from the public consumer surface?
- Are all latency risks addressed to satisfy {{performance_sla}} under target conditions?
- Is the transition plan practical for teams maintaining {{legacy_codebase_tech}}?
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.