我应该在我的react-native git repo 中签入这个android 文件夹吗?

Eug*_*ene 1 android react-native

我运行 git status 并在 android/app/ 下看到以下文件,我不确定是否需要将这些文件签入我的 git 存储库。

android/app/.gitignore
android/app/app/
android/app/gradle.properties
android/app/gradle/
android/app/gradlew
android/app/gradlew.bat
android/app/settings.gradle
Run Code Online (Sandbox Code Playgroud)

小智 5

Android 和 iOS 文件夹都应提交给 git。

这样做的原因是,如果您需要编写任何本机代码/修改 xcode 项目/等,存储库中没有此信息将意味着每当您将存储库拉到新位置时都需要手动设置它。此外,这可能会使设置诸如 Bitrise 之类的 CI 变得非常困难,因为这通常依赖于构建本机项目。