|
|
|
@ -14,7 +14,6 @@
|
|
|
|
|
* limitations under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import androidx.annotation.VisibleForTesting
|
|
|
|
|
import com.google.samples.apps.nowinandroid.core.network.demo.DemoAssetManager
|
|
|
|
|
import java.io.File
|
|
|
|
|
import java.io.InputStream
|
|
|
|
@ -25,7 +24,7 @@ import java.util.Properties
|
|
|
|
|
* It must remain on the root package for an easier [Class.getResource] with relative paths.
|
|
|
|
|
* @see <a href="https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/dsl/UnitTestOptions">UnitTestOptions</a>
|
|
|
|
|
*/
|
|
|
|
|
@VisibleForTesting
|
|
|
|
|
|
|
|
|
|
internal object JvmUnitTestDemoAssetManager : DemoAssetManager {
|
|
|
|
|
private val config =
|
|
|
|
|
requireNotNull(javaClass.getResource("com/android/tools/test_config.properties")) {
|
|
|
|
|