How to Generate Java Sources Using buildSrc Gradle Project and Codemodel

Read on original site (opens in a new window)

I’ll show how to embed external data in your Android app, such as a list of Internet top-level domains, by parsing it before app compilation and generating Java code for efficient and up-to-date access at runtime, similar to the fresh R class generated by Android build tools.