From 723a3e1f6b3165540c396b92a663fa80ac0607e6 Mon Sep 17 00:00:00 2001
From: dxl <64101226@qq.com>
Date: Fri, 20 Dec 2019 19:00:31 +0800
Subject: [PATCH] Fixed issues that could not be compiled
---
chameleon/build.gradle | 2 +-
commapping/build.gradle | 2 +-
.../rrg/console/ExampleInstrumentedTest.java | 26 -------------------
.../java/cn/rrg/console/ExampleUnitTest.java | 17 ------------
mfkey/build.gradle | 2 +-
5 files changed, 3 insertions(+), 46 deletions(-)
delete mode 100644 console/src/androidTest/java/cn/rrg/console/ExampleInstrumentedTest.java
delete mode 100644 console/src/test/java/cn/rrg/console/ExampleUnitTest.java
diff --git a/chameleon/build.gradle b/chameleon/build.gradle
index 52b4ae7f..f318e9ed 100644
--- a/chameleon/build.gradle
+++ b/chameleon/build.gradle
@@ -25,5 +25,5 @@ dependencies {
implementation project(path: ':utils')
implementation 'androidx.appcompat:appcompat:1.1.0'
- implementation project(path: ':mifaretag')
+ api project(path: ':mifaretag')
}
diff --git a/commapping/build.gradle b/commapping/build.gradle
index 54ccd895..f9f196b4 100644
--- a/commapping/build.gradle
+++ b/commapping/build.gradle
@@ -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'
}
diff --git a/console/src/androidTest/java/cn/rrg/console/ExampleInstrumentedTest.java b/console/src/androidTest/java/cn/rrg/console/ExampleInstrumentedTest.java
deleted file mode 100644
index 4126c398..00000000
--- a/console/src/androidTest/java/cn/rrg/console/ExampleInstrumentedTest.java
+++ /dev/null
@@ -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 Testing documentation
- */
-@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());
- }
-}
diff --git a/console/src/test/java/cn/rrg/console/ExampleUnitTest.java b/console/src/test/java/cn/rrg/console/ExampleUnitTest.java
deleted file mode 100644
index 5ae9ddd1..00000000
--- a/console/src/test/java/cn/rrg/console/ExampleUnitTest.java
+++ /dev/null
@@ -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 Testing documentation
- */
-public class ExampleUnitTest {
- @Test
- public void addition_isCorrect() {
- assertEquals(4, 2 + 2);
- }
-}
\ No newline at end of file
diff --git a/mfkey/build.gradle b/mfkey/build.gradle
index 64063fac..336be77a 100644
--- a/mfkey/build.gradle
+++ b/mfkey/build.gradle
@@ -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'
}