Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1215 This updates: 1. The Gradle Wrapper and Gradle Version 2. AGP Version 3. Android SDK and NDK Versions 4. Java Version (to support newer AGP) 5. Required CMake Version Versions are loosely aligned to RN. CMake 3.18.1 is the latest provided by the NDK but the Android build itself creates warnings on CMake < 3.19, so we add the "+" to prefer something newer if available (but we set an old required version to CMake policy will keep compatible). This also removes the "yogacore" project, which packages libyoga.so without the jni bindings. Afaik it was never published, and we don't rely on it ourselves. Reviewed By: cortinico Differential Revision: D42406551 fbshipit-source-id: 5e127dffde69352269ecbddadbc2bdd82f7d50fa
44 lines
1.1 KiB
Groovy
44 lines
1.1 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.
|
|
*/
|
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.3.1'
|
|
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.15.1'
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
// in the individual module build.gradle files
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
ext {
|
|
buildToolsVersion = "33.0.0"
|
|
ndkVersion = "23.1.7779620" // Corresponds to AGP 7.3
|
|
cmakeVersion = "3.18.1+"
|
|
minSdkVersion = 21
|
|
compileSdkVersion = 33
|
|
targetSdkVersion = 33
|
|
sourceCompatibilityVersion = JavaVersion.VERSION_1_7
|
|
targetCompatibilityVersion = JavaVersion.VERSION_1_7
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
}
|