Skip to content

Commit

Permalink
feat(dispatchthread): remove androidx support
Browse files Browse the repository at this point in the history
  • Loading branch information
Justson committed Aug 7, 2020
1 parent 00747f3 commit be6b3ad
Show file tree
Hide file tree
Showing 7 changed files with 306 additions and 296 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
// implementation project(path: ':library')
implementation 'com.github.Justson:dispatch-queue:v1.0.3'
implementation project(path: ':library')
// implementation 'com.github.Justson:dispatch-queue:v1.0.4'
}
6 changes: 4 additions & 2 deletions app/src/main/java/com/queue/sample/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import android.os.Bundle;

import com.queue.library.Dispatch;
import com.queue.library.DispatchThread;
import com.queue.library.DispatchThread;

import androidx.appcompat.app.AppCompatActivity;
Expand Down Expand Up @@ -58,10 +58,12 @@ protected void onCreate(Bundle savedInstanceState) {
// // output the order "1 2 3 4"
// });

DispatchThread.create();

/**
* use b
*/
Dispatch messageDispatch = DispatchThread.create("message");
DispatchThread messageDispatch = DispatchThread.create("message");

messageDispatch.postRunnable(() -> {
// do you work , work in message thread
Expand Down
1 change: 0 additions & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
Expand Down
283 changes: 0 additions & 283 deletions library/src/main/java/com/queue/library/Dispatch.java

This file was deleted.

Loading

0 comments on commit be6b3ad

Please sign in to comment.