Skip to content

Commit 24172d9

Browse files
authored
Merge pull request #21 from crazo7924/fix-tests
Fix tests for CI
2 parents 5fa6eb1 + 60f7c4d commit 24172d9

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

new-player/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ android {
2424
}
2525

2626
defaultConfig {
27+
minSdk = 21
2728
aarMetadata {
2829
minCompileSdk = 21
2930
}

new-player/src/androidTest/java/net/newpipe/newplayer/ExampleInstrumentedTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
1919
fun useAppContext() {
2020
// Context of the app under test.
2121
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22-
assertEquals("net.newpipe.newplayer.test", appContext.packageName)
22+
assertEquals("net.newpipe.newplayer", appContext.packageName)
2323
}
2424
}

test-app/src/androidTest/java/net/newpipe/newplayer/ExampleInstrumentedTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ class ExampleInstrumentedTest {
3939
fun useAppContext() {
4040
// Context of the app under test.
4141
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
42-
assertEquals("net.newpipe.newplayer", appContext.packageName)
42+
assertEquals("net.newpipe.newplayer.testapp", appContext.packageName)
4343
}
4444
}

test-app/src/main/java/net/newpipe/newplayer/testapp/MainActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class MainActivity : AppCompatActivity() {
202202
* In a pure compose environment such reconfigurations are not necessary. Since NewPipe
203203
* might not be fully Compose yet, such hacks are required.
204204
*/
205+
@OptIn(UnstableApi::class)
205206
override fun onConfigurationChanged(newConfig: Configuration) {
206207
super.onConfigurationChanged(newConfig)
207208
if (currentOrientation != newConfig.orientation) {

0 commit comments

Comments
 (0)