Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 88 additions & 37 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,75 +1,84 @@
# Miscellaneous
# =============================================
# ADJUST FLUTTER SDK - COMPREHENSIVE .GITIGNORE
# =============================================
# This file handles all ignore patterns for the entire project.
# Organized by category for easy maintenance.

# =====================
# SYSTEM & EDITOR FILES
# =====================
# miscellaneous system files
*.class
*.lock
*.log
*.pyc
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
# intellij related
*.iml
*.ipr
*.iws
.idea/

# Visual Studio Code related
# visual studio code related
.classpath
.project
.settings/
.vscode/

# Flutter repo-specific
/bin/cache/
/bin/internal/bootstrap.bat
/bin/internal/bootstrap.sh
/bin/mingit/
/dev/benchmarks/mega_gallery/
/dev/bots/.recipe_deps
/dev/bots/android_tools/
/dev/devicelab/ABresults*.json
/dev/docs/doc/
/dev/docs/flutter.docs.zip
/dev/docs/lib/
/dev/docs/pubspec.yaml
/dev/integration_tests/**/xcuserdata
/dev/integration_tests/**/Pods
/packages/flutter/coverage/
analysis_benchmark.json

# packages file containing multi-root paths
.packages.generated

# Flutter/Dart/Pub related
# ==============
# FLUTTER & DART
# ==============
# flutter/dart/pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
**/generated_plugin_registrant.dart
.packages
.packages.generated
.pub-cache/
.pub/
build/
coverage/
flutter_*.png
linked_*.ds
unlinked.ds
unlinked_spec.ds

# Android related
**/android/**/gradle-wrapper.jar
# ====================
# ANDROID BUILD SYSTEM
# ====================
# android build artifacts
**/android/.gradle
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java
**/android/key.properties
**/android/app/debug
**/android/app/profile
**/android/app/release
*.jks
*.keystore

# iOS/XCode related
# android studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

# =================
# IOS BUILD SYSTEM
# =================
# ios/xcode related
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
Expand All @@ -83,10 +92,10 @@ unlinked_spec.ds
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/Podfile.lock
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/.last_build_id
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Flutter.podspec
Expand All @@ -98,20 +107,62 @@ unlinked_spec.ds
**/ios/Flutter/flutter_export_environment.sh
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*
**/ios/**/dgph

# macOS
# macos
**/macos/Flutter/GeneratedPluginRegistrant.swift

# Coverage
coverage/
# ====================
# FLUTTER SDK SPECIFIC
# ====================
# flutter repo-specific (for SDK development)
/bin/cache/
/bin/internal/bootstrap.bat
/bin/internal/bootstrap.sh
/bin/mingit/
/dev/benchmarks/mega_gallery/
/dev/bots/.recipe_deps
/dev/bots/android_tools/
/dev/devicelab/ABresults*.json
/dev/docs/doc/
/dev/docs/flutter.docs.zip
/dev/docs/lib/
/dev/docs/pubspec.yaml
/dev/integration_tests/**/xcuserdata
/dev/integration_tests/**/Pods
/packages/flutter/coverage/
version
analysis_benchmark.json

# Symbols
# =========================
# BUILD ARTIFACTS & SYMBOLS
# =========================
# symbolication related
app.*.symbols

# Exceptions to above rules.
# obfuscation related
app.*.map.json

# =======================================
# EXCEPTIONS - FILES THAT MUST BE TRACKED
# =======================================
# these files are essential for building the apps after cloning

# allow default ios files
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3

# allow essential flutter tools test data
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/dev/ci/**/Gemfile.lock
!/dev/ci/**/Gemfile.lock

# allow gradle build system files for example and test apps
# these are essential for building without local gradle installation
!example/android/gradlew
!example/android/gradlew.bat
!example/android/gradle/wrapper/gradle-wrapper.jar
!test/app/android/gradlew
!test/app/android/gradlew.bat
!test/app/android/gradle/wrapper/gradle-wrapper.jar
17 changes: 17 additions & 0 deletions .pubignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Exclude test directory from published package
test/

# Exclude build artifacts and development files
**/build/
**/.dart_tool/
**/Pods/
**/.pub-cache/
**/example/build/
**/example/ios/build/
**/example/android/build/
**/example/.dart_tool/
**/example/ios/Pods/
**/example/ios/Podfile.lock
**/example/android/local.properties
**/*.iml
**/.DS_Store
Loading