Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Android support #291

Merged
merged 41 commits into from
Jun 28, 2024
Merged

Add Android support #291

merged 41 commits into from
Jun 28, 2024

Conversation

hakonschia
Copy link
Member

Ikoner blir nå parset fra SVGer til Android drawables så vi i Android verdenen lettere kan bruke ikoner rett fra core-icons. Dette er spesielt for å enkelt kunne bruke ekspressive varianter for barneprofiler i NRK TV

Scriptet kjøres på endringer på master og publisher en pakke til Github packages

Se README eller MainActivity for hvordan man kan bruke ikonene, eller se på branchen feature/expressive-icons-v2 i TV

Anigif and others added 30 commits June 1, 2023 13:33
README.md Outdated

### Usage

This library makes it easy to use expressive variants of the icons. See also the [demo app](/android/app/src/main/kotlin/no/nrk/core/icons/MainActivity.kt).
Copy link
Collaborator

@skjalgepalg skjalgepalg Jun 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only expressive variants?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit poorly written, I can see how it sounds like only expressive variants are included. Maybe this is better?

This library makes it easy to use NRK icons, as well as automatically changing to expressive variants?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I've understood the intent, possibly something in the lines of (...) as well as providing utility to switch between expressive and regular icon variants of the same icon (globally)?

README.md Outdated Show resolved Hide resolved
@skjalgepalg
Copy link
Collaborator

Veldig kult, tenker det er gunstig med en notis om android under f.eks. installation på docs i static som tegnes fra lib/readme.md.


# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possible nitpick, but can this file be formatted according to editorconfig for newline?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just an autogenerated file that isn't really in use, I'll delete it

package.json Outdated
@@ -104,5 +104,8 @@
"repository": {
"type": "git",
"url": "git+https://github.com/nrkno/core-icons.git"
},
"dependencies": {
"svg2vectordrawable": "^2.9.1"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please lock this to an explicit version using npm i -E svg2vectordrawable (lockfile should update too) to avoid possible different versions being used to build, between two unrelated commits to master.

@skjalgepalg skjalgepalg requested a review from Anigif June 26, 2024 07:03
@skjalgepalg skjalgepalg added the Android Relates to android icon package and capabilities label Jun 26, 2024
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@hakonschia hakonschia linked an issue Jun 28, 2024 that may be closed by this pull request
5 tasks
Copy link
Member

@Anigif Anigif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ser greit ut, bra jobbet! 🎉 Tenker bare det er å få merged dette nå og da kan vi se hvordan det funger i praksis - og evt. justere etterhvert om det trenges 👍

@hakonschia hakonschia merged commit 68137dd into master Jun 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Relates to android icon package and capabilities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Android implementation
3 participants