参考 rwadurian mobile-app 的 version.properties 方案,为 genex-mobile 和 admin-app 添加 build 时 versionCode 自动 +1 逻辑: - build.gradle.kts: calculateNextVersionCode() 读取 version.properties, 自增后写回;versionName 格式 "pubspec版本.buildNumber"(如 1.0.0.42) - .gitignore: 排除 /android/app/version.properties,每个构建环境 (本机、CI、服务器)各自维护独立计数器,互不干扰 - 首次编译从 1 开始,后续跨日期持续递增,保证 APK 版本始终唯一 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| android | ||
| assets/images | ||
| ios | ||
| lib | ||
| .gitignore | ||
| .metadata | ||
| README.md | ||
| analysis_options.yaml | ||
| pubspec.yaml | ||
README.md
genex_consumer
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.