Long build time with Gradle and significant platform specific code #359
-
Hi, great boilerplate guys and I really appreciate your efforts. I noticed that, when following the instructions in your README, without any changes, and running pnpm android, the project begins building with gradle for 20 minutes. This is not how my experience has been with other expo projects, so I am wondering if this is expected from your end? If it is expected, it would be great to hear your motivations for going this route, and what the benefits are for including quite significant platform specific code in the android and ios folders. Thanks again! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @jolindroth Normally, as we add some native dependencies, the build will take more time, but it shouldn't take that long. So, it is likely related to a library or a misconfiguration. can you give me more details on the device you are working on? |
Beta Was this translation helpful? Give feedback.
if you're using CNG, does the native folders need to be included in the repo?
Not really. You can add them to the .gitignore file if you want. From my experience working on a team, many forget to rerun the prebuild after pulling the latest updates so i always prefer pushing the iOS and Android folders. But this is probably not the right solution. 😀I don't have a strong opinion on that. Also, when you initiate a new project with the CLI, we usually delete the iOS and Android folders on the fly. They should be generated when you run
pnpm run ios
.