Skip to content

Commit

Permalink
fix: removed references to deprecated v1 Android embedding (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
chungdaniel authored Jan 21, 2025
1 parent ba7c379 commit 82aa8db
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result
import io.flutter.plugin.common.PluginRegistry.Registrar
import org.json.JSONArray
import org.json.JSONObject

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

var ctxt: Context? = null

@JvmStatic
fun registerWith(registrar: Registrar) {
ctxt = registrar.context()
val channel = MethodChannel(registrar.messenger(), methodChannelName)
channel.setMethodCallHandler(AmplitudeFlutterPlugin())
}
}

override fun onAttachedToEngine(binding: FlutterPlugin.FlutterPluginBinding) {
Expand Down
5 changes: 0 additions & 5 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.amplitude_flutter_example">

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

0 comments on commit 82aa8db

Please sign in to comment.