Skip to content

Commit 82aa8db

Browse files
authored
fix: removed references to deprecated v1 Android embedding (#220)
1 parent ba7c379 commit 82aa8db

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

android/src/main/kotlin/com/amplitude/amplitude_flutter/AmplitudeFlutterPlugin.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import io.flutter.plugin.common.MethodCall
1111
import io.flutter.plugin.common.MethodChannel
1212
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
1313
import io.flutter.plugin.common.MethodChannel.Result
14-
import io.flutter.plugin.common.PluginRegistry.Registrar
1514
import org.json.JSONArray
1615
import org.json.JSONObject
1716

@@ -22,12 +21,6 @@ class AmplitudeFlutterPlugin : FlutterPlugin, MethodCallHandler {
2221

2322
var ctxt: Context? = null
2423

25-
@JvmStatic
26-
fun registerWith(registrar: Registrar) {
27-
ctxt = registrar.context()
28-
val channel = MethodChannel(registrar.messenger(), methodChannelName)
29-
channel.setMethodCallHandler(AmplitudeFlutterPlugin())
30-
}
3124
}
3225

3326
override fun onAttachedToEngine(binding: FlutterPlugin.FlutterPluginBinding) {

example/android/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.example.amplitude_flutter_example">
33

4-
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
5-
calls FlutterMain.startInitialization(this); in its onCreate method.
6-
In most cases you can leave this as-is, but you if you want to provide
7-
additional functionality it is fine to subclass or reimplement
8-
FlutterApplication and put your custom class here. -->
94
<application
105
android:name="${applicationName}"
116
android:label="amplitude_flutter_example"

0 commit comments

Comments
 (0)