From 17b2bc6b071cb6e5705dd75bb683528f33c8d94d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Kwieci=C5=84ski?= <36954793+mateuszkwiecinski@users.noreply.github.com> Date: Fri, 24 May 2024 23:50:21 +0200 Subject: [PATCH] Set `targetSdk` for android tests (#632) --- .../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()) {