File tree 5 files changed +8
-16
lines changed
library/scene_ktx/src/test/java/com/bytedance/scene/ktx
5 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,8 @@ android {
20
20
}
21
21
22
22
dependencies {
23
- implementation fileTree(dir : ' libs' , include : [' *.jar' ])
24
23
implementation SAMPLE_APPCOMPAT_LIB
25
24
implementation DESIGN_LIB
26
- testImplementation ' junit:junit:4.12'
27
- androidTestImplementation ' com.android.support.test:runner:1.0.2'
28
- androidTestImplementation ' com.android.support.test.espresso:espresso-core:3.0.2'
29
25
30
26
implementation project(path : ' :library:scene' )
31
27
implementation project(path : ' :library:scene_ui' )
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ org.gradle.jvmargs=-Xmx1536m
16
16
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17
17
# org.gradle.parallel=true
18
18
19
- android.useDeprecatedNdk = true
20
19
android.useAndroidX =true
21
20
android.enableJetifier =false
22
21
@@ -25,10 +24,10 @@ MIN_SDK_VERSION = 21
25
24
TARGET_SDK_VERSION = 30
26
25
COMPILE_SDK_VERSION = 30
27
26
28
- KOTLIN_LIB = org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4 .21
29
- KOTLIN_PLUGIN = org.jetbrains.kotlin:kotlin-gradle-plugin:1.4 .21
27
+ KOTLIN_LIB = org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7 .21
28
+ KOTLIN_PLUGIN = org.jetbrains.kotlin:kotlin-gradle-plugin:1.7 .21
30
29
31
- ANDROID_GRADLE_PLUGIN = com.android.tools.build:gradle:3.6.0
30
+ ANDROID_GRADLE_PLUGIN = com.android.tools.build:gradle:7.4.2
32
31
33
32
APPCOMPAT_LIB = androidx.appcompat:appcompat:1.0.0
34
33
CORE_LIB = androidx.core:core:1.5.0
@@ -42,8 +41,6 @@ SAVED_STATE_LIB = androidx.savedstate:savedstate:1.1.0
42
41
INTERPOLATOR_LIB = androidx.interpolator:interpolator:1.0.0
43
42
44
43
# # unit test dependency
45
- android.enableUnitTestBinaryResources =true
46
- android.jetifier.blacklist =bcprov
47
44
ROBOLECTRIC = org.robolectric:robolectric:4.12.2
48
45
AUTO_SERVICE = com.google.auto.service:auto-service:1.0-rc4
49
46
JUNIT = junit:junit:4.13.2
Original file line number Diff line number Diff line change 1
1
# Tue Sep 17 18:31:25 CST 2019
2
2
distributionBase =GRADLE_USER_HOME
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-5 .6.4 -all.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-7 .6.3 -all.zip
4
4
distributionPath =wrapper/dists
5
5
zipStorePath =wrapper/dists
6
6
zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import android.view.View
8
8
import android.view.ViewGroup
9
9
import com.bytedance.scene.Scene
10
10
import com.bytedance.scene.ktx.utility.TestActivity
11
- import com.bytedance.scene.ktx.utility.TestAppCompatActivity
11
+ import com.bytedance.scene.ktx.utility.TestFragmentActivity
12
12
import org.junit.Assert.*
13
13
import org.junit.Test
14
14
import org.junit.runner.RunWith
@@ -184,7 +184,7 @@ class SceneExtensionsTests {
184
184
return View (requireSceneContext())
185
185
}
186
186
}
187
- val manager = createFromInitSceneLifecycleManager(TestAppCompatActivity ::class .java, scene).first
187
+ val manager = createFromInitSceneLifecycleManager(TestFragmentActivity ::class .java, scene).first
188
188
assertNotNull(scene.fragmentActivity())
189
189
assertNotNull(scene.requireFragmentActivity())
190
190
}
Original file line number Diff line number Diff line change @@ -2,13 +2,12 @@ package com.bytedance.scene.ktx.utility
2
2
3
3
import android.os.Bundle
4
4
import android.widget.FrameLayout
5
- import androidx.appcompat .app.AppCompatActivity
5
+ import androidx.fragment .app.FragmentActivity
6
6
7
- class TestAppCompatActivity : AppCompatActivity () {
7
+ class TestFragmentActivity : FragmentActivity () {
8
8
lateinit var mFrameLayout: FrameLayout
9
9
10
10
override fun onCreate (savedInstanceState : Bundle ? ) {
11
- setTheme(com.bytedance.scene.ktx.R .style.Theme_AppCompat )
12
11
super .onCreate(savedInstanceState)
13
12
mFrameLayout = FrameLayout (this )
14
13
setContentView(mFrameLayout)
You can’t perform that action at this time.
0 commit comments