1 | import groovy.json.JsonSlurper;
|
2 | configurations.maybeCreate("default")
|
3 |
|
4 | def inputFile = new File(projectDir, '../../react-native/package.json')
|
5 | def json = new JsonSlurper().parseText(inputFile.text)
|
6 | def reactNativeVersion = json.version as String
|
7 | def (major, minor, patch) = reactNativeVersion.tokenize('.')
|
8 |
|
9 | artifacts.add("default", file("react-native-reanimated-${minor}.aar")) |
\ | No newline at end of file |