File tree Expand file tree Collapse file tree 4 files changed +4
-2
lines changed
src/androidTest/java/net/newpipe/newplayer
androidTest/java/net/newpipe/newplayer
main/java/net/newpipe/newplayer/testapp Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ android {
2424 }
2525
2626 defaultConfig {
27+ minSdk = 21
2728 aarMetadata {
2829 minCompileSdk = 21
2930 }
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments