|
| 1 | +This directory contains a partial snapshot of an old Flutter project; it is |
| 2 | +intended to replace the corresponding parts of a newly Flutter-created project |
| 3 | +to allow testing plugin builds with a legacy project. |
| 4 | + |
| 5 | +It was originally created with Flutter 2.0.6. In general the guidelines are: |
| 6 | +- Pieces here should be largely self-contained rather than portions of |
| 7 | + major project components; for instance, it currently contains the entire |
| 8 | + `android/` directory from a legacy project, rather than a subset of it |
| 9 | + which would be combined with a subset of a new project's `android/` |
| 10 | + directory. This is to avoid random breakage in the future due to |
| 11 | + conflicts between those subsets. For instance, we could probably get |
| 12 | + away with not including android/app/src/main/res for a while, and |
| 13 | + instead layer in the versions from a new project, but then someday |
| 14 | + if the resources were renamed, there would be dangling references to |
| 15 | + the old resources in files that are included here. |
| 16 | +- Updates over time should be minimal. We don't expect that an unchanged |
| 17 | + project will keep working forever, but this directory should simulate |
| 18 | + a developer who has done the bare minimum to keep their project working |
| 19 | + as they have updated Flutter. |
| 20 | +- Updates should be logged below. |
| 21 | + |
| 22 | +The reason for the hybrid model, rather than checking in a full legacy |
| 23 | +project, is to minimize unnecessary maintenance work. E.g., there's no |
| 24 | +need to manually keep Dart code updated for Flutter changes just to |
| 25 | +test legacy native Android build behaviors. |
| 26 | + |
| 27 | +## Manual changes to files |
| 28 | + |
| 29 | +The following are the changes relative to running: |
| 30 | + |
| 31 | +```bash |
| 32 | +flutter create -a java all_packages |
| 33 | +``` |
| 34 | + |
| 35 | +and then deleting everything but `android/` from it: |
| 36 | + |
| 37 | +- Added license boilerplate. |
0 commit comments