react-native-colo-loco icon indicating copy to clipboard operation
react-native-colo-loco copied to clipboard

android.groovy determines root project path from user.dir property

Open ste7en opened this issue 1 year ago • 2 comments

When running a gradle task from Fastlane, if the Fastfile is defined project-wide and not in the Android / iOS respective folders, gradle fails because the relative appPath I'm providing to linkColocatedNativeFiles is relative to the system property user.dir as in lines 17-18.

Unfortunately neither the rootDir Gradle property can be used as it would be appended to System.getProperty('user.dir') path.

ste7en avatar Mar 14 '23 19:03 ste7en

@ste7en Any ideas how we could address this?

jamonholmgren avatar Jul 06 '23 17:07 jamonholmgren

@jamonholmgren not really, I guess paths should be relative to the location of the script rather than user.dir. I asked GPT 3.5 but didn't try it yet

ste7en avatar Jul 18 '23 12:07 ste7en