Files
flipper/android/sample/build.gradle
Pascal Hartig d676f8f0a6 Bump AndroidX/Kotlin setup
Summary:
Just a few tweaks to bring AndroidX up-to-date. Required
some fixes to the Kotlin Tutorial as it was throwing
errors about JRE incompatibilities.

Reviewed By: fabiomassimo

Differential Revision: D29761484

fbshipit-source-id: 10cb76115fe7542a60b6e5d14be9c0434e85171c
2021-07-19 03:54:06 -07:00

78 lines
2.0 KiB
Groovy

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
apply plugin: 'com.android.application'
android {
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/**'
}
}
}
compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
// Android Support Library
implementation deps.supportAppCompat
// Litho
implementation deps.lithoCore
implementation deps.lithoWidget
implementation deps.lithoAnnotations
implementation deps.lithoFresco
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
annotationProcessor deps.lithoProcessor
// Third-party
implementation deps.soloader
implementation deps.okhttp3
implementation deps.fresco
// 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(':fresco-plugin')
debugImplementation project(':network-plugin')
debugImplementation project(':litho-plugin')
debugImplementation project(':leakcanary-plugin')
releaseImplementation project(':noop')
}