From 6a259003d4e90108d1d8bd61d456fa1501337d13 Mon Sep 17 00:00:00 2001 From: utzcoz Date: Wed, 26 Jan 2022 02:13:37 +0800 Subject: [PATCH] Enable integration_tests:sparsearray tests Signed-off-by: utzcoz --- integration_tests/sparsearray/build.gradle | 33 ++++++++++++++++--- .../sparsearray/src/main/AndroidManifest.xml | 4 +++ 2 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 integration_tests/sparsearray/src/main/AndroidManifest.xml diff --git a/integration_tests/sparsearray/build.gradle b/integration_tests/sparsearray/build.gradle index 1db9c9b07d8..e314c7c26a0 100644 --- a/integration_tests/sparsearray/build.gradle +++ b/integration_tests/sparsearray/build.gradle @@ -1,6 +1,8 @@ -import org.robolectric.gradle.RoboJavaModulePlugin +import org.robolectric.gradle.AndroidProjectConfigPlugin -apply plugin: RoboJavaModulePlugin +apply plugin: 'com.android.library' +apply plugin: AndroidProjectConfigPlugin +apply plugin: 'kotlin-android' apply plugin: "com.diffplug.spotless" spotless { @@ -10,11 +12,34 @@ spotless { } } +android { + compileSdk 31 + + defaultConfig { + minSdkVersion 16 + targetSdkVersion 31 + } + + compileOptions { + sourceCompatibility = '1.8' + targetCompatibility = '1.8' + } + + android { + testOptions { + unitTests { + includeAndroidResources = true + } + } + } +} + dependencies { api project(":robolectric") compileOnly AndroidSdk.MAX_SDK.coordinates + testCompileOnly AndroidSdk.MAX_SDK.coordinates testRuntimeOnly AndroidSdk.MAX_SDK.coordinates - testImplementation "junit:junit:${junitVersion}" - testImplementation "com.google.truth:truth:${truthVersion}" + testImplementation "junit:junit:$junitVersion" + testImplementation "com.google.truth:truth:$truthVersion" } diff --git a/integration_tests/sparsearray/src/main/AndroidManifest.xml b/integration_tests/sparsearray/src/main/AndroidManifest.xml new file mode 100644 index 00000000000..6ce6065f533 --- /dev/null +++ b/integration_tests/sparsearray/src/main/AndroidManifest.xml @@ -0,0 +1,4 @@ + + + +