Modify: 剔除Hilt(不支持组件化)

This commit is contained in:
Quyunshuo
2020-08-28 10:38:48 +08:00
parent f3a559dd78
commit f9479e9242
11 changed files with 15 additions and 66 deletions

View File

@ -1,24 +0,0 @@
package com.quyunshuo.common
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.quyunshuo.common.test", appContext.packageName)
}
}

View File

@ -1,17 +0,0 @@
package com.quyunshuo.common
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}