|
| 1 | +/* |
| 2 | + * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | + * |
| 4 | + * This source code is licensed under the MIT license found in the |
| 5 | + * LICENSE file in the root directory of this source tree. |
| 6 | + */ |
| 7 | + |
| 8 | +import com.facebook.fresco.buildsrc.Deps |
| 9 | +import com.facebook.fresco.buildsrc.GradleDeps |
| 10 | + |
| 11 | +plugins { |
| 12 | + id 'com.android.library' |
| 13 | + id 'kotlin-android' |
| 14 | + id 'org.jetbrains.kotlin.plugin.compose' version "2.0.0" // Must match GradleDeps.Kotlin.version |
| 15 | +} |
| 16 | + |
| 17 | +kotlin { |
| 18 | + jvmToolchain(11) |
| 19 | +} |
| 20 | + |
| 21 | +android { |
| 22 | + ndkVersion GradleDeps.Native.version |
| 23 | + |
| 24 | + buildToolsVersion FrescoConfig.buildToolsVersion |
| 25 | + compileSdkVersion FrescoConfig.compileSdkVersion |
| 26 | + |
| 27 | + namespace "com.facebook.fresco.vito.compose" |
| 28 | + |
| 29 | + defaultConfig { |
| 30 | + minSdkVersion FrescoConfig.minSdkVersion |
| 31 | + targetSdkVersion FrescoConfig.targetSdkVersion |
| 32 | + } |
| 33 | + |
| 34 | + lintOptions { |
| 35 | + abortOnError false |
| 36 | + } |
| 37 | + |
| 38 | + buildFeatures { |
| 39 | + compose true |
| 40 | + } |
| 41 | +} |
| 42 | + |
| 43 | +dependencies { |
| 44 | + compileOnly Deps.inferAnnotation |
| 45 | + |
| 46 | + implementation Deps.AndroidX.core |
| 47 | + |
| 48 | + implementation project(':vito:core') |
| 49 | + implementation project(':vito:options') |
| 50 | + implementation project(':vito:provider') |
| 51 | + implementation project(':vito:source') |
| 52 | + implementation project(':vito:view') |
| 53 | + implementation project(':ui-common') |
| 54 | + |
| 55 | + // Specify the Compose BOM with a version definition |
| 56 | + Dependency composeBom = platform('androidx.compose:compose-bom:2024.10.01') |
| 57 | + implementation composeBom |
| 58 | + testImplementation composeBom |
| 59 | + androidTestImplementation composeBom |
| 60 | + |
| 61 | + // Specify Compose library dependencies without a version definition |
| 62 | + implementation 'androidx.compose.foundation:foundation' |
| 63 | +} |
| 64 | + |
| 65 | +apply plugin: "com.vanniktech.maven.publish" |
0 commit comments