Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
briar
briar
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 696
    • Issues 696
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 8
    • Merge Requests 8
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • briar
  • briarbriar
  • Merge Requests
  • !1346

Merged
Opened Jan 21, 2021 by Torsten Grote@groteOwner

Use vector support libraries instead of rasterizing all drawables

  • Overview 16
  • Commits 4
  • Pipelines 3
  • Changes 77

Currently, the android gradle plugin rasterizes all our drawables for all possible resolutions and stores PNG files for those. These are used on phones with API < 21, but can lead to blurry icons if the dp value in the xml file is not matching the actual size on screen. Also it takes up more space in the APK.

This MR enables the androidx library support for vector drawables, so we can use them on lower API levels as well and makes the required code modifications. NotificationCompat doesn't take care (yet?) of using VectorDrawables for notifications, so the only solution is to include pre-rasterized icons only for notifications.

Official documentation: https://developer.android.com/guide/topics/graphics/vector-drawable-resources#vector-drawables-backward-solution

Assignee
Assign to
Reviewer
Request review from
Adapt to changes in the Android platform
Milestone
Adapt to changes in the Android platform
Assign milestone
Time tracking
Reference: briar/briar!1346
Source branch: vector-compat