chore: untrack and ignore Flutter-generated plugin registrant files
Seto Elkahfi committed
Apr 8, 2026 at 23:29 UTC
13d6513550056201ffd71ba158ad0d21fb3ad98d
4 files changed
+12
-36
sdk/dart/.gitignore
+6
@@ -21,6 +21,12 @@ macos/*.a
21
example/build/
22
example/.dart_tool/
23
24
+# Flutter-generated plugin registration files — regenerated on every `flutter pub get`
25
+example/**/GeneratedPluginRegistrant.java
26
+example/**/GeneratedPluginRegistrant.swift
27
+example/**/GeneratedPluginRegistrant.m
28
+example/**/GeneratedPluginRegistrant.h
29
+
30
# Dev logs
31
logs/
32
sdk/dart/.pubignore
+6
@@ -22,6 +22,12 @@ rust/target/
22
.packages
23
pubspec.lock
24
25
+# Flutter-generated plugin registration files — regenerated on every `flutter pub get`
26
+example/**/GeneratedPluginRegistrant.java
27
+example/**/GeneratedPluginRegistrant.swift
28
+example/**/GeneratedPluginRegistrant.m
29
+example/**/GeneratedPluginRegistrant.h
30
+
31
# Example app build outputs
32
example/build/
33
example/.dart_tool/
sdk/dart/example/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
deleted
-24
@@ -1,24 +0,0 @@
1
-package io.flutter.plugins;
2
-
3
-import androidx.annotation.Keep;
4
-import androidx.annotation.NonNull;
5
-import io.flutter.Log;
6
-
7
-import io.flutter.embedding.engine.FlutterEngine;
8
-
9
-/**
10
- * Generated file. Do not edit.
11
- * This file is generated by the Flutter tool based on the
12
- * plugins that support the Android platform.
13
- */
14
-@Keep
15
-public final class GeneratedPluginRegistrant {
16
- private static final String TAG = "GeneratedPluginRegistrant";
17
- public static void registerWith(@NonNull FlutterEngine flutterEngine) {
18
- try {
19
- flutterEngine.getPlugins().add(new io.flutter.plugins.pathprovider.PathProviderPlugin());
20
- } catch (Exception e) {
21
- Log.e(TAG, "Error registering plugin path_provider_android, io.flutter.plugins.pathprovider.PathProviderPlugin", e);
22
- }
23
- }
24
-}
sdk/dart/example/macos/Flutter/GeneratedPluginRegistrant.swift
deleted
-12
@@ -1,12 +0,0 @@
1
-//
2
-// Generated file. Do not edit.
3
-//
4
-
5
-import FlutterMacOS
6
-import Foundation
7
-
8
-import onde_inference
9
-
10
-func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
11
- OndeInferencePlugin.register(with: registry.registrar(forPlugin: "OndeInferencePlugin"))
12
-}