You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,23 @@
1
1
Android ContentProvider Generator Changelog
2
2
===========================================
3
3
4
+
v1.12.0 (2017-02-06)
5
+
------
6
+
This is a somewhat big update in the way the tool is used, and there are also a few syntax differences.
7
+
8
+
- New **Gradle plugin**, and this is now the preferred way to generate the code.
9
+
- The config `syntaxVersion` for this release is **4**. This means you **must** update your `_config.json` file.
10
+
- Syntax updates:
11
+
-`projectPackageId` is renamed to `packageName` to avoid confusion and match the term used here: https://developer.android.com/studio/build/application-id.html.
12
+
-`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`.
13
+
-`sqliteOpenHelperClassName`, `enableForeignKeys`, `useAnnotations`, `useSupportLibrary` and `generateBeans` are now optional and will assume default values if omitted.
14
+
- The CLI tool still exists but its name has changed (now `acpg-cli-<version>.jar`).
15
+
- Other internal changes that as a user, you needn't care about:
16
+
- Use of Gradle instead of Maven.
17
+
- Module separation (lib, cli, gradle-plugin).
18
+
- Use of Jackson to parse the json files.
19
+
- Use of Log4J to output logs.
20
+
4
21
v1.11.0 (2016-11-12)
5
22
------
6
23
- Beans generation (if new `generateBeans` boolean parameter in config is true) - fix for issue #43.
- Input folder: where to find `_config.json` and your entity json files
139
+
- Output folder: where the resulting files will be generated
140
+
141
+
43
142
### Entity files
44
143
45
144
Create one file per entity, naming it `<entity_name>.json`.
@@ -113,26 +212,16 @@ Notes:
113
212
- if `documentation` is present the value will be copied in Javadoc blocks in the generated code.
114
213
- the `constraints` and `defaultOrder` sections are optional
115
214
116
-
A more comprehensive sample is available in the [etc/sample](etc/sample) folder.
215
+
A more comprehensive sample is available in the [sample-app/etc/acpg](sample-app/etc/acpg) folder.
117
216
118
-
You can also have a look at the corresponding generated code in the [etc/sample/app](etc/sample/app/src/org/jraf/androidcontentprovidergenerator/sample/provider) folder.
217
+
You can have a look at the corresponding generated code in the [etc/sample-generated-code](etc/sample-generated-code) folder.
119
218
120
219
By convention, you should name your entities and fields in lower case with words separated by '_', like in the example above.
121
220
122
221
### The `header.txt` file (optional)
123
222
124
223
If a `header.txt` file is present, its contents will be inserted at the top of every generated file.
- Input folder: where to find `_config.json` and your entity json files
135
-
- Output folder: where the resulting files will be generated
136
225
137
226
### Use the generated files
138
227
@@ -230,22 +319,22 @@ with joins because you will get several columns named `_id` in the results!
230
319
Sample
231
320
------
232
321
233
-
A sample is available in the [etc/sample](etc/sample) folder.
322
+
A sample is available in the [sample-app](sample-app) folder, with the entities in [sample-app/etc/acpg](sample-app/etc/acpg).
234
323
235
-
You can have a look at the corresponding generated code in the [etc/sample/app](etc/sample/app/src/org/jraf/androidcontentprovidergenerator/sample/provider) folder.
324
+
You can have a look at the corresponding generated code in the [etc/sample-generated-code](etc/sample-generated-code) folder.
236
325
237
326
Here is the table shema of the sample:
238
-

327
+

239
328
240
329
241
330
Building
242
331
--------
243
332
244
-
You need maven to build this tool.
333
+
This is a Gradle project.
245
334
246
-
`mvn package`
335
+
`./gradlew install` to 'install' the Gradle plugin to your local maven repo
247
336
248
-
This will produce `android_contentprovider_generator-1.11.0-bundle.jar` in the `target` folder.
0 commit comments