File tree Expand file tree Collapse file tree
packages/react-native/ReactAndroid Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import com.facebook.react.tasks.internal.utils.*
1212import de.undercouch.gradle.tasks.download.Download
1313import java.nio.file.Paths
1414import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
15+ import org.gradle.kotlin.dsl.*
1516
1617plugins {
1718 id(" maven-publish" )
@@ -436,11 +437,12 @@ val prepareGlog by
436437 outputDir.set(File (thirdPartyNdkDir, " glog" ))
437438 }
438439
439- val downloadFbjniAarDest = File (downloadsDir, " fbjni-0.7.0.aar" )
440+ val fbjniVersion = libs.versions.fbjni.get()
441+ val downloadFbjniAarDest = File (downloadsDir, " fbjni-${fbjniVersion} .aar" )
440442val downloadFbjniAar by
441443 tasks.registering(Download ::class ) {
442444 dependsOn(createNativeDepsDirectories)
443- src(" https://repo1.maven.org/maven2/com/facebook/fbjni/fbjni/0.7.0 /fbjni-0.7.0 .aar" )
445+ src(" https://repo1.maven.org/maven2/com/facebook/fbjni/fbjni/${fbjniVersion} /fbjni-${fbjniVersion} .aar" )
444446 onlyIfModified(true )
445447 overwrite(false )
446448 retries(5 )
You can’t perform that action at this time.
0 commit comments