Skip to content

Commit

Permalink
v0.1.0 clean project
Browse files Browse the repository at this point in the history
  • Loading branch information
ibb-jile committed Sep 22, 2020
1 parent 25275d2 commit 4deb39b
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 22 deletions.
10 changes: 3 additions & 7 deletions AndroidPromise/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ android {
targetSdkVersion 29
versionCode 1
versionName "0.1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
Expand All @@ -29,9 +28,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'

}
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
}
2 changes: 1 addition & 1 deletion AndroidPromise/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.ibbjile.androidPromise">
package="androidPromise">

/
</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ibbjile.androidPromise;
package androidPromise;

public interface ExceptionCallback<T extends Throwable> {
void fail(T e);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ibbjile.androidPromise;
package androidPromise;

public class Promise<T> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ibbjile.androidPromise;
package androidPromise;

public interface PromiseCallback {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ibbjile.androidPromise;
package androidPromise;

public interface PromiseInPromiseCallback<T_PREV, T_NEW> extends PromiseCallback {
Promise<T_NEW> run(T_PREV result) throws Exception;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ibbjile.androidPromise;
package androidPromise;

public interface StartCallback<T> extends PromiseCallback {
void run(Promise<T> promise) throws Exception;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ibbjile.androidPromise;
package androidPromise;

public interface StartCallbackWithoutPromise<T> extends PromiseCallback {
T run() throws Exception;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ibbjile.androidPromise;
package androidPromise;

public interface ThenCallback<T_PREV, T_NEW> extends PromiseCallback {
void run(T_PREV result, Promise<T_NEW> promise) throws Exception;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ibbjile.androidPromise;
package androidPromise;

public interface ThenCallbackWithoutPromise<T_PREV, T_NEW> {
T_NEW run(T_PREV result) throws Exception;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ibbjile.androidPromise;
package androidPromise;

public interface VoidCallback<T> extends PromiseCallback{
void run(T result, Promise<T> promise) throws Exception;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.ibbjile.androidPromise;
package androidPromise;

public interface VoidCallbackWithoutPromise<T> {
void run(T result) throws Exception;
Expand Down
9 changes: 5 additions & 4 deletions AndroidPromise/src/test/java/PromiseTest.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import org.ibbjile.androidPromise.ExceptionCallback;
import org.ibbjile.androidPromise.Promise;
import org.ibbjile.androidPromise.ThenCallback;
import org.ibbjile.androidPromise.VoidCallback;
import org.junit.Assert;
import org.junit.Test;

Expand All @@ -10,6 +6,11 @@
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;

import androidPromise.ExceptionCallback;
import androidPromise.Promise;
import androidPromise.ThenCallback;
import androidPromise.VoidCallback;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

Expand Down

0 comments on commit 4deb39b

Please sign in to comment.