1apply plugin: 'com.android.application' 2 3android { 4 // This has to match what the appcompat dep expects. 5 compileSdkVersion 31 6 7 defaultConfig { 8 applicationId "com.google.android.mobly.snippet.example4" 9 minSdkVersion 26 10 targetSdkVersion 31 11 versionCode 1 12 versionName "0.0.2" 13 } 14 lintOptions { 15 abortOnError false 16 checkAllWarnings true 17 warningsAsErrors true 18 disable 'HardwareIds','MissingApplicationIcon','GoogleAppIndexingWarning','InvalidPackage','OldTargetApi' 19 } 20} 21 22dependencies { 23 // The 'compile project' dep is to compile against the snippet lib source in 24 // this repo. For your own snippets, you'll want to use the regular 25 // 'compile' dep instead: 26 //compile 'com.google.android.mobly:mobly-snippet-lib:1.3.1' 27 implementation project(':mobly-snippet-lib') 28 implementation 'junit:junit:4.13.2' 29 implementation 'androidx.test:runner:1.4.0' 30 implementation 'androidx.appcompat:appcompat:1.4.0-beta01' 31 implementation 'androidx.test.uiautomator:uiautomator:2.2.0' 32} 33