Summary: This includes a bunch of different things which I wanted to do separately, but it's all a massive Jenga Tower and you cannot remove a single piece. - Litho upgrade - Gradle plugin upgrade - Remove storage permission as it apparently doesn't do anything above Android 10 - Upgraded build target to Android 12 because the new support lib/Kotlin stdlib required this which then caused the issue below to pop up - Added "export=true" everywhere as this is now a blocking issue if you don't have it - Upgraded to the LeakCanary2 plugin as version one no longer builds with an Android 12 target for the export reason - Make CI run on JRE 11 because that's required by the new Gradle plugin - Update internal CI to no longer define the SDK twice and use Java 11 Pull Request resolved: https://github.com/facebook/flipper/pull/3095 Test Plan: Built Android Sample and Tutorial app, connected to Flipper. Reviewed By: lblasa Differential Revision: D32644410 Pulled By: passy fbshipit-source-id: 8978f158d9c642b3bbd9dbbd7321eb20098a7a53
77 lines
2.0 KiB
Groovy
77 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')
|
|
releaseImplementation project(':noop')
|
|
}
|