Sha256: bacc1f0624ce02520d62946a16c47e7c2aa7237d6315dd3d0ea1fd37efc6dff4

Contents?: true

Size: 1.44 KB

Versions: 1

Compression:

Stored size: 1.44 KB

Contents

# teak/api21_icon
Ensures that the APK contains a notification icon for both Android 5+ (API 21+) as well as pre-Android 5, and that these are different icons.

Also verifies following files have the specified image dimensions:
* drawable-mdpi/[icon_v21].png     24x24
* drawable-hdpi/[icon_v21].png     36x36
* drawable-xhdpi/[icon_v21].png    48x48
* drawable-xxhdpi/[icon_v21].png   72x72
* drawable-xxxhdpi/[icon_v21].png  96x96

## Will Skip If
* The Teak SDK is not present.

## Will Fail If
* There is no drawable resource for `io_teak_small_notification_icon`.
* There is no v21 drawable resource for `io_teak_small_notification_icon`
* The drawable resources point to the same image.
* The v21 drawable resources do not exist, or are the incorrect size
    * `drawable-mdpi/[icon_v21].png` does not exist, or is not 24x24
    * `drawable-hdpi/[icon_v21].png` does not exist, or is not 36x36
    * `drawable-xhdpi/[icon_v21].png` does not exist, or is not 48x48
    * `drawable-xxhdpi/[icon_v21].png` does not exist, or is not 72x72
    * `drawable-xxxhdpi/[icon_v21].png` does not exist, or is not 96x96

## Exports
The values for `io_teak_small_notification_icon` for less than v21, and v21+.

### Example
```json
{
  "icon": null,
  "icon_v21": "@drawable/icon_white"
}
```

## Reason
Android 5+ uses [Material Design](https://material.io/design/iconography/#notification) and needs a white and transparant icon for proper display of notification icons in the tray.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
headdesk-0.9.0 docs/teak/api21_icon.md