Skip to content

Commit

Permalink
Version update
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyofrancis committed May 29, 2019
1 parent 0ac7248 commit 0d33e93
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 1.4.5
- Memory, performance improvements and bug fixes.

Version 1.4.4
- Initialize android dispatch queues on app launch via DispatchQueueAndroid.initAndroidDispatchQueues()

Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[ ![Download](https://api.bintray.com/packages/tonyofrancis/maven/dispatch/images/download.svg?version=1.4.4) ](https://bintray.com/tonyofrancis/maven/dispatch/1.4.4/link)
[ ![Download](https://api.bintray.com/packages/tonyofrancis/maven/dispatch/images/download.svg?version=1.4.5) ](https://bintray.com/tonyofrancis/maven/dispatch/1.4.5/link)
# DispatchQueue: A simple work scheduler for Java, Kotlin and Android

DispatchQueue is a simple and flexible work scheduler that schedulers work on a background or main thread in the form of a dispatch queue.
Expand Down Expand Up @@ -63,7 +63,7 @@ class SimpleActivity: AppCompatActivity() {
```
In this example, the queue is canceled when the Activity’s onPause method is called. There is no need to store the queue in a variable and cancel in manually in a callback method. You can if you want. The choice is yours.

Dispatch uses a `DispatchQueueController` to manage when a queue is canceled. There are many variations of the DispatchQueueController : `LifecycleDispatchQueueController` and `ActivityDispatchQueueController`. You can extend any of those classes to create your own queue controllers and set them on a queue.
DispatchQueue uses a `DispatchQueueController` to manage when a queue is canceled. There are many variations of the DispatchQueueController : `LifecycleDispatchQueueController` and `ActivityDispatchQueueController`. You can extend any of those classes to create your own queue controllers and set them on a queue.
```java
class SimpleActivity: AppCompatActivity() {

Expand Down Expand Up @@ -98,6 +98,8 @@ DispatchQueue.background

DispatchQueue.io

DispatchQueue.network

DispatchQueue.test - // Used specifically for testing

```
Expand Down Expand Up @@ -376,15 +378,15 @@ The above is a simple diagram on how a dispatch queue works. When you create a q

To use the DispatchQueue library in your project, add the following code to your project’s build.gradle file.
```java
implementation "com.tonyodev.dispatch:dispatch:1.4.4"
implementation "com.tonyodev.dispatch:dispatch:1.4.5"
```
For Android also add:
```java
implementation "com.tonyodev.dispatch:dispatch-android:1.4.4"
implementation "com.tonyodev.dispatch:dispatch-android:1.4.5"
```
To use Dispatch with Retrofit, add:
```java
implementation "com.tonyodev.dispatch:dispatch-retrofit2-adapter:1.4.4"
implementation "com.tonyodev.dispatch:dispatch-retrofit2-adapter:1.4.5"
```

Android users also have to initialize the AndroidDispatchQueues on application launch.
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

buildscript {
ext.kotlin_version = '1.3.31'
ext.library_version = '1.4.4'
ext.library_version_code = 20
ext.library_version = '1.4.5'
ext.library_version_code = 21
ext.retrofit_version = '2.5.0'
ext.gson_version = '2.8.5'
ext.novoda_bintray_version = '0.9'
Expand Down

0 comments on commit 0d33e93

Please sign in to comment.