How kevlar-kt/kevlar works
Project Type and Purpose
• Kevlar is a multi-module Kotlin/Android library (security toolkit) providing three core packages—antipiracy, rooting, and integrity—plus a DSL module for configuration, a showcase Android app, documentation, and publishing/build scripts.
• Its purpose is to let Android apps declaratively configure and request “attestations” of the device’s security environment (app-wise, user-wise, system-wise).
File Structure Analysis
• Top-level modules:
• antipiracy/, rooting/ and integrity/: Android library modules; each implements an “Attestator” entrypoint, detection strategies, data models, and DSL integration.
• dsl/: a pure-Kotlin module furnishing the DSL builders and settings classes shared by all packages.
• /: sample Android app demonstrating runtime consumption of the libraries.
• docs/, mkdocs.yml: static site content for the project website.
• buildSrc/, scripts/: centralized Gradle plugin code and reusable build/publishing scripts.
• CI metadata under .github/workflows/, shell scripts for local assemble & publishing.
• Patterns:
• Multi-module Gradle project for modular separation of concerns.
• Declarative DSL layer → Settings → Attestator → Detection/Vector pipelines → AttestationResult.
• CI/CD builds artifacts (AARs) and publishes to Maven Central and GitHub Pages.
Key README Insights
• Explanation of security environment subdivisions and flexibility via DSL configuration.
• Usage guidelines and published artifacts for each package.