Browse Source

upgrade: gradle

drake 2 years ago
parent
commit
43abfa0925

+ 0 - 1
build.gradle

@@ -22,7 +22,6 @@ buildscript {
         brv_version = '1.3.79'
         coroutine_version = '1.6.0'
         glide_version = '4.11.0'
-        room_version = "2.3.0"
         okhttp_version = "4.10.0"
     }
 

+ 0 - 3
net/build.gradle

@@ -46,9 +46,6 @@ android {
 dependencies {
     api fileTree(dir: "libs", include: ["*.jar"])
     implementation 'androidx.appcompat:appcompat:1.3.1'
-    testImplementation "junit:junit:4.13.2"
-    androidTestImplementation "androidx.test:runner:1.3.0"
-    androidTestImplementation "androidx.test.espresso:espresso-core:3.3.0"
 
     compileOnly "com.squareup.okhttp3:okhttp:$okhttp_version"
 

+ 0 - 38
net/src/androidTest/java/com/drake/net/ExampleInstrumentedTest.kt

@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2018 Drake, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.drake.net
-
-import androidx.test.ext.junit.runners.AndroidJUnit4
-import androidx.test.platform.app.InstrumentationRegistry
-import org.junit.Assert.assertEquals
-import org.junit.Test
-import org.junit.runner.RunWith
-
-/**
- * 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.drake.net.test", appContext.packageName)
-    }
-}

+ 0 - 32
net/src/test/java/com/drake/net/ExampleUnitTest.kt

@@ -1,32 +0,0 @@
-/*
- * Copyright (C) 2018 Drake, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.drake.net
-
-import org.junit.Assert.assertEquals
-import org.junit.Test
-
-/**
- * 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)
-    }
-}

+ 1 - 1
sample/build.gradle

@@ -103,5 +103,5 @@ dependencies {
     implementation 'com.github.liangjingkanji:StatusBar:2.0.2' // 透明状态栏
     implementation 'com.github.liangjingkanji:debugkit:1.3.0' // 开发调试窗口工具
     implementation "com.github.liangjingkanji:Tooltip:1.2.1" // 吐司工具
-    implementation 'com.github.liangjingkanji:Engine:0.0.64'
+    implementation 'com.github.liangjingkanji:Engine:0.0.65'
 }