mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	Fix MigrationTestHelper deprecation
This commit is contained in:
		| @@ -4,7 +4,6 @@ import android.content.ContentValues | ||||
| import android.database.sqlite.SQLiteDatabase | ||||
| import androidx.room.Room | ||||
| import androidx.room.testing.MigrationTestHelper | ||||
| import androidx.sqlite.db.framework.FrameworkSQLiteOpenHelperFactory | ||||
| import androidx.test.core.app.ApplicationProvider | ||||
| import androidx.test.ext.junit.runners.AndroidJUnit4 | ||||
| import androidx.test.platform.app.InstrumentationRegistry | ||||
| @@ -33,8 +32,7 @@ class DatabaseMigrationTest { | ||||
|     @get:Rule | ||||
|     val testHelper = MigrationTestHelper( | ||||
|         InstrumentationRegistry.getInstrumentation(), | ||||
|         AppDatabase::class.java.canonicalName, | ||||
|         FrameworkSQLiteOpenHelperFactory() | ||||
|         AppDatabase::class.java | ||||
|     ) | ||||
|  | ||||
|     @Test | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 TacoTheDank
					TacoTheDank