Skip to content

Commit cc842c6

Browse files
author
Gray Mackall
committed
additional removals in webview_flutter
1 parent 73c3de3 commit cc842c6

File tree

3 files changed

+0
-88
lines changed

3 files changed

+0
-88
lines changed

packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/FlutterAssetManager.java

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -48,37 +48,6 @@ public String[] list(@NonNull String path) throws IOException {
4848
return assetManager.list(path);
4949
}
5050

51-
/**
52-
* Provides access to assets using the {@link PluginRegistry.Registrar} for looking up file paths
53-
* to Flutter assets.
54-
*
55-
* @deprecated The {@link RegistrarFlutterAssetManager} is for Flutter's v1 embedding. For
56-
* instructions on migrating a plugin from Flutter's v1 Android embedding to v2, visit
57-
* http://flutter.dev/go/android-plugin-migration
58-
*/
59-
@Deprecated
60-
static class RegistrarFlutterAssetManager extends FlutterAssetManager {
61-
final PluginRegistry.Registrar registrar;
62-
63-
/**
64-
* Constructs a new instance of the {@link RegistrarFlutterAssetManager}.
65-
*
66-
* @param assetManager Instance of Android's {@link AssetManager} used to access assets within
67-
* the App bundle.
68-
* @param registrar Instance of {@link io.flutter.plugin.common.PluginRegistry.Registrar} used
69-
* to look up file paths to assets registered by Flutter.
70-
*/
71-
RegistrarFlutterAssetManager(AssetManager assetManager, PluginRegistry.Registrar registrar) {
72-
super(assetManager);
73-
this.registrar = registrar;
74-
}
75-
76-
@Override
77-
public String getAssetFilePathByName(String name) {
78-
return registrar.lookupKeyForAsset(name);
79-
}
80-
}
81-
8251
/**
8352
* Provides access to assets using the {@link FlutterPlugin.FlutterAssets} for looking up file
8453
* paths to Flutter assets.

packages/webview_flutter/webview_flutter_android/android/src/main/java/io/flutter/plugins/webviewflutter/WebViewFlutterPlugin.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
* Java platform implementation of the webview_flutter plugin.
3535
*
3636
* <p>Register this in an add to app scenario to gracefully handle activity and context changes.
37-
*
38-
* <p>Call {@link #registerWith} to use the stable {@code io.flutter.plugin.common} package instead.
3937
*/
4038
public class WebViewFlutterPlugin implements FlutterPlugin, ActivityAware {
4139
@Nullable private InstanceManager instanceManager;

packages/webview_flutter/webview_flutter_android/android/src/test/java/io/flutter/plugins/webviewflutter/RegistrarFlutterAssetManagerTest.java

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

0 commit comments

Comments
 (0)