leavez / cocoapods-binary

integrate pods in form of prebuilt frameworks conveniently, reducing compile time
MIT License
1.31k stars 206 forks source link

React native autolinking support, opting in certain dependencies #145

Open StephenDocP opened 3 years ago

StephenDocP commented 3 years ago

Thank you for building this plugin, its a great idea, and excited about the impact it'll have on building our iOS apps.

We use React native, and it now supports auto-linking, is there a way to optionally apply the :binary => true option to these dependencies. Since they are not defined in the pod file.

I tried to implement something in the pre_install hook, but with no luck.

Do you have any suggestions or help on how to get this to work?

Thank you.

EyMaddis commented 3 years ago

The savings for RN projects can be used. Our non-complex app has a compile time of 30-45 minutes on bitrise.io which could be improved radically by precompilation. This relates to https://github.com/leavez/cocoapods-binary/issues/33 because RN dependecies are local dependencies. The difference to other local dependencies is that they could actually be "fingerprinted" via the yarn.lock or package-lock.json files from Node.js.

sidferreira commented 2 years ago

@StephenDocP @EyMaddis I'm trying as well... so far I had to use all_binary! and remove Flipper, but still get some errors related to dSyms.

I wanna try some ideas later...

dmeenhuis commented 1 year ago

@StephenDocP @EyMaddis @sidferreira did any of you have any luck getting this to work in a React Native app? Trying this myself in an attempt to speed up our builds in Azure DevOps, but haven't been able to get it to work.

sidferreira commented 1 year ago

@StephenDocP @EyMaddis @sidferreira did any of you have any luck getting this to work in a React Native app? Trying this myself in an attempt to speed up our builds in Azure DevOps, but haven't been able to get it to work.

No.. Gave up a little afterwards