@@ -10,23 +10,21 @@ plugins {
1010}
1111
1212android {
13- setCompileSdkVersion( property(" compileSdkVersion" ) as Int )
13+ compileSdk = property(" compileSdkVersion" ) as Int
1414 defaultConfig {
15- setMinSdkVersion(property(" minSdkVersion" ) as Int )
16- setTargetSdkVersion(property(" targetSdkVersion" ) as Int )
17- versionCode = 1
18- versionName = " 2.7.1"
15+ minSdk = property(" minSdkVersion" ) as Int
16+ targetSdk = property(" targetSdkVersion" ) as Int
1917 testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
20- testInstrumentationRunnerArgument( " filter" , " " +
18+ testInstrumentationRunnerArguments[ " filter" ] = " " +
2119 " com.otaliastudios.cameraview.tools.SdkExcludeFilter," +
22- " com.otaliastudios.cameraview.tools.SdkIncludeFilter" )
20+ " com.otaliastudios.cameraview.tools.SdkIncludeFilter"
2321 }
2422 buildTypes[" debug" ].isTestCoverageEnabled = true
2523 buildTypes[" release" ].isMinifyEnabled = false
2624}
2725
2826dependencies {
29- testImplementation(" junit:junit:4.13" )
27+ testImplementation(" junit:junit:4.13.1 " )
3028 testImplementation(" org.mockito:mockito-inline:2.28.2" )
3129
3230 androidTestImplementation(" androidx.test:runner:1.4.0" )
@@ -35,7 +33,7 @@ dependencies {
3533 androidTestImplementation(" org.mockito:mockito-android:2.28.2" )
3634 androidTestImplementation(" androidx.test.espresso:espresso-core:3.4.0" )
3735
38- api(" androidx.exifinterface:exifinterface:1.3.2 " )
36+ api(" androidx.exifinterface:exifinterface:1.3.3 " )
3937 api(" androidx.lifecycle:lifecycle-common:2.3.1" )
4038 api(" com.google.android.gms:play-services-tasks:17.2.1" )
4139 implementation(" androidx.annotation:annotation:1.2.0" )
@@ -56,6 +54,7 @@ publisher {
5654 project.addDeveloper(
" natario1" ,
" [email protected] " )
5755 release.sources = Release .SOURCES_AUTO
5856 release.docs = Release .DOCS_AUTO
57+ release.version = " 2.7.2"
5958
6059 directory()
6160
@@ -87,7 +86,7 @@ tasks.register("runUnitTests") { // changing name? change github workflow
8786 dependsOn(" testDebugUnitTest" )
8887 doLast {
8988 copy {
90- from(" $buildDir /jacoco /testDebugUnitTest.exec" )
89+ from(" $buildDir /outputs/unit_test_code_coverage/debugUnitTest /testDebugUnitTest.exec" )
9190 into(" $coverageInputDir /unit_tests" ) // changing? change github workflow
9291 }
9392 }
@@ -131,8 +130,8 @@ tasks.register("computeCoverage", JacocoReport::class) {
131130 " **/com/otaliastudios/cameraview/filters/**.*"
132131 )
133132 })
134- reports.html.isEnabled = true
135- reports.xml.isEnabled = true
136- reports.html.destination = file(" $coverageOutputDir /html" )
137- reports.xml.destination = file(" $coverageOutputDir /xml/report.xml" )
133+ reports.html.required.set( true )
134+ reports.xml.required.set( true )
135+ reports.html.outputLocation.set( file(" $coverageOutputDir /html" ) )
136+ reports.xml.outputLocation.set( file(" $coverageOutputDir /xml/report.xml" ) )
138137}
0 commit comments