.gitignore 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Android 构建产物与本地缓存(2026-11-15 建立)
  2. #
  3. # 🔴 只忽略「可再生成」的东西。以下**必须入库**:
  4. # · android/app/src/main/AndroidManifest.xml(深链 intent-filter 在这里)
  5. # · android/app/src/main/assets/(Capacitor sync 出来的 Web 产物)
  6. # · android/app/build.gradle、variables.gradle、settings.gradle
  7. # · gradle/wrapper/gradle-wrapper.properties(gradle 版本锁定)
  8. # Gradle 构建输出
  9. /app/build/
  10. /build/
  11. .gradle/
  12. # Cordova 兼容层的构建产物(Capacitor 自动生成,随 sync 重建)
  13. /capacitor-cordova-android-plugins/build/
  14. # 🔴 Capacitor sync 出来的 Web 产物(2026-11-15)
  15. #
  16. # 这是 `dist/fmode-app-v2/browser/` 的拷贝,每次 `npm run cap:sync` 都会重新生成。
  17. # 入库的话:① 仓库体积每次构建都涨 ② 和 dist 内容重复 ③ 容易漏同步产生误导。
  18. # 需要构建时先 `npm run cap:sync` 即可。
  19. /app/src/main/assets/public/
  20. # 本地环境配置(Android Studio 自动生成,含本机 SDK 路径)
  21. local.properties
  22. # IDE
  23. .idea/
  24. *.iml
  25. # 构建缓存与临时文件
  26. .cxx/
  27. *.hprof
  28. captures/
  29. .externalNativeBuild/
  30. # 签名文件 —— 绝不入库(即使黄金规则允许明文存放,签名库泄露等价于别人能冒充发版)
  31. *.jks
  32. *.keystore
  33. !debug.keystore