diff --git a/CHANGELOG.md b/CHANGELOG.md index 91f4a44..465d49f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 3.0.0 + +Remove registerWith method from the plugin class + +## 2.0.0 + +* Starting from this version QUERY_ALL_PACKAGES has been removed from manifest. You must add it manually for it to work for you in case you want to query all packages. This was done to prevent app rejection when submitting to playstore. + ## 1.5.2 * Updated the compile SDK and Gradle versions. diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 9b0f9c3..92bdda3 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,5 +1,3 @@ - - diff --git a/android/src/main/kotlin/com/sharmadhiraj/installed_apps/InstalledAppsPlugin.kt b/android/src/main/kotlin/com/sharmadhiraj/installed_apps/InstalledAppsPlugin.kt index 5cf0e6c..ee6dc20 100644 --- a/android/src/main/kotlin/com/sharmadhiraj/installed_apps/InstalledAppsPlugin.kt +++ b/android/src/main/kotlin/com/sharmadhiraj/installed_apps/InstalledAppsPlugin.kt @@ -19,22 +19,14 @@ import io.flutter.plugin.common.BinaryMessenger import io.flutter.plugin.common.MethodCall import io.flutter.plugin.common.MethodChannel import io.flutter.plugin.common.MethodChannel.MethodCallHandler -import io.flutter.plugin.common.PluginRegistry.Registrar import java.util.Locale.ENGLISH - class InstalledAppsPlugin() : MethodCallHandler, FlutterPlugin, ActivityAware { companion object { var context: Context? = null - @JvmStatic - fun registerWith(registrar: Registrar) { - context = registrar.context() - register(registrar.messenger()) - } - @JvmStatic fun register(messenger: BinaryMessenger) { val channel = MethodChannel(messenger, "installed_apps") diff --git a/pubspec.yaml b/pubspec.yaml index 40d3caf..e3605e6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: installed_apps description: Flutter plugin with utility methods related to installed apps on device. -version: 1.5.2 +version: 3.0.0 homepage: https://github.com/sharmadhiraj/installed_apps environment: @@ -20,4 +20,4 @@ flutter: platforms: android: package: com.sharmadhiraj.installed_apps - pluginClass: InstalledAppsPlugin \ No newline at end of file + pluginClass: InstalledAppsPlugin