Skip to content

Commit

Permalink
Migrate drawablepainter module gradle file to Kotlin DSL
Browse files Browse the repository at this point in the history
  • Loading branch information
oas004 committed May 1, 2023
1 parent c75435b commit 57966eb
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@file:Suppress("UnstableApiUsage")

plugins {
id("com.android.library")
Expand All @@ -28,12 +29,12 @@ kotlin {
android {
namespace = "com.google.accompanist.drawablepainter"

compileSdkVersion = 33
compileSdk = 33

defaultConfig {
minSdkVersion 21
minSdk = 21
// targetSdkVersion has no effect for libraries. This is only used for the test APK
targetSdkVersion 33
targetSdk = 33
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

Expand All @@ -51,16 +52,16 @@ android {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}

lintOptions {
lint {
textReport = true
textOutput 'stdout'
textOutput = File("stdout")
// We run a full lint analysis as build part in CI, so skip vital checks for assemble tasks
checkReleaseBuilds = false
}

testOptions {
unitTests {
includeAndroidResources = true
isIncludeAndroidResources = true
}
animationsDisabled = true
}
Expand All @@ -77,4 +78,4 @@ dependencies {
implementation(libs.kotlin.coroutines.android)
}

apply plugin: "com.vanniktech.maven.publish"
apply(plugin = "com.vanniktech.maven.publish")

0 comments on commit 57966eb

Please sign in to comment.