Files
flipper/android/sample/build.gradle
Pascal Hartig b0f9da8ed7 Bump fresco to 3.1.0 (#5158)
Summary:
[android] Bump fresco to 3.1.0

 ---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/flipper/pull/5158).
* https://github.com/facebook/flipper/issues/5160
* https://github.com/facebook/flipper/issues/5159
* __->__ https://github.com/facebook/flipper/issues/5158

Pull Request resolved: https://github.com/facebook/flipper/pull/5158

Reviewed By: antonk52

Differential Revision: D49411899

Pulled By: passy

fbshipit-source-id: b3a7a02a61665425c5c59a04d82941d0cbbea254
2023-09-19 06:15:20 -07:00

112 lines
3.0 KiB
Groovy

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
namespace 'com.facebook.flipper.sample'
compileSdkVersion rootProject.compileSdkVersion
buildToolsVersion rootProject.buildToolsVersion
ndkVersion rootProject.ndkVersion
defaultConfig {
minSdkVersion 21
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
applicationId 'com.facebook.flipper.sample'
targetSdkVersion rootProject.targetSdkVersion
}
lintOptions {
abortOnError false
}
sourceSets {
main {
manifest.srcFile './AndroidManifest.xml'
}
test {
java {
exclude 'com/facebook/flipper/plugins/facebook/**'
}
}
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.4.6"
}
kotlinOptions {
jvmTarget = "1.8"
}
packagingOptions {
pickFirst "**/libcrypto.so"
pickFirst "**/libevent-2.1.so"
pickFirst "**/libevent_core-2.1.so"
pickFirst "**/libevent_extra-2.1.so"
pickFirst "**/libflipper.so"
pickFirst "**/libssl.so"
}
}
dependencies {
// Android Support Library
implementation deps.supportAppCompat
// Litho
implementation deps.lithoCore
implementation deps.lithoWidget
implementation deps.lithoAnnotations
implementation deps.lithoFresco
annotationProcessor deps.lithoProcessor
// Compose
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.activity:activity-ktx:1.7.2'
implementation 'androidx.compose.runtime:runtime:1.4.3'
implementation 'androidx.activity:activity-compose:1.7.2'
implementation 'androidx.compose.ui:ui:1.4.3'
implementation 'androidx.compose.material3:material3:1.1.1'
implementation 'androidx.compose.ui:ui-tooling:1.4.3'
implementation 'androidx.compose.ui:ui-tooling-preview:1.4.3'
// Third-party
implementation deps.soloader
implementation deps.okhttp3
implementation deps.fresco
implementation deps.frescoUiCommon
implementation deps.frescoVito
implementation deps.frescoVitoLitho
implementation deps.inferAnnotations
debugImplementation deps.flipperFrescoPlugin
// Integration test
androidTestImplementation deps.testCore
androidTestImplementation deps.testRules
// Unit tests
testImplementation deps.mockito
testImplementation deps.robolectric
testImplementation deps.hamcrest
testImplementation deps.junit
debugImplementation project(':android')
debugImplementation project(':network-plugin')
debugImplementation project(':litho-plugin')
debugImplementation project(':jetpack-compose-plugin')
releaseImplementation project(':noop')
}