GeezerVison is showing github.com — Add migration notes to READMEs. · hpdx/objectbox-java@8009915
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: objectbox-rxjava/README.md +4-3Lines changed: 4 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +:information_source: This library will receive no new features. |
| 2 | +Development will continue with the [RxJava 3 APIs for ObjectBox](/objectbox-rxjava3). |
| 3 | + |
1 | 4 | RxJava 2 APIs for ObjectBox |
2 | 5 | =========================== |
3 | 6 | While ObjectBox has [data observers and reactive extensions](https://docs.objectbox.io/data-observers-and-rx) built-in, |
@@ -13,7 +16,7 @@ For general object changes, you can use `RxBoxStore` to create an `Observable`. |
13 | 16 | For example to get query results and subscribe to future updates (Object changes will automatically emmit new data): |
14 | 17 |
|
15 | 18 | ```java |
16 | | -Query query = box.query().build(); |
| 19 | +Query<User> query = box.query().build(); |
17 | 20 | RxQuery.observable(query).subscribe(this); |
18 | 21 | ``` |
19 | 22 |
|
@@ -27,5 +30,3 @@ implementation "io.objectbox:objectbox-rxjava:$objectboxVersion" |
27 | 30 | Links |
28 | 31 | ----- |
29 | 32 | [Data Observers and Rx Documentation](https://docs.objectbox.io/data-observers-and-rx) |
30 | | - |
31 | | -[Note App example](https://github.com/objectbox/objectbox-examples/blob/master/objectbox-example/src/main/java/io/objectbox/example/ReactiveNoteActivity.java) |
|
Collapse file
Copy file name to clipboardExpand all lines: objectbox-rxjava3/README.md +11-3Lines changed: 11 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ For general object changes, you can use `RxBoxStore` to create an `Observable`. |
13 | 13 | For example to get query results and subscribe to future updates (Object changes will automatically emmit new data): |
14 | 14 |
|
15 | 15 | ```java |
16 | | -Query query = box.query().build(); |
| 16 | +Query<User> query = box.query().build(); |
17 | 17 | RxQuery.observable(query).subscribe(this); |
18 | 18 | ``` |
19 | 19 |
|
@@ -24,8 +24,16 @@ Grab via Gradle: |
24 | 24 | implementation "io.objectbox:objectbox-rxjava3:$objectboxVersion" |
25 | 25 | ``` |
26 | 26 |
|
| 27 | +Migrating from RxJava 2 |
| 28 | +----------------------- |
| 29 | + |
| 30 | +If you have previously used the ObjectBox RxJava library note the following changes: |
| 31 | + |
| 32 | +- The location of the dependency has changed to `objectbox-rxjava3` (see above). |
| 33 | +- The package name has changed to `io.objectbox.rx3` (from `io.objectbox.rx`). |
| 34 | + |
| 35 | +This should allow using both versions side-by-side while you migrate your code to RxJava 3. |
| 36 | + |
27 | 37 | Links |
28 | 38 | ----- |
29 | 39 | [Data Observers and Rx Documentation](https://docs.objectbox.io/data-observers-and-rx) |
30 | | - |
31 | | -[Note App example](https://github.com/objectbox/objectbox-examples/blob/master/objectbox-example/src/main/java/io/objectbox/example/ReactiveNoteActivity.java) |
|