From 00e2c95ae4a7b8efe9a16c25208ce45f4a19593b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwiecin=CC=81ski?= Date: Fri, 24 May 2024 23:43:17 +0200 Subject: [PATCH] Set `targetSdk` for android tests --- .../com/project/starter/modules/plugins/AndroidLibraryPlugin.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/src/main/kotlin/com/project/starter/modules/plugins/AndroidLibraryPlugin.kt b/android/src/main/kotlin/com/project/starter/modules/plugins/AndroidLibraryPlugin.kt index e808ba95..eb414d82 100644 --- a/android/src/main/kotlin/com/project/starter/modules/plugins/AndroidLibraryPlugin.kt +++ b/android/src/main/kotlin/com/project/starter/modules/plugins/AndroidLibraryPlugin.kt @@ -28,6 +28,8 @@ class AndroidLibraryPlugin : Plugin { buildFeatures.buildConfig = false configureAndroidLint(lint) + + testOptions.targetSdk = rootConfig.android.targetSdkVersion ?: rootConfig.android.compileSdkVersion } extensions.getByType().beforeVariants { variantBuilder -> if (variantBuilder.productFlavors.isEmpty()) {