Releases: BoD/android-contentprovider-generator
Releases · BoD/android-contentprovider-generator
v1.13.1
v1.13.0
v1.12.0
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
syntaxVersionfor this release is 4. This means you must update your_config.jsonfile. - Syntax updates:
projectPackageIdis renamed topackageNameto avoid confusion and match the term used here: https://developer.android.com/studio/build/application-id.html.sqliteOpenHelperCallbacksClassNameis now optional. If omitted,BaseSQLiteOpenHelperCallbacksis used in the generated code. If present, it must reference an existing class in your project (it will not be generated), that extendsBaseSQLiteOpenHelperCallbacks.sqliteOpenHelperClassName,enableForeignKeys,useAnnotations,useSupportLibraryandgenerateBeansare 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.
v1.11.0
v1.10.0
v1.9.3
- Updated content provider template to support ${applicationId} variable that is supported in the
new manifest merger build tool (thanks almilli!). - Fixed invalid json in sample and readme (thanks mdupierreux!).
- Added methods that take a Context in addition to the ones that take a ContentResolver.
- New
orderByXXXmethods in Selection classes (thanks yargray!).
v1.9.2
v1.9.1
v1.9.0
- The config
syntaxVersionfor this release is 3. This means you must update your_config.jsonfile. - Generation of new "Model" interfaces (one per entity)
- New
useAnnotationsboolean parameter in config, to generate annotations from thesupport-annotationslibrary (issue #38) - A few optimizations in the generated code
- Column names are no longer automatically made lower case, to help using the tool with an existing db (issue #52)
- New
contains,startsWith,endsWitdhmethods on Selection objects (issue #55) - The
CREATE_TABLE and CREATE_INDEXconstants are now public to make upgrades easier (issue #59) - The "id" (single column primary key) can now be specified to be an arbitrary column, instead of automatically being generated as "_id" (issue #56)
- Ability to specify a LIMIT and HAVING clause in queries, via a query parameter (issues #62 and #70)
- Better handling of default values (issue #67)
- Ability to call
notify,groupBy,limitandhavingon Selection objects.