NDK version from gradle.properties

Summary:
^

With these changes, we can build the project by overriding these version from a gradle build.

    ./gradlew :assembleDebug -DNDK_VERSION=21.4.7075529 -DFBJNI_VERSION=0.2.2

Reviewed By: passy

Differential Revision: D43879098

fbshipit-source-id: 8790aa12a086373194d45687d70ceb73b07713b9
This commit is contained in:
Lorenzo Blasa
2023-03-08 02:53:49 -08:00
committed by Facebook GitHub Bot
parent 859653e111
commit d8002de88c
3 changed files with 5 additions and 3 deletions

View File

@@ -48,8 +48,8 @@ ext {
minSdkVersion = 15 minSdkVersion = 15
targetSdkVersion = 31 targetSdkVersion = 31
compileSdkVersion = 31 compileSdkVersion = 31
buildToolsVersion = '30.0.3' buildToolsVersion = "30.0.3"
ndkVersion = '23.0.7599858' ndkVersion = "$NDK_VERSION"
} }
ext.deps = [ ext.deps = [

View File

@@ -20,6 +20,8 @@ POM_ISSUES_URL=https://github.com/facebook/flipper/issues/
LITHO_VERSION=0.44.0 LITHO_VERSION=0.44.0
ANDROIDX_VERSION=1.3.0 ANDROIDX_VERSION=1.3.0
KOTLIN_VERSION=1.6.20 KOTLIN_VERSION=1.6.20
# NDK
NDK_VERSION=23.0.7599858
# Gradle internals # Gradle internals
org.gradle.internal.repository.max.retries=10 org.gradle.internal.repository.max.retries=10
org.gradle.internal.repository.initial.backoff=1250 org.gradle.internal.repository.initial.backoff=1250

View File

@@ -12,7 +12,7 @@ buildscript {
minSdkVersion = 21 minSdkVersion = 21
compileSdkVersion = 31 compileSdkVersion = 31
targetSdkVersion = 31 targetSdkVersion = 31
ndkVersion = '23.0.7599858' ndkVersion = "$NDK_VERSION"
} }
repositories { repositories {
google() google()