Skip to content

Commit

Permalink
Merge pull request #161 from natura-cosmeticos/add-product-icons
Browse files Browse the repository at this point in the history
[DSY-1567] Adding Product Icons
  • Loading branch information
mlcsouza authored Oct 21, 2020
2 parents 746478f + 2bcd916 commit 46977cf
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M12,18.25l-6.06,-0.05L5.94,9.61h12.23v2.89a0.5,0.5 0,0 0,1 0L19.17,9.61h0.27a1.06,1.06 0,0 0,1 -1v-2.9a1.09,1.09 0,0 0,-0.29 -0.71,1 1,0 0,0 -0.71,-0.25h-15a1.09,1.09 0,0 0,-0.71 0.34,1 1,0 0,0 -0.25,0.71v2.85a1,1 0,0 0,0.34 0.7,1 1,0 0,0 0.66,0.26h0.43v8.68a1.09,1.09 0,0 0,0.34 0.71,1 1,0 0,0 0.66,0.25L12,19.25a0.5,0.5 0,0 0,0.5 -0.5,0.5 0.5,0 0,0 -0.5,-0.5zM4.51,8.56L4.51,5.75h14.93v2.8a0.06,0.06 0,0 1,0 0.06zM21.51,16.24a0.76,0.76 0,0 0,-0.14 -0.57,0.78 0.78,0 0,0 -0.51,-0.3l-2.19,-0.3 -1,-1.91a0.8,0.8 0,0 0,-0.42 -0.41,0.78 0.78,0 0,0 -0.58,0 0.7,0.7 0,0 0,-0.37 0.37l-1,2 -2.19,0.31a0.73,0.73 0,0 0,-0.46 0.23,0.75 0.75,0 0,0 -0.2,0.55 0.77,0.77 0,0 0,0.24 0.53l1.57,1.52 -0.37,2.15a0.79,0.79 0,0 0,0.08 0.5,0.77 0.77,0 0,0 0.68,0.4 0.72,0.72 0,0 0,0.35 -0.08l1.95,-1 1.94,1a0.8,0.8 0,0 0,0.5 0.08,0.74 0.74,0 0,0 0.5,-0.32 0.7,0.7 0,0 0,0.12 -0.56l-0.37,-2.18 1.56,-1.53a0.74,0.74 0,0 0,0.29 -0.48zM19,17.55a0.66,0.66 0,0 0,-0.26 0.72l0.26,1.84 -1.67,-0.86a0.88,0.88 0,0 0,-0.32 -0.07,0.94 0.94,0 0,0 -0.36,0.08l-1.65,0.85 0.31,-1.83a0.85,0.85 0,0 0,-0.22 -0.66l-1.33,-1.29 1.83,-0.25a0.79,0.79 0,0 0,0.59 -0.41L17,14l0.8,1.59a0.71,0.71 0,0 0,0.6 0.43l1.83,0.26z"/>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M3,6.5v11A1.5,1.5 0,0 0,4.5 19L5,19v-1h-0.5a0.5,0.5 0,0 1,-0.5 -0.5v-11a0.5,0.5 0,0 1,0.5 -0.5L5,6L5,5h-0.5A1.5,1.5 0,0 0,3 6.5zM19.5,5L19,5v1h0.5a0.5,0.5 0,0 1,0.5 0.5v11a0.5,0.5 0,0 1,-0.5 0.5L19,18v1h0.5a1.5,1.5 0,0 0,1.5 -1.5v-11A1.5,1.5 0,0 0,19.5 5zM13.65,8.21a0.51,0.51 0,0 0,-0.12 -0.39l-0.12,-0.08v-0.52a0.49,0.49 0,0 0,0.37 -0.47,0.5 0.5,0 0,0 -0.5,-0.5L9.67,6.25a0.5,0.5 0,0 0,0 1h0.57v0.49a0.34,0.34 0,0 0,-0.12 0.09,0.52 0.52,0 0,0 -0.13,0.38 2.61,2.61 0,0 1,-0.05 0.9,5.93 5.93,0 0,0 -0.49,2.45v5.1a0.8,0.8 0,0 0,0.75 0.87h3.28a0.79,0.79 0,0 0,0.72 -0.85v-5.11a5.7,5.7 0,0 0,-0.47 -2.39,2.88 2.88,0 0,1 -0.08,-0.97zM11.24,7.21h1.17v0.41h-1.17zM13.24,16.49h-2.79v-5a5.3,5.3 0,0 1,0.43 -2.13,3.34 3.34,0 0,0 0.12,-0.7h1.65a3.86,3.86 0,0 0,0.14 0.85,5 5,0 0,1 0.41,2.05zM16,3L8,3a2,2 0,0 0,-2 2v14a2,2 0,0 0,2 2h8a2,2 0,0 0,2 -2L18,5a2,2 0,0 0,-2 -2zM17,19a1,1 0,0 1,-1 1L8,20a1,1 0,0 1,-1 -1L7,5a1,1 0,0 1,1 -1h8a1,1 0,0 1,1 1z"/>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M19.25,15.2a3,3 0,1 0,-3.5 2.95v1.05h-1a0.5,0.5 0,0 0,-0.5 0.5,0.5 0.5,0 0,0 0.5,0.5h1v1a0.5,0.5 0,1 0,1 0v-1h1a0.5,0.5 0,0 0,0.5 -0.5,0.5 0.5,0 0,0 -0.5,-0.5h-1v-1.05a3,3 0,0 0,2.5 -2.95zM16.25,17.2a2,2 0,1 1,2 -2,2 2,0 0,1 -2,2zM12.25,20.29L8.74,20.29a1.1,1.1 0,0 1,-0.74 -0.36c-1,-1.14 -2.12,-4.75 -2.21,-11.5h9.17v1.75a0.5,0.5 0,0 0,0.48 0.52,0.49 0.49,0 0,0 0.52,-0.48L15.96,7.93a0.5,0.5 0,0 0,-0.14 -0.36,0.51 0.51,0 0,0 -0.36,-0.14h-1.7l-0.22,-1.55a0.49,0.49 0,0 0,-0.49 -0.43h-0.36L12.69,2.8a0.5,0.5 0,0 0,-0.5 -0.5h-3.7a0.5,0.5 0,0 0,-0.5 0.5v2.65h-0.35a0.51,0.51 0,0 0,-0.5 0.43l-0.22,1.55L5.25,7.43a0.5,0.5 0,0 0,-0.35 0.14,0.51 0.51,0 0,0 -0.15,0.36c0,6.24 1,11 2.47,12.66a2,2 0,0 0,1.52 0.7h3.51a0.5,0.5 0,0 0,0.5 -0.5,0.5 0.5,0 0,0 -0.5,-0.5zM9,3.3h2.7v2.15L9,5.45zM8.07,6.45h4.55l0.13,1L7.93,7.45z"/>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M20.18,13.48a0.65,0.65 0,0 0,-0.1 -0.15,0.44 0.44,0 0,0 -0.15,-0.1 0.58,0.58 0,0 0,-0.18 0h-2.53a0.5,0.5 0,0 0,-0.5 0.5,0.5 0.5,0 0,0 0.5,0.5h1.29L17,15.73a3,3 0,1 0,0.71 0.71l1.56,-1.56v1.29a0.5,0.5 0,0 0,0.5 0.5,0.5 0.5,0 0,0 0.5,-0.5v-2.51a1,1 0,0 0,-0.09 -0.18zM15.18,20.17a2,2 0,1 1,2 -2,2 2,0 0,1 -1.96,2zM11.18,20.26L8.71,20.26a1.1,1.1 0,0 1,-0.77 -0.36c-1,-1.14 -2.12,-4.76 -2.22,-11.5h9.18c0,1 -0.05,1.89 -0.11,2.74a0.5,0.5 0,0 0,0.47 0.53,0.51 0.51,0 0,0 0.53,-0.46c0.07,-1 0.1,-2.13 0.11,-3.31a0.48,0.48 0,0 0,-0.5 -0.5h-1.67l-0.22,-1.55a0.49,0.49 0,0 0,-0.51 -0.43h-0.36L12.64,2.77a0.5,0.5 0,0 0,-0.5 -0.5L8.46,2.27a0.5,0.5 0,0 0,-0.5 0.5v2.65L7.6,5.42a0.49,0.49 0,0 0,-0.49 0.43L6.89,7.4L5.22,7.4a0.52,0.52 0,0 0,-0.36 0.14,0.54 0.54,0 0,0 -0.14,0.36c0,6.24 1,11 2.47,12.66a2,2 0,0 0,1.51 0.7h2.52a0.51,0.51 0,0 0,0.5 -0.5,0.5 0.5,0 0,0 -0.5,-0.5zM9,3.27h2.7v2.15L9,5.42zM8,6.42h4.54l0.14,1L7.9,7.42z"/>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M14.83,9.42c-0.09,0 -0.2,-0.06 -0.31,-0.1L14.52,7.23l1.86,-1a0.5,0.5 0,0 0,0.25 -0.44L16.63,3a0.5,0.5 0,0 0,-0.5 -0.5L7.87,2.5a0.5,0.5 0,0 0,-0.5 0.5v2.75a0.5,0.5 0,0 0,0.25 0.44l1.86,1v2a4.11,4.11 0,0 0,-1.36 0.56,7.64 7.64,0 0,0 -4.78,7.08L3.34,21a0.5,0.5 0,0 0,0.5 0.5h16.32a0.5,0.5 0,0 0,0.5 -0.5v-4.16a7.66,7.66 0,0 0,-5.83 -7.42zM17.83,16.09a1.14,1.14 0,0 1,-1.14 1.13A1.17,1.17 0,0 1,15.56 16l-0.91,-5.58c2.53,1.25 3.18,5.67 3.19,5.67zM14.56,16.09a1.14,1.14 0,0 1,-2.27 0v-5.9L13.59,10.19zM13.49,7.44v1.75h-3L10.49,7.44h3zM11,6.44v-1.5h2v1.5zM8.36,5.44v-2h7.26v2L14,6.39L14,4.44a0.5,0.5 0,0 0,-0.5 -0.5h-3a0.5,0.5 0,0 0,-0.5 0.5v1.95zM10,10.28a6.64,6.64 0,0 1,1 -0.09h0.31v5.9a1.13,1.13 0,0 1,-2.26 0zM8.59,10.65l0.36,-0.13L8,16.09a1.14,1.14 0,0 1,-2.27 0c0.1,-0.37 0.73,-4.04 2.85,-5.44zM4.34,16.84a6.62,6.62 0,0 1,1.36 -4,13.08 13.08,0 0,0 -0.94,3.26 1.12,1.12 0,0 1,-0.42 0.86zM19.66,20.5L4.34,20.5v-2.41a2.14,2.14 0,0 0,0.93 -0.63,2.11 2.11,0 0,0 1.63,0.76 2.16,2.16 0,0 0,1.64 -0.77,2.1 2.1,0 0,0 3.26,0 2.1,2.1 0,0 0,3.27 0,2.12 2.12,0 0,0 3.27,0 2.16,2.16 0,0 0,1.32 0.73zM19.66,17.16a1.16,1.16 0,0 1,-0.82 -1v-0.07a12.61,12.61 0,0 0,-1.41 -4.14,6.63 6.63,0 0,1 2.24,5z"/>
</vector>
5 changes: 5 additions & 0 deletions sample/src/main/assets/icons_map.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ outlined_action_qr
outlined_action_rating
outlined_action_recycle
outlined_action_request
outlined_action_requestspecial
outlined_action_runningclock
outlined_action_save
outlined_action_schedule
Expand Down Expand Up @@ -98,6 +99,7 @@ outlined_content_menu
outlined_content_mirror
outlined_content_password
outlined_content_planb
outlined_content_productshowcase
outlined_content_produtivity
outlined_content_report
outlined_content_store
Expand Down Expand Up @@ -163,6 +165,9 @@ outlined_product_hair
outlined_product_makeup
outlined_product_outlet
outlined_product_perfumery
outlined_product_perfumeryfeminine
outlined_product_perfumerymasculine
outlined_product_perfumerytbs
outlined_product_promotionproduct
outlined_product_scent
outlined_product_vegan
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class IconsRepositoryTest {
fun checksIfIconsListHasTheRightSize() {
val iconsList = iconsRepository.getIconsNamesFromFile()

assertEquals(220, iconsList.size)
assertEquals(225, iconsList.size)
}

@Test
Expand Down Expand Up @@ -74,6 +74,7 @@ class IconsRepositoryTest {
"outlined_action_rating",
"outlined_action_recycle",
"outlined_action_request",
"outlined_action_requestspecial",
"outlined_action_runningclock",
"outlined_action_save",
"outlined_action_schedule",
Expand Down Expand Up @@ -135,6 +136,7 @@ class IconsRepositoryTest {
"outlined_content_mirror",
"outlined_content_password",
"outlined_content_planb",
"outlined_content_productshowcase",
"outlined_content_produtivity",
"outlined_content_report",
"outlined_content_store",
Expand Down Expand Up @@ -200,6 +202,9 @@ class IconsRepositoryTest {
"outlined_product_makeup",
"outlined_product_outlet",
"outlined_product_perfumery",
"outlined_product_perfumeryfeminine",
"outlined_product_perfumerymasculine",
"outlined_product_perfumerytbs",
"outlined_product_promotionproduct",
"outlined_product_scent",
"outlined_product_vegan",
Expand Down

0 comments on commit 46977cf

Please sign in to comment.