# linkedin/dexmaker

A utility for doing compile or runtime code generation targeting Android's Dalvik VM

Repository: https://github.com/linkedin/dexmaker
Canonical: https://ross.abutalabs.com/products/dexmaker
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2026-05-29T21:49:38+00:00

## Health v2 (maintenance only)
Score: 68/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 84, release rhythm 29, longevity 100
- inputs: {"age_days": 4277, "days_push": 96, "days_rel": 393, "gap_med": 49, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1967, forks 261 (observed 2026-08-28T04:05:59.993973+00:00)

## What it is
Dexmaker is a Java API for compile-time or runtime code generation targeting Android's Dalvik VM, producing .dex files instead of .class files. It also enables Mockito mocking in Android instrumentation tests via generated Dalvik bytecode class proxies.

## Use cases
- generate Dalvik dex bytecode at runtime on Android
- use Mockito in Android instrumentation tests
- mock final classes and methods on Android P+
- create class proxies for AOP or mocking without writing bytecode
- generate and load classes dynamically into a running Android process

## When to choose
- you need runtime or compile-time code generation targeting the Dalvik VM
- you want Mockito support in Android instrumentation tests
- you need to mock final classes/methods on Android P or newer
- you want low-level, instruction-level control over emitted Dalvik bytecode

## When to avoid
- you are generating JVM .class files rather than Dalvik dex files (use ASM or cglib)
- your tests must run on Android versions older than P and you need final-class mocking
- you need a high-level AST-based code generation API out of the box

## Facets
- artifact type: library
- maturity: stable
- function: testing, mocking, compiler
- domain: android-tools, developer-tools, testing
- platform: jvm
- tags: dalvik, dex, bytecode-generation, mockito, android-instrumentation-tests, class-proxies, android

## Member repositories
- linkedin/dexmaker (main) score 68

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:59.993973+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:05:13.878728+00:00, confidence not recorded.
  - readme: https://github.com/linkedin/dexmaker (fetched 2026-08-28T04:05:59.993973+00:00, sha f3c07b93b865)
- Data as of 2026-08-30T08:39:29.467469+00:00.
