Skip to content

Commit

Permalink
Android: several improvements (#65)
Browse files Browse the repository at this point in the history
Changes for Android tokens:

- Add missing copyright to some generated Android files.
- Move generated tokens Java package to io.element.android.compound.tokens.generated.
- Make LightColorTokens and DarkColorTokens public so their core tokens can be referenced, but add @CoreColorToken Java annotation, used by a linter to verify it's called on purpose. This can help create temporary color tokens in the Android app before they're added to Compound.
- Fix indentation in some templates so the generated files are properly formatted.
- Create a new CompoundIcons.kt file containing both a helper to reference compound icons in vector format quickly on Android, and get a complete list of the included icons for UI preview and screenshot testing.
  • Loading branch information
jmartinesp authored Jan 24, 2024
1 parent fc44065 commit e4c138d
Show file tree
Hide file tree
Showing 22 changed files with 585 additions and 139 deletions.
9 changes: 0 additions & 9 deletions assets/android/res/drawable/ic_chevron.xml

This file was deleted.

18 changes: 0 additions & 18 deletions assets/android/res/drawable/ic_grid_view.xml

This file was deleted.

12 changes: 0 additions & 12 deletions assets/android/res/drawable/ic_spotlight_view.xml

This file was deleted.

13 changes: 0 additions & 13 deletions assets/android/res/drawable/ic_thread.xml

This file was deleted.

11 changes: 0 additions & 11 deletions assets/android/res/drawable/ic_user.xml

This file was deleted.

9 changes: 0 additions & 9 deletions assets/android/res/drawable/ic_video_call_declined.xml

This file was deleted.

9 changes: 0 additions & 9 deletions assets/android/res/drawable/ic_video_call_missed.xml

This file was deleted.

9 changes: 0 additions & 9 deletions assets/android/res/drawable/ic_visibility_invisible.xml

This file was deleted.

9 changes: 0 additions & 9 deletions assets/android/res/drawable/ic_visibility_visible.xml

This file was deleted.

Loading

0 comments on commit e4c138d

Please sign in to comment.