Fixed issues that could not be compiled

This commit is contained in:
dxl
2019-12-20 19:00:31 +08:00
parent e40d959c72
commit 723a3e1f6b
5 changed files with 3 additions and 46 deletions
+1 -1
View File
@@ -25,5 +25,5 @@ dependencies {
implementation project(path: ':utils')
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation project(path: ':mifaretag')
api project(path: ':mifaretag')
}
+1 -1
View File
@@ -44,7 +44,7 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(path: ':utils')
implementation project(path: ':mifaretag')
api project(path: ':mifaretag')
implementation 'androidx.appcompat:appcompat:1.1.0'
}
@@ -1,26 +0,0 @@
package cn.rrg.console;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("cn.rrg.console.test", appContext.getPackageName());
}
}
@@ -1,17 +0,0 @@
package cn.rrg.console;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}
+1 -1
View File
@@ -39,7 +39,7 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':console')
api project(':console')
implementation 'androidx.appcompat:appcompat:1.1.0'
}