Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Find a way to not have to modify settings.gradle #13

Open
richard-ramos opened this issue Jan 23, 2023 · 2 comments
Open

Find a way to not have to modify settings.gradle #13

richard-ramos opened this issue Jan 23, 2023 · 2 comments

Comments

@richard-ramos
Copy link
Member

There should be a way to avoid modifying settings.gradle to add these lines:

include ':gowaku'
project(':gowaku').projectDir = new File(rootProject.projectDir, './../node_modules/@waku/react-native/

and instead have npm / react-native autolink this submodule from waku-react-native

@fryorcraken fryorcraken added this to Waku Jan 23, 2023
@bricestacey
Copy link
Contributor

I think a common solution is to publish builds to jcenter, but that comes with some overhead managing releases there. The iOS pod is using git so could do the same. There is a project called jitpack that lets you easily use github projects as dependencies. https://jitpack.io/

@bricestacey
Copy link
Contributor

Another idea might be to include a postinstall script. When running npm install it'll run the postinstall script, which could be the script to download go-waku.

https://docs.npmjs.com/cli/v9/using-npm/scripts#npm-install

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants