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:
inkeliz
2025-05-27 04:16:50 +01:00
committed by Elias Naur
parent 048614c60e
commit 8de547d61d
4 changed files with 34 additions and 18 deletions
+2
View File
@@ -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
}