Description
Hi, I got build error when using reanimated V2 because my application module name is not app
error:
Build file '/Users/doni.winata/tvlk/district-traveloka/packages/apps/node_modules/react-native-reanimated/android/build.gradle' line: 10
Probably it related this code : https://github.com/software-mansion/react-native-reanimated/blob/master/android/build.gradle#L36
This is build.gradle inside our packages/apps/node_modules/react-native-reanimated/android/build.gradle'
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"))
As we can see it trying to read app modules, while we are using appentry name on our app module.
Expected behavior
Using any name on application module should works
Actual behavior & steps to reproduce
Not using app name on application module will failed the build
Description
Hi, I got build error when using reanimated V2 because my application module name is not
apperror:
Build file '/Users/doni.winata/tvlk/district-traveloka/packages/apps/node_modules/react-native-reanimated/android/build.gradle' line: 10
Probably it related this code : https://github.com/software-mansion/react-native-reanimated/blob/master/android/build.gradle#L36
This is build.gradle inside our packages/apps/node_modules/react-native-reanimated/android/build.gradle'
As we can see it trying to read
appmodules, while we are usingappentryname on our app module.Expected behavior
Using any name on application module should works
Actual behavior & steps to reproduce
Not using
appname on application module will failed the build