-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add private maven repo to the React native project directly #44535
Comments
|
|
I cannot share the reproducible example as the dependency i am adding are private maven repo. |
The code you shared in your first snippet is the correct way to specify a private maven repository. Your project is failing for other reasons. I've created for you a sample project here: Specifically look at this commit: As you can see from the CI, it's failing with:
|
You can also run the task with |
Okay, @cortinico Thanks for confirming, wanted to make sure, we are doing it right way. |
Description
I am building a react native sdk and for that, client react native apps who integrate my react native SDK also need a private maven repo to use some native functions from that package. Now when i add that package both in SDK as well as in example app, I need to add the private maven repo to the
app/build.gradle
and add its path and creds to theandroid/build.gradle
. But when i try to sync the Android app tries to find this private repo from the pubic Maven and not from the private maven path i have shared and it cannot install the package.I tried searching if there is any other way to enable downloading the package from private repo but could not find any.
When I debugged more in react native gradle plugin, i found a way to add the private repo using afterEvaluate block from
app/build.gradle
like -It looks like a patch to me, so i want to know if there is any right way to add the private repo to the react native android project?
Steps to reproduce
React Native Version
0.73.6
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https:github.com/rakesho-vel
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: