Summary: [android] Upgrade gradle project Makes us compatible with Android Studio Flamingo and unlocks upgrades to Kotlin (which we need to be in sync with fbsource). Pull Request resolved: https://github.com/facebook/flipper/pull/4751 Test Plan: - ./gradlew :android:assembleDebug - Android Studio Sync - CI --- Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/flipper/pull/4751). * https://github.com/facebook/flipper/issues/4759 * https://github.com/facebook/flipper/issues/4758 * https://github.com/facebook/flipper/issues/4757 * https://github.com/facebook/flipper/issues/4756 * https://github.com/facebook/flipper/issues/4755 * https://github.com/facebook/flipper/issues/4754 * https://github.com/facebook/flipper/issues/4753 * https://github.com/facebook/flipper/issues/4752 * __->__ https://github.com/facebook/flipper/issues/4751 Reviewed By: aigoncharov Differential Revision: D46068236 Pulled By: passy fbshipit-source-id: 707422134b49c0d940b663f6f40937fe6561a038
57 lines
1.4 KiB
Groovy
57 lines
1.4 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.
|
|
*/
|
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
namespace 'com.facebook.xplat.sonar'
|
|
compileSdkVersion rootProject.compileSdkVersion
|
|
buildToolsVersion rootProject.buildToolsVersion
|
|
ndkVersion rootProject.ndkVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.minSdkVersion
|
|
targetSdkVersion rootProject.targetSdkVersion
|
|
externalNativeBuild {
|
|
cmake {
|
|
arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_shared'
|
|
}
|
|
}
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
path './CMakeLists.txt'
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile './AndroidManifest.xml'
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
prefab true
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':third-party')
|
|
implementation project(':folly')
|
|
implementation deps.openssl
|
|
}
|
|
}
|
|
|
|
// Patch below is used in case the 'configureCMake' task
|
|
// gets executed in parallel with the 'preBuild' task.
|
|
// Our CMakeFile expects third-party dependencies to be already
|
|
// in-place and patched.
|
|
tasks.matching { it.name.startsWith("configureCMake") }.all {
|
|
dependsOn(tasks.getByPath(':third-party:prepare'))
|
|
}
|
|
|
|
preBuild.dependsOn(tasks.getByPath(':third-party:prepare'))
|