Skip to content

Commit

Permalink
additional removals in webview_flutter
Browse files Browse the repository at this point in the history
  • Loading branch information
Gray Mackall committed May 15, 2024
1 parent 73c3de3 commit cc842c6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,37 +48,6 @@ public String[] list(@NonNull String path) throws IOException {
return assetManager.list(path);
}

/**
* Provides access to assets using the {@link PluginRegistry.Registrar} for looking up file paths
* to Flutter assets.
*
* @deprecated The {@link RegistrarFlutterAssetManager} is for Flutter's v1 embedding. For
* instructions on migrating a plugin from Flutter's v1 Android embedding to v2, visit
* http://flutter.dev/go/android-plugin-migration
*/
@Deprecated
static class RegistrarFlutterAssetManager extends FlutterAssetManager {
final PluginRegistry.Registrar registrar;

/**
* Constructs a new instance of the {@link RegistrarFlutterAssetManager}.
*
* @param assetManager Instance of Android's {@link AssetManager} used to access assets within
* the App bundle.
* @param registrar Instance of {@link io.flutter.plugin.common.PluginRegistry.Registrar} used
* to look up file paths to assets registered by Flutter.
*/
RegistrarFlutterAssetManager(AssetManager assetManager, PluginRegistry.Registrar registrar) {
super(assetManager);
this.registrar = registrar;
}

@Override
public String getAssetFilePathByName(String name) {
return registrar.lookupKeyForAsset(name);
}
}

/**
* Provides access to assets using the {@link FlutterPlugin.FlutterAssets} for looking up file
* paths to Flutter assets.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
* Java platform implementation of the webview_flutter plugin.
*
* <p>Register this in an add to app scenario to gracefully handle activity and context changes.
*
* <p>Call {@link #registerWith} to use the stable {@code io.flutter.plugin.common} package instead.
*/
public class WebViewFlutterPlugin implements FlutterPlugin, ActivityAware {
@Nullable private InstanceManager instanceManager;
Expand Down

This file was deleted.

0 comments on commit cc842c6

Please sign in to comment.