Skip to content

Remove QUERY_ALL_PACKAGES #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 0 additions & 2 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -20,4 +20,4 @@ flutter:
platforms:
android:
package: com.sharmadhiraj.installed_apps
pluginClass: InstalledAppsPlugin
pluginClass: InstalledAppsPlugin