Skip to content

Commit 6e70aaa

Browse files
committed
Explain why gradle wrapper files are .gitignored
1 parent 2726f28 commit 6e70aaa

File tree

9 files changed

+25
-0
lines changed

9 files changed

+25
-0
lines changed

examples/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,12 @@ Available examples include:
4444

4545
- **Stocks** The [stocks](stocks) demo shows how one might structure
4646
an application with several screens.
47+
48+
Note on Gradle wrapper files in `.gitignore`:
49+
50+
Gradle wrapper files should normally be checked into source control.
51+
The example projects don't do that to avoid having several copies of the
52+
wrapper binary in the Flutter repo. Instead, the Gradle wrapper is
53+
injected by Flutter tooling, and the wrapper files are .gitignore'd to
54+
avoid making the Flutter repository dirty as a side effect of running
55+
the examples.

examples/catalog/android/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/captures
99
GeneratedPluginRegistrant.java
1010

11+
# Gradle wrapper files should normally be checked into source control.
12+
# See ../../README.md
1113
gradle-wrapper.jar
1214
/gradlew
1315
/gradlew.bat

examples/flutter_gallery/android/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/captures
99
GeneratedPluginRegistrant.java
1010

11+
# Gradle wrapper files should normally be checked into source control.
12+
# See ../../README.md
1113
gradle-wrapper.jar
1214
/gradlew
1315
/gradlew.bat

examples/flutter_view/android/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/captures
99
GeneratedPluginRegistrant.java
1010

11+
# Gradle wrapper files should normally be checked into source control.
12+
# See ../../README.md
1113
gradle-wrapper.jar
1214
/gradlew
1315
/gradlew.bat

examples/hello_world/android/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/captures
99
GeneratedPluginRegistrant.java
1010

11+
# Gradle wrapper files should normally be checked into source control.
12+
# See ../../README.md
1113
gradle-wrapper.jar
1214
/gradlew
1315
/gradlew.bat

examples/layers/android/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/captures
99
GeneratedPluginRegistrant.java
1010

11+
# Gradle wrapper files should normally be checked into source control.
12+
# See ../../README.md
1113
gradle-wrapper.jar
1214
/gradlew
1315
/gradlew.bat

examples/platform_channel/android/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/captures
99
GeneratedPluginRegistrant.java
1010

11+
# Gradle wrapper files should normally be checked into source control.
12+
# See ../../README.md
1113
gradle-wrapper.jar
1214
/gradlew
1315
/gradlew.bat

examples/platform_view/android/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/captures
99
GeneratedPluginRegistrant.java
1010

11+
# Gradle wrapper files should normally be checked into source control.
12+
# See ../../README.md
1113
gradle-wrapper.jar
1214
/gradlew
1315
/gradlew.bat

examples/stocks/android/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/captures
99
GeneratedPluginRegistrant.java
1010

11+
# Gradle wrapper files should normally be checked into source control.
12+
# See ../../README.md
1113
gradle-wrapper.jar
1214
/gradlew
1315
/gradlew.bat

0 commit comments

Comments
 (0)