File tree Expand file tree Collapse file tree
java/info/hannes/logcat/sample Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ -keep class timber.log.Timber { *; }
Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ android {
1010 versionCode 1
1111 versionName " 1.0"
1212
13- minSdkVersion 16
13+ minSdkVersion 21
1414 targetSdkVersion 30
1515
1616 compileOptions {
1717 sourceCompatibility 1.8
1818 targetCompatibility 1.8
1919 }
2020
21- testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner "
21+ testInstrumentationRunner " info.hannes.logcat.sample.CustomTestRunner "
2222 }
2323
2424 buildTypes {
@@ -52,6 +52,7 @@ dependencies {
5252 androidTestImplementation " androidx.test.ext:junit:$extJUnitVersion "
5353 androidTestImplementation " androidx.test.ext:truth:1.3.0"
5454 androidTestImplementation " com.google.truth:truth:1.1.2"
55+ androidTestImplementation " androidx.multidex:multidex:2.0.1"
5556}
5657
5758def adbDirectory = ' /storage/emulated/0/Download'
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : tools =" http://schemas.android.com/tools"
4- package =" info.mx.tracks"
5- android : versionCode =" 1"
6- android : versionName =" 1.0" >
4+ package =" info.mx.tracks" >
75
86 <application
97 android : label =" MxTest"
Original file line number Diff line number Diff line change 1+ package info .hannes .logcat .sample ;
2+
3+ import android .os .Bundle ;
4+
5+ import androidx .multidex .MultiDex ;
6+ import androidx .test .runner .AndroidJUnitRunner ;
7+
8+
9+ public class CustomTestRunner extends AndroidJUnitRunner {
10+ @ Override
11+ public void onCreate (Bundle arguments ) {
12+ MultiDex .install (getTargetContext ());
13+ super .onCreate (arguments );
14+ }
15+ }
Original file line number Diff line number Diff line change 1+ -keep class timber.log.** { *; }
You can’t perform that action at this time.
0 commit comments