-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
359 additions
and
329 deletions.
There are no files selected for viewing
62 changes: 38 additions & 24 deletions
62
android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,49 @@ | ||
package io.flutter.plugins; | ||
|
||
import io.flutter.plugin.common.PluginRegistry; | ||
import io.flutter.plugins.camera.CameraPlugin; | ||
import io.flutter.plugins.flutter_plugin_android_lifecycle.FlutterAndroidLifecyclePlugin; | ||
import io.flutter.plugins.imagepicker.ImagePickerPlugin; | ||
import dev.flutter.plugins.integration_test.IntegrationTestPlugin; | ||
import io.flutter.plugins.urllauncher.UrlLauncherPlugin; | ||
import io.flutter.plugins.videoplayer.VideoPlayerPlugin; | ||
import androidx.annotation.Keep; | ||
import androidx.annotation.NonNull; | ||
import io.flutter.Log; | ||
|
||
import io.flutter.embedding.engine.FlutterEngine; | ||
|
||
/** | ||
* Generated file. Do not edit. | ||
* This file is generated by the Flutter tool based on the | ||
* plugins that support the Android platform. | ||
*/ | ||
@Keep | ||
public final class GeneratedPluginRegistrant { | ||
public static void registerWith(PluginRegistry registry) { | ||
if (alreadyRegisteredWith(registry)) { | ||
return; | ||
private static final String TAG = "GeneratedPluginRegistrant"; | ||
public static void registerWith(@NonNull FlutterEngine flutterEngine) { | ||
try { | ||
flutterEngine.getPlugins().add(new io.flutter.plugins.camera.CameraPlugin()); | ||
} catch (Exception e) { | ||
Log.e(TAG, "Error registering plugin camera_android, io.flutter.plugins.camera.CameraPlugin", e); | ||
} | ||
CameraPlugin.registerWith(registry.registrarFor("io.flutter.plugins.camera.CameraPlugin")); | ||
FlutterAndroidLifecyclePlugin.registerWith(registry.registrarFor("io.flutter.plugins.flutter_plugin_android_lifecycle.FlutterAndroidLifecyclePlugin")); | ||
ImagePickerPlugin.registerWith(registry.registrarFor("io.flutter.plugins.imagepicker.ImagePickerPlugin")); | ||
IntegrationTestPlugin.registerWith(registry.registrarFor("dev.flutter.plugins.integration_test.IntegrationTestPlugin")); | ||
UrlLauncherPlugin.registerWith(registry.registrarFor("io.flutter.plugins.urllauncher.UrlLauncherPlugin")); | ||
VideoPlayerPlugin.registerWith(registry.registrarFor("io.flutter.plugins.videoplayer.VideoPlayerPlugin")); | ||
} | ||
|
||
private static boolean alreadyRegisteredWith(PluginRegistry registry) { | ||
final String key = GeneratedPluginRegistrant.class.getCanonicalName(); | ||
if (registry.hasPlugin(key)) { | ||
return true; | ||
try { | ||
flutterEngine.getPlugins().add(new io.flutter.plugins.flutter_plugin_android_lifecycle.FlutterAndroidLifecyclePlugin()); | ||
} catch (Exception e) { | ||
Log.e(TAG, "Error registering plugin flutter_plugin_android_lifecycle, io.flutter.plugins.flutter_plugin_android_lifecycle.FlutterAndroidLifecyclePlugin", e); | ||
} | ||
try { | ||
flutterEngine.getPlugins().add(new io.flutter.plugins.imagepicker.ImagePickerPlugin()); | ||
} catch (Exception e) { | ||
Log.e(TAG, "Error registering plugin image_picker_android, io.flutter.plugins.imagepicker.ImagePickerPlugin", e); | ||
} | ||
try { | ||
flutterEngine.getPlugins().add(new dev.flutter.plugins.integration_test.IntegrationTestPlugin()); | ||
} catch (Exception e) { | ||
Log.e(TAG, "Error registering plugin integration_test, dev.flutter.plugins.integration_test.IntegrationTestPlugin", e); | ||
} | ||
try { | ||
flutterEngine.getPlugins().add(new io.flutter.plugins.urllauncher.UrlLauncherPlugin()); | ||
} catch (Exception e) { | ||
Log.e(TAG, "Error registering plugin url_launcher_android, io.flutter.plugins.urllauncher.UrlLauncherPlugin", e); | ||
} | ||
try { | ||
flutterEngine.getPlugins().add(new io.flutter.plugins.videoplayer.VideoPlayerPlugin()); | ||
} catch (Exception e) { | ||
Log.e(TAG, "Error registering plugin video_player_android, io.flutter.plugins.videoplayer.VideoPlayerPlugin", e); | ||
} | ||
registry.registrarFor(key); | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
sdk.dir=/Users/saifulislam/Library/Android/sdk | ||
flutter.sdk=/Users/saifulislam/Development/flutter_sdk/flutter | ||
flutter.sdk=/opt/homebrew/Caskroom/flutter/3.19.6/flutter |
Oops, something went wrong.