From 0d33e93de0e2ecdedbe2380c44f020452ef21836 Mon Sep 17 00:00:00 2001 From: Tonyo Francis Date: Tue, 28 May 2019 22:28:00 -0400 Subject: [PATCH] Version update --- CHANGELOG | 3 +++ README.md | 12 +++++++----- build.gradle | 4 ++-- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 8676633..a64ddb9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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() diff --git a/README.md b/README.md index d65d765..6628b10 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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() { @@ -98,6 +98,8 @@ DispatchQueue.background DispatchQueue.io +DispatchQueue.network + DispatchQueue.test - // Used specifically for testing ``` @@ -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. diff --git a/build.gradle b/build.gradle index d230a07..6253847 100644 --- a/build.gradle +++ b/build.gradle @@ -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'