Summary: This is in line with the most recent stable Android Studio Release. Pull Request resolved: https://github.com/facebook/flipper/pull/958 Test Plan: Used it myself. Open Source CI required a higher NDK, so let's first check what CI says to that internally now. Reviewed By: jknoxville Differential Revision: D20794634 Pulled By: passy fbshipit-source-id: c32f934634b036ad3c1cad9fc49541e585d64329
40 lines
1002 B
Groovy
40 lines
1002 B
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.library'
|
|
|
|
android {
|
|
compileSdkVersion rootProject.compileSdkVersion
|
|
buildToolsVersion rootProject.buildToolsVersion
|
|
ndkVersion rootProject.ndkVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.minSdkVersion
|
|
targetSdkVersion rootProject.targetSdkVersion
|
|
externalNativeBuild {
|
|
ndkBuild {
|
|
arguments "NDK_APPLICATION_MK:=$projectDir/jni/Application.mk",
|
|
"NDK_TOOLCHAIN_VERSION:=clang"
|
|
cppFlags "-std=c++11"
|
|
}
|
|
}
|
|
}
|
|
externalNativeBuild {
|
|
ndkBuild {
|
|
path "$projectDir/jni/Android.mk"
|
|
}
|
|
}
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile './ApplicationManifest.xml'
|
|
}
|
|
}
|
|
}
|