Search in sources :

Example 1 with PermissionRequirement

use of com.android.tools.klint.checks.PermissionRequirement in project kotlin by JetBrains.

the class SupportAnnotationDetector method mergeAnnotationPermissions.

@NonNull
private static PermissionHolder mergeAnnotationPermissions(@NonNull PermissionHolder permissions, @Nullable UAnnotation annotation) {
    if (annotation != null) {
        PermissionRequirement requirement = PermissionRequirement.create(annotation);
        permissions = SetPermissionLookup.join(permissions, requirement);
    }
    return permissions;
}
Also used : PermissionRequirement(com.android.tools.klint.checks.PermissionRequirement) NonNull(com.android.annotations.NonNull)

Aggregations

NonNull (com.android.annotations.NonNull)1 PermissionRequirement (com.android.tools.klint.checks.PermissionRequirement)1