Skip to content

v1.12.0

Compare
Choose a tag to compare
@BoD BoD released this 08 Feb 09:12
· 6 commits to master since this release

This is a somewhat big update in the way the tool is used, and there are also a few syntax differences.

  • New Gradle plugin, and this is now the preferred way to generate the code.
  • The config syntaxVersion for this release is 4. This means you must update your _config.json file.
  • Syntax updates:
    • projectPackageId is renamed to packageName to avoid confusion and match the term used here: https://developer.android.com/studio/build/application-id.html.
    • sqliteOpenHelperCallbacksClassName is now optional. If omitted, BaseSQLiteOpenHelperCallbacks is used in the generated code. If present, it must reference an existing class in your project (it will not be generated), that extends BaseSQLiteOpenHelperCallbacks.
    • sqliteOpenHelperClassName, enableForeignKeys, useAnnotations, useSupportLibrary and generateBeans are now optional and will assume default values if omitted.
  • The CLI tool still exists but its name has changed (now acpg-cli-<version>.jar).
  • Other internal changes that as a user, you needn't care about:
    • Use of Gradle instead of Maven.
    • Module separation (lib, cli, gradle-plugin).
    • Use of Jackson to parse the json files.
    • Use of Log4J to output logs.