Skip to content

Commit

Permalink
Bump @skyscanner/bpk-svgs from 19.3.0 to 20.0.0 (#2153)
Browse files Browse the repository at this point in the history
* Bump @skyscanner/bpk-svgs from 19.3.0 to 20.0.0

Bumps [@skyscanner/bpk-svgs](https://github.com/Skyscanner/bpk-svgs) from 19.3.0 to 20.0.0.
- [Release notes](https://github.com/Skyscanner/bpk-svgs/releases)
- [Commits](Skyscanner/bpk-svgs@19.3.0...20.0.0)

---
updated-dependencies:
- dependency-name: "@skyscanner/bpk-svgs"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update tokens

* Trigger CI

* Fix colour

* Updated snapshots

* Trigger CI

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Maria Neumayer <[email protected]>
  • Loading branch information
3 people authored Nov 22, 2024
1 parent a891d6d commit 18c3e86
Show file tree
Hide file tree
Showing 10 changed files with 70 additions and 39 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions backpack-common/src/main/res/drawable-nodpi/bpk_speaker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@color/bpkTextPrimary"
android:pathData="M13.6,2.354A1.448,1.448 0,0 1,16 3.392v17.216a1.448,1.448 0,0 1,-2.4 1.038L8.416,17.21a0.884,0.884 0,0 0,-0.575 -0.21L3.596,17A2.55,2.55 0,0 1,1 14.5v-5A2.55,2.55 0,0 1,3.596 7h4.246a0.885,0.885 0,0 0,0.575 -0.21l5.182,-4.437zM21.04,6.054a0.75,0.75 0,0 0,-1.205 0.892,8.503 8.503,0 0,1 0,10.108 0.75,0.75 0,0 0,1.206 0.892,10.001 10.001,0 0,0 -0.001,-11.892z" />
android:pathData="M13.599,2.354C14.53,1.557 16,2.193 16,3.392V20.608C16,21.807 14.529,22.443 13.599,21.646L8.417,17.209C8.258,17.073 8.054,16.998 7.842,16.998H3.596C2.162,16.998 1,15.879 1,14.498V9.501C1,8.12 2.162,7.001 3.596,7.001H7.842C8.054,7.001 8.258,6.926 8.417,6.79L13.599,2.354Z"
android:fillColor="@color/bpkTextPrimary" />
<path
android:fillColor="@color/bpkTextPrimary"
android:pathData="M19.16,8.672a0.75,0.75 0,0 0,-1.32 0.714,5.507 5.507,0 0,1 0,5.228 0.75,0.75 0,0 0,1.32 0.714,7.013 7.013,0 0,0 0,-6.656z" />
android:pathData="M21.041,6.054C20.794,5.721 20.324,5.651 19.992,5.897C19.659,6.144 19.589,6.614 19.835,6.946C20.882,8.359 21.5,10.106 21.5,12C21.5,13.894 20.882,15.641 19.835,17.054C19.589,17.386 19.659,17.856 19.992,18.103C20.324,18.349 20.794,18.279 21.041,17.946C22.272,16.284 23,14.226 23,12C23,9.774 22.272,7.716 21.041,6.054Z"
android:fillColor="@color/bpkTextPrimary" />
<path
android:pathData="M19.16,8.672C18.962,8.308 18.507,8.172 18.143,8.369C17.779,8.567 17.643,9.022 17.84,9.386C18.261,10.163 18.5,11.052 18.5,12C18.5,12.948 18.261,13.837 17.84,14.614C17.643,14.978 17.779,15.434 18.143,15.631C18.507,15.828 18.962,15.692 19.16,15.328C19.696,14.338 20,13.203 20,12C20,10.797 19.696,9.662 19.16,8.672Z"
android:fillColor="@color/bpkTextPrimary" />
</vector>
18 changes: 18 additions & 0 deletions backpack-common/src/main/res/drawable-nodpi/bpk_speaker_mute.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M5.587,16.998H3.596C2.162,16.998 1,15.879 1,14.498V9.501C1,8.12 2.162,7.001 3.596,7.001H7.842C8.054,7.001 8.258,6.926 8.417,6.79L13.599,2.354C14.53,1.557 16,2.193 16,3.392V6.586L20.293,2.293C20.683,1.902 21.317,1.902 21.707,2.293C22.098,2.683 22.098,3.317 21.707,3.707L3.707,21.707C3.317,22.098 2.683,22.098 2.293,21.707C1.902,21.317 1.902,20.683 2.293,20.293L5.587,16.998Z"
android:fillColor="@color/bpkTextPrimary" />
<path
android:pathData="M9.764,18.362C9.542,18.173 9.529,17.835 9.735,17.629L15.146,12.217C15.461,11.903 16,12.126 16,12.571V20.608C16,21.807 14.529,22.443 13.599,21.646L9.764,18.362Z"
android:fillColor="@color/bpkTextPrimary" />
<path
android:pathData="M18.017,9.347C17.94,9.424 17.923,9.541 17.969,9.64C18.309,10.354 18.5,11.154 18.5,12C18.5,12.948 18.261,13.837 17.84,14.614C17.643,14.978 17.779,15.434 18.143,15.631C18.507,15.828 18.962,15.692 19.16,15.328C19.696,14.338 20,13.203 20,12C20,10.797 19.898,10.148 19.492,9.299C19.373,9.079 19.199,8.778 19.073,8.59C19.005,8.487 18.878,8.486 18.791,8.573L18.017,9.347Z"
android:fillColor="@color/bpkTextPrimary" />
<path
android:pathData="M20.188,7.46C20.124,7.359 20.136,7.228 20.221,7.143L20.945,6.419C21.054,6.31 21.236,6.325 21.322,6.453C22.382,8.041 23,9.949 23,12C23,14.226 22.272,16.284 21.041,17.946C20.794,18.279 20.324,18.349 19.992,18.103C19.659,17.856 19.589,17.386 19.835,17.054C20.882,15.641 21.5,13.894 21.5,12C21.5,10.33 21.019,8.773 20.188,7.46Z"
android:fillColor="@color/bpkTextPrimary" />
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M5.893,17.248H3.141C1.406,17.248 0,16.073 0,14.623V9.376C0,7.926 1.406,6.751 3.141,6.751H6.629C6.885,6.751 7.133,6.672 7.324,6.53L13.595,1.871C14.721,1.035 16.5,1.703 16.5,2.961V6.641L20.671,2.47C20.964,2.177 21.439,2.177 21.732,2.47C22.025,2.763 22.025,3.237 21.732,3.53L3.53,21.732C3.237,22.025 2.763,22.025 2.47,21.732C2.177,21.439 2.177,20.964 2.47,20.671L5.893,17.248Z"
android:fillColor="@color/bpkTextPrimary" />
<path
android:pathData="M9.767,19.285C9.584,19.148 9.564,18.88 9.726,18.718L15.86,12.584C16.096,12.348 16.5,12.515 16.5,12.849V21.039C16.5,22.297 14.721,22.965 13.595,22.129L9.767,19.285Z"
android:fillColor="@color/bpkTextPrimary" />
<path
android:pathData="M20.983,7.915C20.877,7.762 20.891,7.553 21.023,7.421L21.651,6.793C21.807,6.637 22.064,6.648 22.198,6.824C23.338,8.317 24,10.095 24,12C24,14.137 23.168,16.113 21.761,17.708C21.479,18.028 20.942,18.095 20.562,17.858C20.181,17.622 20.101,17.171 20.383,16.851C21.579,15.495 22.286,13.818 22.286,12C22.286,10.511 21.812,9.116 20.983,7.915Z"
android:fillColor="@color/bpkTextPrimary" />
<path
android:pathData="M18.596,9.848C18.483,9.961 18.455,10.131 18.516,10.278C18.737,10.817 18.857,11.396 18.857,12C18.857,12.91 18.584,13.764 18.104,14.509C17.878,14.859 18.033,15.296 18.449,15.485C18.865,15.675 19.386,15.545 19.611,15.195C20.224,14.244 20.572,13.155 20.572,12C20.572,11.011 20.317,10.071 19.859,9.224C19.745,9.013 19.462,8.982 19.292,9.152L18.596,9.848Z"
android:fillColor="@color/bpkTextPrimary" />
</vector>
10 changes: 8 additions & 2 deletions backpack-common/src/main/res/drawable-nodpi/bpk_speaker_sm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@color/bpkTextPrimary"
android:pathData="M14.831,0.424C16.06,-0.53 18,0.232 18,1.67v20.66c0,1.438 -1.941,2.2 -3.169,1.246l-6.84,-5.325a1.24,1.24 0,0 0,-0.76 -0.253L3.427,17.998a3.235,3.235 0,0 1,-3.427 -3L0,9a3.235,3.235 0,0 1,3.427 -3L7.23,6a1.248,1.248 0,0 0,0.76 -0.252L14.83,0.424zM19.5,8.25a0.75,0.75 0,0 1,1.5 0v7.5a0.75,0.75 0,0 1,-1.5 0zM23.25,4.5a0.75,0.75 0,0 0,-0.75 0.75v13.5a0.75,0.75 0,0 0,1.5 0L24,5.25a0.75,0.75 0,0 0,-0.75 -0.75z" />
android:pathData="M13.595,1.871C14.721,1.035 16.5,1.703 16.5,2.961V21.039C16.5,22.297 14.721,22.965 13.595,22.129L7.324,17.469C7.133,17.327 6.885,17.248 6.629,17.248H3.141C1.406,17.248 0,16.073 0,14.623V9.376C0,7.926 1.406,6.751 3.141,6.751H6.629C6.885,6.751 7.133,6.672 7.324,6.53L13.595,1.871Z"
android:fillColor="@color/bpkTextPrimary" />
<path
android:pathData="M21.761,6.292C21.479,5.972 20.942,5.905 20.562,6.141C20.181,6.378 20.101,6.829 20.383,7.149C21.579,8.505 22.286,10.182 22.286,12C22.286,13.818 21.579,15.495 20.383,16.851C20.101,17.171 20.181,17.622 20.562,17.858C20.942,18.095 21.479,18.028 21.761,17.708C23.168,16.113 24,14.137 24,12C24,9.863 23.168,7.887 21.761,6.292Z"
android:fillColor="@color/bpkTextPrimary" />
<path
android:pathData="M19.611,8.805C19.386,8.455 18.865,8.325 18.449,8.515C18.033,8.704 17.878,9.141 18.104,9.491C18.584,10.236 18.857,11.09 18.857,12C18.857,12.91 18.584,13.764 18.104,14.509C17.878,14.859 18.033,15.296 18.449,15.485C18.865,15.675 19.386,15.545 19.611,15.195C20.224,14.244 20.572,13.155 20.572,12C20.572,10.845 20.224,9.756 19.611,8.805Z"
android:fillColor="@color/bpkTextPrimary" />
</vector>
Original file line number Diff line number Diff line change
Expand Up @@ -1820,6 +1820,14 @@ public val BpkIcon.Companion.Speaker: BpkIcon by Delegates.singleton(
)
)

public val BpkIcon.Companion.SpeakerMute: BpkIcon by Delegates.singleton(
BpkIcon(
name = "speaker-mute",
small = R.drawable.bpk_speaker_mute_sm,
large = R.drawable.bpk_speaker_mute,
)
)

public val BpkIcon.Companion.Star: BpkIcon by Delegates.singleton(
BpkIcon(
name = "star",
Expand Down Expand Up @@ -2446,6 +2454,7 @@ public val BpkIcon.Companion.values: List<BpkIcon> by Delegates.singleton(
BpkIcon.SortDown,
BpkIcon.SortUp,
BpkIcon.Speaker,
BpkIcon.SpeakerMute,
BpkIcon.Star,
BpkIcon.StarHalf,
BpkIcon.StarOutline,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ private fun toXml(source: BpkIcons, rootDir: String, metadataPath: String): Map<
fun BpkIcon.fileContent(metadata: Map<String, String?>) =
value
.replace("android:fillColor=\"#FF000000\"", " android:fillColor=\"@color/bpkTextPrimary\"")
.replace("android:fillColor=\"#161616\"", " android:fillColor=\"@color/bpkTextPrimary\"")
.replace("<path", " <path")
.replace("android:pathData=", " android:pathData=")
.replace("\"/>", "\" />")
Expand Down
40 changes: 8 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"homepage": "https://github.com/Skyscanner/backpack-android#readme",
"devDependencies": {
"@skyscanner/bpk-foundations-android": "^7.10.0",
"@skyscanner/bpk-svgs": "^19.0.0"
"@skyscanner/bpk-svgs": "^20.0.0"
}
}

0 comments on commit 18c3e86

Please sign in to comment.