Defines restrictions on a permission. There are several types of constraints you can specify, each with either an allowed-list
or a blocked-list
but not both. The constraints listed are strings that are treated as a regular expression and expected to match anywhere in the value being tested.
During runtime, Bixby will evaluate the restrictions
before executing permissions requests. If a permission does not apply to the current capsule execution after evaluating the restrictions , the permission is not considered requested.
capsule {
...
permissions {
device-location-access {
restrictions {
device-class-constraints {
allowed-list {
allow (bixby-mobile)
}
}
}
}
library-permission (inner:blah1) {
restrictions {
language-constraints {
blocked-list {
block (ko-KR)
}
}
}
}
}
}
country-constraints optional | Specifies any country constraints via either an allowed-list or a blocked-list, but not both |
device-class-constraints optional | Specifies any device class constraints via either an allowed-list or a blocked-list, but not both |
device-model-constraints optional | Specifies any device-model constraints via either an allowed-list or a blocked-list, but not both |
language-constraints optional | Specifies any language constraints via either an allowed-list or a blocked-list, but not both |
target-constraints optional | Specifies language and device constraints for a single target via either an allowed-list or a blocked-list, but not both |