GT2/Ejectable/node_modules/react-native-reanimated/android/build.gradle

15 lines
479 B
Groovy

import groovy.json.JsonSlurper;
configurations.maybeCreate("default")
def inputFile = new File(projectDir, '../../react-native/package.json')
def json = new JsonSlurper().parseText(inputFile.text)
def reactNativeVersion = json.version as String
def (major, minor, patch) = reactNativeVersion.tokenize('.')
def engine = "jsc"
if (project(':app').ext.react.enableHermes) {
engine = "hermes"
}
artifacts.add("default", file("react-native-reanimated-${minor}-${engine}.aar"))