Skip to content

Commit 48c967e

Browse files
committed
chore(plugins): stop tracking generated example/tvos build artifacts
`example/tvos/Flutter/GeneratedPluginRegistrant.swift` and friends are generated by `flutter-tvos` at build time, but were committed across all 11 plugin examples as empty stubs from the pre-federated-plugin era. The CLI's build pipeline only regenerates these files when *missing* — so the stale committed stubs were left in place on every build, and every federated tvOS plugin with `dartPluginClass:` was silently dropped from the registrant. Runtime symptoms: `MissingPluginException` for `shared_preferences`, `audioplayers`, `video_player`; `Bad state: <X>Platform.instance must be set` for the new async APIs. Adds a per-plugin `.gitignore` rule excluding the generated files (`GeneratedPluginRegistrant.swift`, `Generated.xcconfig`, `flutter_export_environment.sh`, `Podfile.lock`, `Pods/`, `.symlinks/`) and untracks the stale stubs so the next clean build produces a proper registrant. No plugin source code change — Dart, Swift, pubspec, lib/, ios/, tvos/ all untouched. iOS/Android/macOS/web users see zero behavioural difference; existing pub.dev versions remain valid.
1 parent 498109f commit 48c967e

22 files changed

Lines changed: 110 additions & 138 deletions

File tree

packages/audioplayers_tvos/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@ tvos/Flutter/Flutter.podspec
2020

2121
# macOS
2222
.DS_Store
23+
24+
# Generated by flutter-tvos at build time — should never be committed.
25+
# Checking in stale empty stubs causes plugin registration to silently fail
26+
# because the build pipeline only regenerates these when missing.
27+
example/tvos/Flutter/GeneratedPluginRegistrant.swift
28+
example/tvos/Flutter/Generated.xcconfig
29+
example/tvos/Flutter/flutter_export_environment.sh
30+
example/tvos/.symlinks/
31+
example/tvos/Pods/
32+
example/tvos/Podfile.lock

packages/audioplayers_tvos/example/tvos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/connectivity_plus_tvos/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@ tvos/Flutter/Flutter.podspec
2020

2121
# macOS
2222
.DS_Store
23+
24+
# Generated by flutter-tvos at build time — should never be committed.
25+
# Checking in stale empty stubs causes plugin registration to silently fail
26+
# because the build pipeline only regenerates these when missing.
27+
example/tvos/Flutter/GeneratedPluginRegistrant.swift
28+
example/tvos/Flutter/Generated.xcconfig
29+
example/tvos/Flutter/flutter_export_environment.sh
30+
example/tvos/.symlinks/
31+
example/tvos/Pods/
32+
example/tvos/Podfile.lock

packages/connectivity_plus_tvos/example/tvos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/device_info_plus_tvos/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@ tvos/Flutter/Flutter.podspec
2020

2121
# macOS
2222
.DS_Store
23+
24+
# Generated by flutter-tvos at build time — should never be committed.
25+
# Checking in stale empty stubs causes plugin registration to silently fail
26+
# because the build pipeline only regenerates these when missing.
27+
example/tvos/Flutter/GeneratedPluginRegistrant.swift
28+
example/tvos/Flutter/Generated.xcconfig
29+
example/tvos/Flutter/flutter_export_environment.sh
30+
example/tvos/.symlinks/
31+
example/tvos/Pods/
32+
example/tvos/Podfile.lock

packages/device_info_plus_tvos/example/tvos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/flutter_secure_storage_tvos/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@ tvos/Flutter/Flutter.podspec
2020

2121
# macOS
2222
.DS_Store
23+
24+
# Generated by flutter-tvos at build time — should never be committed.
25+
# Checking in stale empty stubs causes plugin registration to silently fail
26+
# because the build pipeline only regenerates these when missing.
27+
example/tvos/Flutter/GeneratedPluginRegistrant.swift
28+
example/tvos/Flutter/Generated.xcconfig
29+
example/tvos/Flutter/flutter_export_environment.sh
30+
example/tvos/.symlinks/
31+
example/tvos/Pods/
32+
example/tvos/Podfile.lock

packages/flutter_secure_storage_tvos/example/tvos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/flutter_tts_tvos/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@ tvos/Flutter/Flutter.podspec
2020

2121
# macOS
2222
.DS_Store
23+
24+
# Generated by flutter-tvos at build time — should never be committed.
25+
# Checking in stale empty stubs causes plugin registration to silently fail
26+
# because the build pipeline only regenerates these when missing.
27+
example/tvos/Flutter/GeneratedPluginRegistrant.swift
28+
example/tvos/Flutter/Generated.xcconfig
29+
example/tvos/Flutter/flutter_export_environment.sh
30+
example/tvos/.symlinks/
31+
example/tvos/Pods/
32+
example/tvos/Podfile.lock

packages/flutter_tts_tvos/example/tvos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)