forked from joejulian/gio-cmd
gogio: [Android] add support for querying apps
Previously, it was impossible to identify if a specific app was installed on the user device. It was also impossible to launch a external app from Gio using Intent. Now, you can use `-queries` with a comma separed package names, like `com.another.app`. That allows you to launch Intent to `com.another.app`. Signed-off-by: inkeliz <inkeliz@inkeliz.com>
This commit is contained in:
@@ -32,6 +32,7 @@ type buildInfo struct {
|
||||
notaryPassword string
|
||||
notaryTeamID string
|
||||
schemes []string
|
||||
packageQueries []string
|
||||
}
|
||||
|
||||
type Semver struct {
|
||||
@@ -80,6 +81,7 @@ func newBuildInfo(pkgPath string) (*buildInfo, error) {
|
||||
notaryPassword: *notaryPass,
|
||||
notaryTeamID: *notaryTeamID,
|
||||
schemes: getCommaList(*schemes),
|
||||
packageQueries: getCommaList(*pkgQueries),
|
||||
}
|
||||
return bi, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user