Skip to content

Commit

Permalink
legg til digdir ikoner i demo mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shoyheim-dd committed Oct 18, 2024
1 parent 9d13845 commit 654efdd
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 114 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ internal class WalletCoreConfigImpl(
) : WalletCoreConfig {

private companion object {
/*
const val VCI_ISSUER_URL = "https://abr.vc.local"
const val VCI_CLIENT_ID = "abr.vc.local"
const val AUTHENTICATION_REQUIRED = false
*/
const val VCI_ISSUER_URL = "https://demo-vc-issuer.idporten.dev"
const val VCI_CLIENT_ID = "demo-vc-issuer.idporten.dev"
const val AUTHENTICATION_REQUIRED = false
Expand Down
18 changes: 18 additions & 0 deletions resources-logic/src/demo/res/drawable/ic_launcher_foreground.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="108dp"
android:height="108dp"
android:viewportWidth="25"
android:viewportHeight="25">
<group android:scaleX="0.3515888"
android:scaleY="0.3515888"
android:translateX="8.145833"
android:translateY="8.145833">
<group>
<clip-path
android:pathData="M0,0h24.69v24.74h-24.69z"/>
<path
android:pathData="M12.67,0H0.5C0.367,0 0.24,0.053 0.146,0.146C0.053,0.24 0,0.367 0,0.5V24.24C0,24.373 0.053,24.5 0.146,24.594C0.24,24.687 0.367,24.74 0.5,24.74H12.67C15.889,24.649 18.944,23.306 21.189,20.997C23.433,18.688 24.688,15.595 24.688,12.375C24.688,9.155 23.433,6.062 21.189,3.753C18.944,1.444 15.889,0.102 12.67,0.01V0ZM13.86,21.01C12.019,21.327 10.124,21.049 8.451,20.218C6.778,19.386 5.413,18.044 4.553,16.385C3.694,14.726 3.385,12.836 3.671,10.99C3.957,9.144 4.824,7.436 6.145,6.115C7.466,4.794 9.174,3.927 11.02,3.641C12.866,3.355 14.756,3.664 16.415,4.523C18.074,5.383 19.416,6.748 20.248,8.421C21.08,10.094 21.357,11.989 21.04,13.83C20.732,15.622 19.876,17.274 18.59,18.56C17.304,19.846 15.652,20.702 13.86,21.01"
android:fillColor="#0062B8"/>
</group>
</group>
</vector>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 1 addition & 17 deletions resources-logic/src/demo/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2023 European Commission
~
~ Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the European
~ Commission - subsequent versions of the EUPL (the "Licence"); You may not use this work
~ except in compliance with the Licence.
~
~ You may obtain a copy of the Licence at:
~ https://joinup.ec.europa.eu/software/page/eupl
~
~ Unless required by applicable law or agreed to in writing, software distributed under
~ the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF
~ ANY KIND, either express or implied. See the Licence for the specific language
~ governing permissions and limitations under the Licence.
-->

<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2023 European Commission
~
~ Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the European
~ Commission - subsequent versions of the EUPL (the "Licence"); You may not use this work
~ except in compliance with the Licence.
~
~ You may obtain a copy of the Licence at:
~ https://joinup.ec.europa.eu/software/page/eupl
~
~ Unless required by applicable law or agreed to in writing, software distributed under
~ the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF
~ ANY KIND, either express or implied. See the Licence for the specific language
~ governing permissions and limitations under the Licence.
-->

<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
Binary file modified resources-logic/src/demo/res/mipmap-hdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file modified resources-logic/src/demo/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Binary file modified resources-logic/src/demo/res/mipmap-mdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified resources-logic/src/demo/res/mipmap-xhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file modified resources-logic/src/demo/res/mipmap-xxhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file modified resources-logic/src/demo/res/mipmap-xxxhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#FFFFFF</color>
</resources>
91 changes: 11 additions & 80 deletions resources-logic/src/main/res/drawable/ic_logo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,85 +19,16 @@
android:height="160dp"
android:viewportWidth="160"
android:viewportHeight="160">
<path
android:fillColor="#dce5f2"
android:pathData="M143.13,71.06c-4.49,-8.25 -12.26,-14.2 -20.57,-18.35 -9.01,-4.49 -19.24,-8.15 -29.34,-8.94 -8.74,-0.69 -18.02,1.35 -24.6,7.4 -4.5,4.17 -8.04,11.01 -10.49,16.43 -2.03,4.51 -3.69,9.29 -3.88,14.27 -0.36,9.77 5.16,18.85 9.85,27.06 4.48,7.84 9.99,15.06 18.85,18.17 8.48,2.97 18.23,2.65 26.93,0.8 17.13,-3.65 32.35,-15.39 36.25,-32.95a34.22,34.22 0,0 0,-3.01 -23.87Z" />
<group>
<clip-path android:pathData="M58.26,101.35c6.5,-4.09 10.94,-10.7 13.88,-17.65 3.18,-7.54 5.6,-16.02 5.7,-24.24 0.09,-7.11 -2.09,-14.52 -7.4,-19.51C66.78,36.54 61,34.05 56.43,32.37A31.86,31.86 0,0 0,44.55 30.01c-8.02,0.25 -15.13,5.21 -21.59,9.45C16.79,43.53 11.18,48.38 9.13,55.72c-1.96,7.03 -1.16,14.9 0.83,21.84C13.88,91.22 24.32,102.89 38.9,105.09A28.3,28.3 0,0 0,58.26 101.35Z" />
<path
android:fillColor="#dce5f2"
android:pathData="M15.61,103.71c18.33,-10.76 35.66,-20.93 53,-31.11 2.56,-1.5 5.15,-2.79 7.68,-4.58 11.65,-8.25 19.74,-9.62 28.24,-11.96 1.97,-0.54 2.6,0.87 4.3,1.57 -10.03,5.84 -18.9,11.09 -27.72,16.13Q55.35,88.47 29.64,102.97c-10.89,6.16 -10.88,6.13 -14.03,0.74Z" />
<path
android:fillColor="#dce5f2"
android:pathData="M21.84,111.98c8.61,-5.03 15.96,-9.4 23.25,-13.56Q73.72,82.06 102.28,65.91c2.9,-1.63 7.72,-5.82 7.85,-2.82 0.08,1.63 -6.94,9.33 -10.44,11.51 -4.72,2.94 -9.43,5.75 -14.13,8.56C70.46,92.19 55.38,101.09 40.25,110.29c-6.26,3.81 -9.24,3.46 -12.23,2.93 -1.86,-0.33 -3.66,-0.73 -6.18,-1.24Z" />
<path
android:fillColor="#dce5f2"
android:pathData="M74.14,51.66c-5.3,3.37 -10.54,5.22 -15.64,8.21 -5.9,3.46 -11.98,7.67 -17.98,11.51 -7.68,4.92 -15.37,9.9 -23.03,14.66 -4.45,2.77 -6.34,4.32 -7.89,0.85 -0.75,-1.67 -1.67,-3.31 0.42,-4.97 3.86,-2.2 9.66,-6.46 13.12,-8.67 10.05,-6.41 20.13,-13 30.2,-19.5 3.64,-2.35 7.28,-4.61 10.92,-6.95 7.53,-4.83 10,-3.89 10.15,-0.17a7.4,7.4 0,0 0,0.59 2.4,2.14 2.14,0 0,1 -0.86,2.61Z" />
<path
android:fillColor="#dce5f2"
android:pathData="M80.01,60.62c-7.24,4.16 -14.17,8.13 -21.14,12.23 -11.03,6.5 -22.06,12.96 -33.15,19.8 -13.13,8.11 -13.16,8.28 -13.38,0.25 4.24,-2.27 8.22,-4.06 12.29,-6.66 6.43,-4.1 12.94,-8.98 19.37,-13.06 6.06,-3.85 12.05,-7.09 18.07,-10.58 0.42,-0.25 18.37,-9.11 20.38,-5.11 0.42,0.83 -0.97,2.28 -2.45,3.12Z" />
<path
android:fillColor="#dce5f2"
android:pathData="M71.07,38.55C51.38,51.1 30.28,64.34 9.19,77.79c-7.74,0.74 -7.04,-2.89 -4.77,-7.21 0.19,-0.37 6.69,-4.42 15.36,-9.68C33.72,52.44 53.31,40.88 61.34,36.58c8.73,-4.67 9.3,-4.06 9.73,1.98Z" />
<path
android:fillColor="#dce5f2"
android:pathData="M59.7,34.17C57.75,35.83 28.73,52.36 15.05,59.51c-5.08,2.66 -10,7.42 -11.16,7.07 -1.45,-0.44 -4.1,-3.9 -1.2,-6.44C8.58,54.99 23.43,46.99 29.65,43.1c5.98,-3.75 24.63,-13.92 28.27,-13.6 2.53,0.22 4.46,2.41 1.78,4.68Z" />
<path
android:fillColor="#dce5f2"
android:pathData="M-3.74,50.7C-1.78,49.05 27.24,32.52 40.91,25.37c5.08,-2.66 10,-7.42 11.16,-7.07 1.45,0.44 4.1,3.9 1.2,6.44C47.38,29.89 32.53,37.89 26.32,41.77 20.34,45.52 1.69,55.69 -1.95,55.38 -4.48,55.16 -6.41,52.97 -3.74,50.7Z" />
<path
android:fillColor="#dce5f2"
android:pathData="M98.56,78.71c-14.2,16.2 -44.83,34.45 -56.85,33.86Q70.14,95.64 98.56,78.71Z" />
<group android:scaleX="2.8"
android:scaleY="2.8"
android:translateX="48.145833"
android:translateY="48.145833">
<group>
<clip-path
android:pathData="M0,0h24.69v24.74h-24.69z"/>
<path
android:pathData="M12.67,0H0.5C0.367,0 0.24,0.053 0.146,0.146C0.053,0.24 0,0.367 0,0.5V24.24C0,24.373 0.053,24.5 0.146,24.594C0.24,24.687 0.367,24.74 0.5,24.74H12.67C15.889,24.649 18.944,23.306 21.189,20.997C23.433,18.688 24.688,15.595 24.688,12.375C24.688,9.155 23.433,6.062 21.189,3.753C18.944,1.444 15.889,0.102 12.67,0.01V0ZM13.86,21.01C12.019,21.327 10.124,21.049 8.451,20.218C6.778,19.386 5.413,18.044 4.553,16.385C3.694,14.726 3.385,12.836 3.671,10.99C3.957,9.144 4.824,7.436 6.145,6.115C7.466,4.794 9.174,3.927 11.02,3.641C12.866,3.355 14.756,3.664 16.415,4.523C18.074,5.383 19.416,6.748 20.248,8.421C21.08,10.094 21.357,11.989 21.04,13.83C20.732,15.622 19.876,17.274 18.59,18.56C17.304,19.846 15.652,20.702 13.86,21.01"
android:fillColor="#0062B8"/>
</group>
</group>
<path
android:fillColor="#0048d2"
android:pathData="M89.09,69.42a1.51,1.51 0,0 1,0.01 1.4l-18.93,36.82 -0.39,0.76 -0.01,0.02a8.61,8.61 0,0 1,-3.18 3.16,8.74 8.74,0 0,1 -11.91,-3.18c-0.06,-0.1 -0.11,-0.2 -0.16,-0.29l-21.24,-40a2.74,2.74 0,0 1,2.43 -4.02h47.94a4.37,4.37 0,0 1,3.87 2.33l1.59,3h0Z" />
<path
android:fillColor="#0048d2"
android:pathData="M64.26,52.36c2.37,4.71 0.45,8.53 -4.29,8.53s-10.48,-3.82 -12.85,-8.53 0.93,-7.07 5.66,-7.07a12.5,12.5 0,0 1,11.48 7.07Z" />
<path
android:fillColor="#fff1ba"
android:pathData="M84.41,76.95a1.25,1.25 0,0 1,0.01 1.15l-7.33,30.3 -0.32,0.62 -0.01,0.01a7.06,7.06 0,0 1,-2.62 2.6,7.2 7.2,0 0,1 -9.8,-2.61c-0.05,-0.08 -0.09,-0.16 -0.14,-0.24l-16.96,-32.54a2.25,2.25 0,0 1,2 -3.31l30.68,-0.37a3.6,3.6 0,0 1,3.18 1.91L84.41,76.95h0Z" />
<path
android:fillColor="#ff6e70"
android:pathData="M80.86,83.07a0.71,0.71 0,0 1,0 0.66L77.86,101.04l-0.18,0.36v0.01a4.11,4.11 0,0 1,-7.1 0c-0.03,-0.05 -0.05,-0.09 -0.08,-0.14l-9.63,-18.45a1.29,1.29 0,0 1,1.14 -1.89l16.29,-0.35a2.06,2.06 0,0 1,1.82 1.09l0.75,1.41h0Z" />
<path
android:fillColor="#0048d2"
android:pathData="M151.05,50.86l-28.11,54.45a13.79,13.79 0,0 1,-12.32 7.45L62.08,112.76c2.26,0 4.67,-1.99 6.21,-5.12 0,-0.01 0.01,-0.02 0.01,-0.03l0.24,-0.47 2.37,-4.6 28.12,-54.59a11.72,11.72 0,0 1,10.47 -6.33l7.34,0.04a1.36,1.36 0,0 1,1.21 1.96l-2.09,4.45c-2.94,5.84 -0.8,10.59 4.79,10.6 6.19,0 11.49,-2.8 15.44,-10.57 0.7,-1.38 2.66,-5.58 2.66,-5.58a1.37,1.37 0,0 1,1.22 -0.75l5.46,0.03c8.76,0 6.39,7.33 5.52,9.07h0Z" />
<path
android:fillColor="#fff1ba"
android:pathData="M115.75,69.7L117.78,69.7l-2.16,1.33 -0.18,2.11 -1.13,-1.3 -2.15,1.3 1.48,-2.11 -1.13,-1.33h2.03l1.42,-2.06 -0.2,2.06Z" />
<path
android:fillColor="#fff1ba"
android:pathData="M105.23,96.82h2.12l-2.21,1.28 -0.12,2.03 -1.22,-1.25 -2.19,1.25 1.47,-2.03 -1.22,-1.28h2.11l1.41,-1.98 -0.15,1.98Z" />
<path
android:fillColor="#fff1ba"
android:pathData="M112.63,95.02h2.11l-2.19,1.28 -0.11,2.03 -1.22,-1.25 -2.18,1.25 1.45,-2.03 -1.23,-1.28h2.11l1.39,-1.98 -0.14,1.98Z" />
<path
android:fillColor="#fff1ba"
android:pathData="M121.59,71.5h2.04l-2.13,1.28 -0.13,2.03 -1.17,-1.25 -2.12,1.25 1.42,-2.03 -1.17,-1.28h2.04l1.37,-1.98 -0.15,1.98Z" />
<path
android:fillColor="#fff1ba"
android:pathData="M124.53,76.48h2.06L124.45,77.76l-0.11,2.03 -1.19,-1.25 -2.13,1.25L122.45,77.76l-1.19,-1.28h2.05l1.36,-1.98 -0.13,1.98Z" />
<path
android:fillColor="#fff1ba"
android:pathData="M119.43,90.11h2.1l-2.17,1.28 -0.1,2.03 -1.22,-1.25 -2.15,1.25 1.43,-2.03 -1.22,-1.28h2.09l1.38,-1.98 -0.12,1.98Z" />
<path
android:fillColor="#fff1ba"
android:pathData="M123.85,83.19h2.08l-2.15,1.28 -0.1,2.03 -1.21,-1.25 -2.14,1.25 1.42,-2.03 -1.21,-1.28h2.07l1.36,-1.98 -0.13,1.98Z" />
<path
android:fillColor="#fff1ba"
android:pathData="M108.44,71.52h2.04L108.33,72.8l-0.17,2.03L107.02,73.58l-2.15,1.25L106.33,72.8l-1.14,-1.28L107.22,71.52l1.41,-1.98 -0.19,1.98Z" />
<path
android:fillColor="#fff1ba"
android:pathData="M101.74,76.5h2.06l-2.17,1.28 -0.18,2.03 -1.14,-1.25 -2.17,1.25 1.48,-2.03 -1.15,-1.28h2.05l1.43,-1.98 -0.2,1.98Z" />
<path
android:fillColor="#fff1ba"
android:pathData="M97.24,83.21h2.08l-2.2,1.28 -0.18,2.03 -1.16,-1.25 -2.19,1.25 1.5,-2.03 -1.16,-1.28h2.07l1.44,-1.98 -0.2,1.98Z" />
<path
android:fillColor="#fff1ba"
android:pathData="M96.19,90.12h2.1l-2.21,1.28 -0.17,2.03 -1.18,-1.25 -2.2,1.25 1.5,-2.03 -1.18,-1.28L94.94,90.12l1.44,-1.98 -0.19,1.98Z" />
<path
android:fillColor="#fff1ba"
android:pathData="M99.09,95.04h2.11l-2.21,1.28 -0.15,2.03 -1.2,-1.25 -2.2,1.25 1.49,-2.03 -1.2,-1.28h2.11l1.43,-1.98 -0.17,1.98Z" />
</vector>

0 comments on commit 654efdd

Please sign in to comment.