aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgutmet <me.git@gutmet.org>2020-05-22 14:57:42 +0200
committergutmet <me.git@gutmet.org>2020-05-22 14:57:42 +0200
commit73a854d103b0c531c3b38192a0e4651f404a2854 (patch)
treec42d1c1ed278bd70cf62ede5fed4ceacd6453355
parentda318911c3f25c3a947355ac31127af63a3b4c67 (diff)
downloadsnippets-73a854d103b0c531c3b38192a0e4651f404a2854.tar.gz
Don't overwrite gitignore - append
-rwxr-xr-xcreateFlutter85
1 files changed, 4 insertions, 81 deletions
diff --git a/createFlutter b/createFlutter
index b6ffbd9..889564a 100755
--- a/createFlutter
+++ b/createFlutter
@@ -36,88 +36,11 @@ flutter create --android-language java --org "$org" "$packageName" || exit 1
cd "$packageName"
-#########################
-#### create .gitignore ##
-#########################
-
-cat > .gitignore <<EOF
-# Miscellaneous
-*.class
-*.log
-*.pyc
-*.swp
-.DS_Store
-.atom/
-.buildlog/
-.history
-.svn/
-
-# IntelliJ related
-*.iml
-*.ipr
-*.iws
-.idea/
-
-# The .vscode folder contains launch configuration and tasks you configure in
-# VS Code which you may wish to be included in version control, so this line
-# is commented out by default.
-#.vscode/
-
-# Flutter/Dart/Pub related
-**/doc/api/
-.dart_tool/
-.flutter-plugins
-.packages
-.pub-cache/
-.pub/
-/build/
-
-# Android related
-**/android/**/gradle-wrapper.jar
-**/android/.gradle
-**/android/captures/
-**/android/gradlew
-**/android/gradlew.bat
-**/android/local.properties
-**/android/**/GeneratedPluginRegistrant.java
-**/android/key.properties
-
-# iOS/XCode related
-**/ios/**/*.mode1v3
-**/ios/**/*.mode2v3
-**/ios/**/*.moved-aside
-**/ios/**/*.pbxuser
-**/ios/**/*.perspectivev3
-**/ios/**/*sync/
-**/ios/**/.sconsign.dblite
-**/ios/**/.tags*
-**/ios/**/.vagrant/
-**/ios/**/DerivedData/
-**/ios/**/Icon?
-**/ios/**/Pods/
-**/ios/**/.symlinks/
-**/ios/**/profile
-**/ios/**/xcuserdata
-**/ios/.generated/
-**/ios/Flutter/App.framework
-**/ios/Flutter/Flutter.framework
-**/ios/Flutter/Generated.xcconfig
-**/ios/Flutter/app.flx
-**/ios/Flutter/app.zip
-**/ios/Flutter/flutter_assets/
-**/ios/Flutter/flutter_export_environment.sh
-**/ios/ServiceDefinitions.json
-**/ios/Runner/GeneratedPluginRegistrant.*
-
-# Exceptions to above rules.
-!**/ios/**/default.mode1v3
-!**/ios/**/default.mode2v3
-!**/ios/**/default.pbxuser
-!**/ios/**/default.perspectivev3
-!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
-EOF
-
+##########################
+## append to .gitignore ##
+##########################
+echo "android/key.properties" >> .gitignore
git init