feat: show happy birthday (MESSENGER-6570)

This commit is contained in:
Frank Rotermund
2024-10-28 13:57:15 +01:00
parent 2252384eac
commit a499c35e96
9 changed files with 80 additions and 282 deletions

View File

@@ -590,7 +590,7 @@ class BWIBuildSettings: NSObject {
var bwiEnableRegisterInfo = false
var bwiShowHappyBirthdayCampaign = false
var bwiHappyBirthdayCampaignIdentifier: String = "2022"
var bwiHappyBirthdayCampaignIdentifier: String = "2024"
var bwiDisableSecuritySettingsUntrustedDevices = true

View File

@@ -1,274 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
data-name="Layer 1"
width="297mm"
height="210mm"
viewBox="0 0 1122.5197 793.70082"
version="1.1"
id="svg129"
sodipodi:docname="20221027_BwM_Bday_scaled.svg"
inkscape:export-filename="/Users/masterb/Desktop/20220922_BwM_Bday.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
inkscape:version="1.1.1 (c3084ef, 2021-09-22)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs133" />
<sodipodi:namedview
id="namedview131"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="false"
showgrid="false"
units="mm"
inkscape:zoom="0.58854462"
inkscape:cx="496.1391"
inkscape:cy="459.60831"
inkscape:window-width="1698"
inkscape:window-height="969"
inkscape:window-x="36"
inkscape:window-y="25"
inkscape:window-maximized="0"
inkscape:current-layer="svg129"
inkscape:document-units="mm" />
<path
d="M 272.19319,415.40121 C 219.37506,351.85165 197.06717,285.55351 209.3771,228.72127 225.17468,155.78911 295.35551,105.36267 401.92444,90.371865 l 0.39359,4.183519 C 297.23266,109.33651 228.12242,158.63122 212.70752,229.79849 c -11.98024,55.30893 10.00384,120.15875 61.90272,182.6033 z"
fill="#f0f0f0"
id="path42"
style="stroke-width:1.7606" />
<path
d="m 781.79896,520.30565 c -65.92027,0 -137.55436,-11.9729 -208.70745,-34.99568 C 485.1014,456.83937 404.4239,413.8662 339.78108,361.03451 l 1.91422,-3.49896 c 64.33158,52.57576 144.65166,95.35259 232.27762,123.70396 79.18639,25.62335 158.96654,37.49557 230.68641,34.36249 l 0.12454,4.2062 q -11.3612,0.49949 -22.98485,0.49745 z"
fill="#f0f0f0"
id="path44"
style="stroke-width:1.7606" />
<path
d="m 933.02817,614.50633 -1.1034,-3.98819 C 990.88145,586.15498 1027.7565,546.90898 1038.5635,497.0191 1052.3007,433.59703 1022.4564,359.9998 954.52782,289.78437 886.25273,219.21226 787.79873,160.65518 677.29807,124.90194 l 0.88138,-4.07046 c 110.98343,35.91051 209.91677,94.77082 278.57201,165.73866 69.00174,71.32351 99.23954,146.44509 85.14244,211.52621 -11.1165,51.32065 -48.7619,91.57399 -108.86573,116.40998 z"
fill="#f0f0f0"
id="path46"
style="stroke-width:1.7606" />
<path
d="M 391.66829,642.74256 C 262.13887,572.52918 162.32665,481.43612 110.61949,386.2419 l 2.86955,-2.3292 c 51.34971,94.5354 150.638,185.08875 279.57533,254.98143 z"
fill="#f0f0f0"
id="path48"
style="stroke-width:1.7606" />
<path
d="m 847.0834,764.38149 q -20.0405,0 -40.76558,-1.09367 l 0.14811,-4.20618 c 103.10983,5.45604 194.08557,-9.62521 263.10917,-43.62178 l 1.2884,3.90601 c -60.2115,29.65272 -136.95563,45.01562 -223.7801,45.01562 z"
fill="#f0f0f0"
id="path50"
style="stroke-width:1.7606" />
<path
d="M 771.92884,94.147329 C 750.52,85.628145 728.49894,77.695872 706.47785,70.570512 579.7549,29.56782 455.18494,15.00977 346.23003,28.478264 l -0.34649,-4.189706 c 109.36108,-13.512689 234.35745,1.080256 361.47567,42.211497 22.08331,7.145909 44.16662,15.100791 65.63599,23.644647 z"
fill="#f0f0f0"
id="path52"
style="stroke-width:1.7606" />
<path
d="M 191.24068,421.71657 C 138.42255,358.16703 116.11466,291.86889 128.42459,235.03663 144.22217,162.10447 214.40301,111.67805 320.97193,96.687252 l 0.39359,4.183518 c -105.08537,14.78113 -174.19561,64.07584 -189.61051,135.2431 -11.98023,55.30894 10.00384,120.15875 61.90274,182.60331 z"
fill="#f0f0f0"
id="path54"
style="stroke-width:1.7606" />
<path
d="m 700.84642,526.62104 c -65.92024,0 -137.55434,-11.97291 -208.70743,-34.99568 C 404.14887,463.15473 323.47136,420.18158 258.82856,367.34988 l 1.91422,-3.49894 c 64.33159,52.57575 144.65166,95.35258 232.27762,123.70396 79.18639,25.62333 158.96654,37.49556 230.68641,34.36249 l 0.12454,4.20619 q -11.3612,0.4995 -22.98485,0.49746 z"
fill="#f0f0f0"
id="path56"
style="stroke-width:1.7606" />
<path
d="m 852.07567,620.82175 -1.10342,-3.98819 C 909.92892,592.47041 946.80397,553.2244 957.61097,503.33455 971.34814,439.91246 941.5039,366.31524 873.5753,296.0998 805.3002,225.5276 706.84617,166.9705 596.34556,131.21729 l 0.88137,-4.07046 c 110.9834,35.91051 209.91679,94.77071 278.57202,165.73862 69.00173,71.32351 99.2395,146.44509 85.14244,211.52618 -11.11653,51.32074 -48.76193,91.57409 -108.86572,116.41012 z"
fill="#f0f0f0"
id="path58"
style="stroke-width:1.7606" />
<path
d="M 310.71576,649.05795 C 181.18635,578.84457 81.374123,487.75151 29.666982,392.55728 l 2.869532,-2.32921 C 83.886229,484.76349 183.1745,575.31684 312.11184,645.20952 Z"
fill="#f0f0f0"
id="path60"
style="stroke-width:1.7606" />
<path
d="m 766.13087,770.69695 q -20.04047,0 -40.76557,-1.09368 l 0.14793,-4.20619 c 103.10985,5.45606 194.08556,-9.62519 263.10917,-43.62176 l 1.28835,3.90599 c -60.2113,29.65266 -136.95538,45.01564 -223.77988,45.01564 z"
fill="#f0f0f0"
id="path62"
style="stroke-width:1.7606" />
<path
d="M 690.9763,100.46269 C 669.56748,91.943506 647.54642,84.011259 625.52533,76.885872 498.80238,35.883181 374.23241,21.325118 265.27751,34.793625 l -0.3465,-4.189693 c 109.36109,-13.512715 234.35743,1.080255 361.47565,42.211484 22.08332,7.145921 44.16663,15.100779 65.636,23.644647 z"
fill="#f0f0f0"
id="path64"
style="stroke-width:1.7606" />
<path
d="m 348.75867,292.40691 a 26.727034,32.666043 0 0 0 -26.69718,32.62954 1254.4728,1533.2289 0 0 0 -10.12832,275.70174 c 0.20268,5.87955 0.42724,11.25749 0.68798,16.4463 0.37846,8.56852 0.85952,17.61399 1.42889,26.8897 0.32715,5.47252 0.67195,10.96147 1.04958,16.43191 0.63245,8.90979 1.32712,17.96348 2.06638,26.90823 0.46423,5.46428 0.94613,10.95529 1.46166,16.42377 0.98989,10.74149 2.1101,21.75229 3.42631,33.66148 a 26.763216,32.710266 0 0 0 26.7047,32.77111 h 447.82245 a 26.727034,32.666043 0 0 0 26.69717,-32.62956 l 0.0203,-0.22612 c 1.99488,-11.10743 3.85268,-22.42649 5.52289,-33.64503 0.89316,-5.91451 1.66437,-11.28627 2.35736,-16.42164 1.25651,-9.34973 2.37419,-18.39937 3.31948,-26.89588 0.64674,-5.7048 1.23208,-11.22881 1.73838,-16.42572 0.83344,-8.5048 1.58783,-17.29535 2.30521,-26.8753 0.39276,-5.20732 0.75271,-10.58526 1.10174,-16.44015 v -0.003 a 783.09975,957.1122 0 0 0 -16.3453,-275.44578 l -0.0203,-0.22613 a 26.727034,32.666043 0 0 0 -26.69717,-32.62955 z"
fill="#3f3d56"
id="path66"
style="stroke-width:1.7606" />
<path
d="m 590.05614,432.09565 c -97.03268,0 -199.85152,-10.77643 -334.41856,-32.33548 h -0.0143 a 28.319628,34.612527 0 0 1 -28.11589,-30.88616 26.010651,31.790472 0 0 1 -0.17747,-3.84026 v -98.94093 a 4.1084728,5.0214157 0 0 1 0.0236,-0.63319 28.481254,34.810068 0 0 1 28.39597,-34.10139 c 234.11775,-38.90579 376.33636,-38.9017 633.94697,0.008 h 0.0111 a 28.476237,34.803937 0 0 1 28.28492,34.20628 3.1402623,3.8380594 0 0 1 0.0169,0.52009 v 98.94098 a 26.075052,31.869185 0 0 1 -0.17836,3.85049 28.358183,34.659649 0 0 1 -28.24059,30.88457 C 778.29083,421.317 687.06542,432.09556 590.05621,432.09556 Z"
fill="#f29100"
id="path68"
style="stroke-width:1.7606" />
<path
d="m 605.62078,500.81449 h -58.87343 a 28.295517,34.583059 0 0 1 -28.26307,-34.54343 v -261.4181 a 28.295533,34.583078 0 0 1 28.26307,-34.54341 h 58.87343 a 28.295709,34.583292 0 0 1 28.2639,34.54341 v 261.4181 a 28.295693,34.583273 0 0 1 -28.2639,34.54343 z"
fill="#3f3d56"
id="path70"
style="stroke-width:1.7606" />
<path
d="m 732.41981,123.08369 a 74.643477,91.22999 0 0 0 -2.24497,-14.50424 76.93954,94.03626 0 0 0 -4.3638,-13.884909 66.862376,81.719851 0 0 0 -30.10479,-38.205413 c -16.42173,-9.880366 -35.2068,-10.688944 -52.86334,-5.928507 a 104.47741,127.69332 0 0 0 -40.83852,23.36814 106.20032,129.79908 0 0 0 -17.0323,19.633553 c -5.23145,7.671936 -14.96328,28.750046 -15.6647,30.701516 a 104.56307,127.79801 0 0 0 -23.23937,-40.630907 109.25959,133.53813 0 0 0 -40.02984,-29.567619 100.85823,123.26991 0 0 0 -24.53466,-6.095155 78.084202,95.435278 0 0 0 -26.31759,2.806413 66.299225,81.031562 0 0 0 -37.52639,33.527191 69.198522,84.575112 0 0 0 -11.72035,51.587167 70.996663,86.772818 0 0 0 4.8272,26.93673 84.028751,102.70076 0 0 0 5.27505,13.52479 86.082509,105.21089 0 0 0 7.01257,12.28049 79.434158,97.085207 0 0 0 39.02446,31.76077 c 16.36275,6.18074 33.71957,6.38272 50.54532,3.48097 17.2785,-2.97994 33.91015,-9.81612 50.1838,-17.30292 2.17098,-0.99872 4.3328,-2.02651 6.49787,-3.04419 14.46732,6.80222 29.05731,13.36275 44.20143,17.52662 a 133.098,162.67368 0 0 0 52.03146,2.55034 83.493167,102.04617 0 0 0 43.14764,-25.75955 77.479598,94.696325 0 0 0 22.35305,-47.4427 67.008331,81.898239 0 0 0 1.38077,-27.31858 z m -224.28958,80.45388 a 116.00956,141.78802 0 0 1 -28.14,0.20122 87.336722,106.7438 0 0 1 -19.56848,-6.36574 61.522623,75.193552 0 0 1 -32.97117,-40.00975 65.856868,80.490909 0 0 1 -3.98997,-17.72707 60.046346,73.389233 0 0 1 -0.005,-16.26771 62.646836,76.567578 0 0 1 3.74178,-16.59932 64.003561,78.22578 0 0 1 7.02466,-14.698374 60.362926,73.776159 0 0 1 9.0617,-11.124118 55.163889,67.421845 0 0 1 10.1505,-7.269513 62.034652,75.81936 0 0 1 13.27508,-4.340162 78.569972,96.028991 0 0 1 18.50816,0.176729 95.709784,116.97744 0 0 1 21.31726,7.181777 100.60614,122.96182 0 0 1 20.52712,14.627455 98.539279,120.43567 0 0 1 15.86244,19.329016 97.199022,118.7976 0 0 1 11.54994,24.30829 100.75511,123.14388 0 0 1 6.20235,28.01449 l 0.0127,0.14053 a 104.46997,127.68423 0 0 0 -0.67649,14.53545 c 0.004,1.87104 0.07,3.73974 0.147,5.60742 a 9.1517129,11.185313 0 0 0 -1.79452,2.95199 289.40644,353.7154 0 0 1 -36.81323,14.26896 q -6.65519,1.87778 -13.42335,3.05849 z m 207.05808,-63.90184 a 65.84599,80.477616 0 0 1 -3.99061,17.72925 61.182569,74.777936 0 0 1 -32.97054,40.00811 87.338442,106.7459 0 0 1 -19.56868,6.36574 116.03873,141.82367 0 0 1 -28.19117,-0.20865 c -16.61715,-2.9042 -32.64706,-9.31492 -48.32691,-16.46943 -0.64558,-0.29464 -1.28613,-0.60518 -1.93098,-0.90211 a 8.987348,10.984425 0 0 0 -1.71703,-2.91961 103.12795,126.04399 0 0 0 -0.51448,-20.31697 100.76234,123.15272 0 0 1 6.19585,-27.9618 97.199214,118.79783 0 0 1 11.54931,-24.30738 98.534183,120.42945 0 0 1 15.86306,-19.329924 100.60614,122.96182 0 0 1 20.52713,-14.627455 95.71851,116.9881 0 0 1 21.31746,-7.181777 78.572488,96.032065 0 0 1 18.50775,-0.176729 62.042727,75.829229 0 0 1 13.27533,4.340161 55.162327,67.419938 0 0 1 10.15123,7.270154 60.354263,73.765572 0 0 1 9.06129,11.124118 64.012256,78.236407 0 0 1 7.02435,14.697732 62.647697,76.56863 0 0 1 3.74176,16.59932 60.047382,73.390499 0 0 1 -0.005,16.26717 z"
fill="#3f3d56"
id="path72"
style="stroke-width:1.7606" />
<ellipse
cx="396.98572"
cy="499.76193"
fill="#f29100"
id="circle74"
rx="10.334358"
ry="12.630754"
style="stroke-width:1.7606" />
<ellipse
cx="471.04865"
cy="468.185"
fill="#f29100"
id="circle76"
rx="10.334358"
ry="12.630754"
style="stroke-width:1.7606" />
<ellipse
cx="438.32315"
cy="567.12598"
fill="#f29100"
id="circle78"
rx="10.334358"
ry="12.630754"
style="stroke-width:1.7606" />
<ellipse
cx="744.90936"
cy="499.76193"
fill="#f29100"
id="circle80"
rx="10.334358"
ry="12.630754"
style="stroke-width:1.7606" />
<ellipse
cx="742.47461"
cy="522.05872"
fill="#f29100"
id="circle82"
rx="10.334358"
ry="12.630754"
style="stroke-width:1.7606" />
<ellipse
cx="703.57196"
cy="567.12598"
fill="#f29100"
id="circle84"
rx="10.334358"
ry="12.630754"
style="stroke-width:1.7606" />
<ellipse
cx="753.5213"
cy="720.80023"
fill="#f29100"
id="circle86"
rx="10.334358"
ry="12.630754"
style="stroke-width:1.7606" />
<ellipse
cx="779.35724"
cy="630.27985"
fill="#f29100"
id="circle88"
rx="10.334358"
ry="12.630754"
style="stroke-width:1.7606" />
<ellipse
cx="698.40479"
cy="670.27716"
fill="#f29100"
id="circle90"
rx="10.334358"
ry="12.630754"
style="stroke-width:1.7606" />
<ellipse
cx="457.26947"
cy="720.80023"
fill="#f29100"
id="circle92"
rx="10.334358"
ry="12.630754"
style="stroke-width:1.7606" />
<ellipse
cx="483.10544"
cy="630.27985"
fill="#f29100"
id="circle94"
rx="10.334358"
ry="12.630754"
style="stroke-width:1.7606" />
<ellipse
cx="402.15286"
cy="670.27716"
fill="#f29100"
id="circle96"
rx="10.334358"
ry="12.630754"
style="stroke-width:1.7606" />
<ellipse
cx="332.57251"
cy="71.152756"
fill="#fd6584"
id="circle101"
rx="13.77916"
ry="16.841024"
style="stroke-width:1.7606" />
<ellipse
cx="159.05939"
cy="327.4451"
fill="#fd6584"
id="circle103"
rx="13.77916"
ry="16.841024"
style="stroke-width:1.7606" />
<ellipse
cx="1041.161"
cy="473.08023"
fill="#fd6584"
id="circle105"
rx="13.77916"
ry="16.841024"
style="stroke-width:1.7606" />
<ellipse
cx="932.65021"
cy="666.75189"
fill="#e6e6e6"
id="circle109"
rx="13.77916"
ry="16.841024"
style="stroke-width:1.7606" />
<ellipse
cx="797.74304"
cy="137.02742"
fill="#e6e6e6"
id="circle111"
rx="13.77916"
ry="16.841024"
style="stroke-width:1.7606" />
<path
d="m 356.0393,319.21837 c -1.19108,2.30279 -4.0791,1.96815 -5.70082,0.52851 -2.25128,-1.99857 -1.52245,-5.8481 0.0279,-8.12262 4.92716,-7.22921 13.07613,0.40314 14.17532,7.58252 a 14.777692,18.06144 0 0 1 -6.95339,17.9847 c -5.62163,4.07142 -12.92366,2.02962 -17.75698,-2.84337 -10.08231,-10.16513 -7.33719,-30.5177 3.86179,-37.8718 7.14707,-4.69328 16.18262,-2.63338 23.22322,1.29808 7.92542,4.42555 14.74045,11.20881 22.06962,16.86297 a 123.0537,150.39744 0 0 0 53.15227,22.18268 c 3.30508,0.41194 3.28156,-5.9064 0,-6.31539 a 118.20176,144.46735 0 0 1 -30.54118,-8.988 134.21843,164.04309 0 0 1 -27.44338,-18.40996 c -8.62964,-7.22953 -17.64523,-14.25242 -28.32489,-15.44705 a 24.57215,30.032323 0 0 0 -22.65164,12.04644 25.093384,30.669381 0 0 0 -3.77124,26.90323 23.239074,28.403026 0 0 0 17.71492,18.64119 18.998088,23.219649 0 0 0 20.02862,-11.30979 c 3.93086,-8.30901 3.80298,-19.47025 -2.13416,-26.35912 a 13.706603,16.752346 0 0 0 -13.32788,-4.43035 11.725273,14.330744 0 0 0 -7.92845,12.33299 c -0.57287,10.78541 11.95381,16.17909 16.74199,6.92177 1.78204,-3.44542 -2.68751,-6.61778 -4.46172,-3.18749 z"
fill="#3f3d56"
id="path113"
style="stroke-width:1.7606" />
<path
d="m 797.91245,319.21837 c 1.19107,2.30279 4.07912,1.96815 5.70082,0.52851 2.2513,-1.99857 1.52246,-5.8481 -0.0279,-8.12262 -4.92717,-7.22921 -13.07613,0.40314 -14.17531,7.58252 a 14.777676,18.06142 0 0 0 6.95337,17.9847 c 5.62164,4.07142 12.92368,2.02962 17.75699,-2.84337 10.0823,-10.16513 7.33718,-30.5177 -3.86179,-37.8718 -7.14709,-4.69328 -16.18264,-2.63338 -23.22321,1.29808 -7.92543,4.42555 -14.74047,11.20881 -22.06962,16.86297 a 123.0537,150.39744 0 0 1 -53.15229,22.18268 c -3.30506,0.41194 -3.28154,-5.9064 0,-6.31539 a 118.20203,144.46768 0 0 0 30.54121,-8.988 134.21881,164.04356 0 0 0 27.44337,-18.40996 c 8.62963,-7.22953 17.64524,-14.25242 28.32487,-15.44705 a 24.572118,30.032284 0 0 1 22.65166,12.04644 25.093384,30.669381 0 0 1 3.77125,26.90323 23.239107,28.403064 0 0 1 -17.71493,18.64119 18.998104,23.219668 0 0 1 -20.02864,-11.30979 c -3.93086,-8.30901 -3.80296,-19.47025 2.13416,-26.35912 a 13.706619,16.752365 0 0 1 13.32789,-4.43035 11.725289,14.330764 0 0 1 7.92845,12.33299 c 0.57287,10.78541 -11.95381,16.17909 -16.74197,6.92177 -1.78205,-3.44542 2.68748,-6.61778 4.4617,-3.18749 z"
fill="#3f3d56"
id="path115"
style="stroke-width:1.7606" />
<ellipse
cx="214.2404"
cy="597.08728"
fill="#e6e6e6"
id="circle2791"
rx="13.77916"
ry="16.841024"
style="stroke-width:1.7606" />
</svg>

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "20221027_BwM_Bday_scaled.svg",
"filename" : "web_dark.svg",
"idiom" : "universal"
}
],

View File

@@ -0,0 +1,29 @@
<svg width="387" height="254" viewBox="0 0 387 254" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_3878_1251)">
<path d="M383.487 253.614H0.412795C0.303315 253.614 0.198319 253.571 0.120905 253.493C0.0434905 253.416 0 253.311 0 253.201C0 253.092 0.0434905 252.987 0.120905 252.909C0.198319 252.832 0.303315 252.788 0.412795 252.788H383.487C383.596 252.788 383.701 252.832 383.779 252.909C383.856 252.987 383.9 253.092 383.9 253.201C383.9 253.311 383.856 253.416 383.779 253.493C383.701 253.571 383.596 253.614 383.487 253.614Z" fill="#C1C6CD"/>
<path d="M141.672 62.1213C135.55 53.9289 124.346 51.9517 118.778 56.1121C113.21 60.2726 111.931 71.5779 118.053 79.7703C123.72 87.3534 133.986 89.4215 139.64 86.5805C139.622 86.6692 139.621 86.7605 139.637 86.8497L139.956 88.4258C139.98 88.5459 140.035 88.6578 140.114 88.7509C140.194 88.844 140.296 88.9152 140.411 88.9577C140.526 89.0002 140.65 89.0126 140.771 88.9937C140.893 88.9749 141.007 88.9253 141.103 88.8499L143.803 86.7408C143.9 86.6654 143.975 86.5665 144.023 86.4535C144.071 86.3406 144.089 86.2173 144.075 86.0955C144.062 85.9736 144.017 85.8572 143.946 85.7573C143.875 85.6574 143.78 85.5773 143.669 85.5247L142.217 84.834C142.166 84.8111 142.112 84.7942 142.057 84.7838C146.416 80.1759 147.35 69.7208 141.672 62.1213Z" fill="#C1C6CD"/>
<path d="M128.281 59.0282C131.276 59.5039 133.973 61.1111 135.817 63.5181C137.661 65.9252 138.511 68.9483 138.19 71.9634C138.124 72.6541 139.204 72.6496 139.269 71.9634C139.578 68.7136 138.646 65.4672 136.662 62.8753C134.677 60.2834 131.786 58.5376 128.568 57.9881C127.889 57.8726 127.597 58.9119 128.281 59.0282Z" fill="white"/>
<path d="M311.466 138.378C316.818 129.663 314.517 118.521 308.595 114.883C302.672 111.246 291.694 114.233 286.341 122.948C281.387 131.014 283.257 141.319 287.986 145.524C287.897 145.54 287.811 145.572 287.735 145.62L286.388 146.499C286.285 146.566 286.201 146.658 286.144 146.766C286.087 146.875 286.059 146.996 286.062 147.119C286.065 147.241 286.099 147.361 286.161 147.466C286.223 147.572 286.312 147.66 286.417 147.722L289.374 149.452C289.48 149.513 289.6 149.547 289.723 149.55C289.845 149.552 289.966 149.524 290.075 149.466C290.183 149.409 290.275 149.324 290.341 149.222C290.408 149.119 290.447 149 290.455 148.878L290.561 147.273C290.563 147.218 290.559 147.161 290.548 147.106C296.44 149.455 306.501 146.462 311.466 138.378Z" fill="#C1C6CD"/>
<path d="M307.912 125.348C308.576 128.306 308.079 131.407 306.523 134.009C304.967 136.612 302.472 138.518 299.551 139.333C298.885 139.527 299.288 140.529 299.95 140.336C303.084 139.422 305.757 137.358 307.432 134.556C309.108 131.755 309.662 128.423 308.985 125.23C308.841 124.556 307.767 124.669 307.912 125.348Z" fill="white"/>
<path d="M266.278 72.0433C268.068 61.974 261.847 52.448 255.003 51.232C248.16 50.016 239.038 56.8154 237.249 66.8847C235.592 76.205 241.106 85.1089 247.046 87.2908C246.969 87.3381 246.901 87.3998 246.847 87.4725L245.915 88.7831C245.844 88.883 245.8 88.9994 245.787 89.1212C245.773 89.2431 245.791 89.3663 245.839 89.4793C245.887 89.5922 245.962 89.6911 246.059 89.7665C246.155 89.842 246.27 89.8915 246.391 89.9103L249.776 90.4372C249.897 90.4561 250.021 90.4436 250.136 90.4011C250.251 90.3586 250.353 90.2874 250.433 90.1943C250.513 90.1012 250.567 89.9892 250.591 89.8691C250.616 89.7489 250.609 89.6246 250.572 89.5078L250.082 87.976C250.064 87.9231 250.04 87.8724 250.009 87.8251C256.352 87.8531 264.618 81.3839 266.278 72.0433Z" fill="#DEBB6B"/>
<path d="M266.278 72.0433C268.068 61.974 261.847 52.448 255.003 51.232C248.16 50.016 239.038 56.8154 237.249 66.8847C235.593 76.205 241.106 85.1089 247.046 87.2908C246.969 87.3381 246.901 87.3998 246.847 87.4725L245.915 88.7831C245.844 88.883 245.8 88.9994 245.787 89.1212C245.773 89.2431 245.791 89.3663 245.839 89.4793C245.887 89.5922 245.962 89.6911 246.059 89.7665C246.156 89.842 246.27 89.8915 246.391 89.9103L249.776 90.4372C249.897 90.4561 250.021 90.4436 250.136 90.4011C250.251 90.3586 250.353 90.2874 250.433 90.1943C250.513 90.1012 250.567 89.9892 250.592 89.8691C250.616 89.7489 250.609 89.6246 250.572 89.5078L250.082 87.976C250.064 87.9231 250.04 87.8724 250.01 87.8251C256.352 87.8531 264.619 81.3839 266.278 72.0433Z" fill="#DEBB6B"/>
<path d="M259.376 60.1592C261.077 62.6691 261.75 65.7364 261.255 68.7278C260.761 71.7193 259.136 74.4067 256.717 76.2352C256.169 76.6596 256.91 77.4437 257.455 77.0221C260.037 75.0245 261.768 72.1246 262.302 68.904C262.835 65.6835 262.131 62.3803 260.331 59.6569C259.951 59.0827 258.993 59.5807 259.376 60.1592Z" fill="white"/>
<path d="M91.8384 118.755C87.131 109.676 90.2323 98.7291 96.4026 95.5299C102.573 92.3307 113.306 96.1044 118.014 105.184C122.371 113.588 119.76 123.729 114.74 127.582C114.827 127.604 114.91 127.643 114.983 127.696L116.263 128.67C116.361 128.744 116.438 128.842 116.487 128.954C116.536 129.066 116.555 129.189 116.544 129.311C116.532 129.433 116.489 129.55 116.419 129.651C116.349 129.752 116.255 129.833 116.145 129.887L113.071 131.398C112.961 131.453 112.839 131.478 112.716 131.471C112.594 131.465 112.475 131.427 112.371 131.362C112.267 131.297 112.182 131.207 112.123 131.099C112.064 130.992 112.033 130.871 112.034 130.748L112.045 129.14C112.047 129.084 112.055 129.029 112.07 128.975C106.023 130.89 96.2051 127.177 91.8384 118.755Z" fill="#DEBB6B"/>
<path d="M94.8873 105.354C94.011 108.257 94.2825 111.386 95.6459 114.094C97.0093 116.802 99.3604 118.884 102.214 119.909C102.864 120.15 102.39 121.12 101.744 120.88C98.6844 119.742 96.1679 117.489 94.6994 114.574C93.231 111.658 92.919 108.295 93.8261 105.159C94.018 104.498 95.0807 104.688 94.8873 105.354Z" fill="white"/>
<path d="M326.919 64.6996C324.928 66.4962 322.54 67.7954 319.95 68.4906C317.359 69.1858 314.641 69.2573 312.018 68.6992C311.278 68.5377 310.406 68.4195 310.035 67.6679C309.886 67.3867 309.837 67.0632 309.895 66.7503C309.954 66.4374 310.117 66.1536 310.357 65.9453C311.002 65.4284 311.946 65.6106 312.566 66.0756C313.27 66.6031 313.33 67.5217 313.031 68.2915C312.3 70.1727 310.116 70.6571 308.361 71.0561C304.361 71.9653 300.273 73.2694 297.174 76.0783C294.307 78.6772 292.495 82.6985 293.389 86.5763C293.546 87.2547 294.586 86.9656 294.43 86.2905C293.543 82.4447 295.7 78.5298 298.685 76.2097C300.496 74.8594 302.526 73.8292 304.685 73.1638C305.787 72.8009 306.908 72.5006 308.037 72.236C309.152 72.0241 310.247 71.7137 311.307 71.3083C313.013 70.5721 314.565 68.9057 314.241 66.9103C313.939 65.0488 311.527 63.9031 309.913 64.9454C309.567 65.1828 309.286 65.5022 309.095 65.8748C308.904 66.2475 308.808 66.6619 308.816 67.0808C308.824 67.4997 308.936 67.9101 309.141 68.2751C309.347 68.6401 309.64 68.9483 309.994 69.1722C310.764 69.6628 311.859 69.7926 312.745 69.9304C315.413 70.3495 318.14 70.1648 320.727 69.39C323.313 68.6152 325.693 67.27 327.691 65.4534C328.201 64.9811 327.428 64.2285 326.919 64.6996Z" fill="#C1C6CD"/>
<path d="M154.844 110.73C154.892 108.048 155.574 105.416 156.836 103.05C158.097 100.683 159.901 98.6488 162.101 97.1141C162.724 96.6837 163.406 96.1278 164.209 96.37C164.516 96.4532 164.786 96.6381 164.974 96.8946C165.163 97.1511 165.259 97.4639 165.247 97.782C165.184 98.6059 164.406 99.1709 163.643 99.3065C162.776 99.4603 162.065 98.8765 161.707 98.1322C160.832 96.3135 161.97 94.3873 162.878 92.8327C164.945 89.2905 166.785 85.4139 166.85 81.2318C166.91 77.3623 165.211 73.2926 161.768 71.2972C161.165 70.9481 160.666 71.9049 161.266 72.2523C164.68 74.2312 166.067 78.4806 165.722 82.2454C165.471 84.491 164.837 86.677 163.848 88.7087C163.361 89.7612 162.815 90.7853 162.237 91.7906C161.63 92.7499 161.109 93.761 160.681 94.8123C160.053 96.5617 160.211 98.8329 161.889 99.9593C163.455 101.01 165.939 100.031 166.281 98.1401C166.343 97.7258 166.302 97.3025 166.16 96.9081C166.019 96.5137 165.782 96.1606 165.47 95.8804C165.159 95.6001 164.783 95.4016 164.376 95.3025C163.968 95.2035 163.543 95.207 163.138 95.3127C162.254 95.5398 161.411 96.2512 160.705 96.8043C158.577 98.4663 156.849 100.585 155.648 103.003C154.447 105.421 153.804 108.078 153.766 110.778C153.763 111.473 154.841 111.423 154.844 110.73Z" fill="#C1C6CD"/>
<path d="M106.185 145.781C104.802 146.668 103.228 147.215 101.593 147.376C99.9575 147.538 98.3072 147.31 96.7773 146.71C96.3458 146.539 95.8307 146.38 95.6814 145.889C95.6193 145.704 95.6218 145.503 95.6885 145.32C95.7551 145.137 95.8819 144.982 96.0483 144.88C96.4896 144.632 97.042 144.836 97.3707 145.179C97.7435 145.568 97.6879 146.13 97.4302 146.565C96.8004 147.629 95.4317 147.704 94.3307 147.77C91.8221 147.92 89.2207 148.3 87.0667 149.689C85.0738 150.973 83.5771 153.223 83.7305 155.657C83.7573 156.082 84.4146 156.011 84.3879 155.588C84.2358 153.174 85.9307 151.023 87.9667 149.919C89.1968 149.283 90.5266 148.863 91.8985 148.677C92.6006 148.567 93.3085 148.498 94.0174 148.451C94.7127 148.434 95.4051 148.356 96.0865 148.216C97.1918 147.942 98.2959 147.089 98.2995 145.851C98.3028 144.695 96.9594 143.762 95.8793 144.231C95.6468 144.34 95.4451 144.505 95.2922 144.711C95.1392 144.917 95.0398 145.158 95.0029 145.412C94.9659 145.666 94.9926 145.925 95.0805 146.167C95.1684 146.408 95.3148 146.623 95.5065 146.794C95.9227 147.168 96.572 147.355 97.0939 147.527C98.6645 148.047 100.332 148.208 101.973 147.998C103.614 147.788 105.187 147.212 106.576 146.314C106.931 146.079 106.539 145.547 106.185 145.781Z" fill="#C1C6CD"/>
<path d="M243.835 158.611V247.974C243.833 249.152 243.364 250.28 242.531 251.113C241.699 251.945 240.57 252.414 239.393 252.416H143.236C142.059 252.414 140.931 251.945 140.098 251.113C139.266 250.28 138.797 249.152 138.794 247.974V158.611C138.795 157.433 139.263 156.304 140.096 155.471C140.929 154.638 142.058 154.17 143.236 154.169H239.393C240.571 154.17 241.7 154.638 242.533 155.471C243.366 156.304 243.834 157.433 243.835 158.611Z" fill="#DEBB6B"/>
<path d="M198.108 252.866H184.521C183.358 252.88 182.238 252.432 181.405 251.62C180.572 250.809 180.095 249.701 180.079 248.539V155.84C180.095 154.677 180.572 153.569 181.405 152.758C182.238 151.947 183.358 151.499 184.521 151.513H198.108C199.271 151.499 200.391 151.947 201.224 152.758C202.056 153.569 202.533 154.677 202.55 155.84V248.539C202.533 249.701 202.056 250.809 201.224 251.62C200.391 252.432 199.271 252.88 198.108 252.866Z" fill="#6F7882"/>
<path d="M188.517 126.197C195.5 132.242 193.295 146.23 193.295 146.23C193.295 146.23 179.768 150.418 172.785 144.374C165.801 138.329 168.007 124.341 168.007 124.341C168.007 124.341 181.534 120.153 188.517 126.197Z" fill="#6F7882"/>
<path d="M211.712 143.215C205.689 150.217 191.694 148.056 191.694 148.056C191.694 148.056 187.464 134.542 193.486 127.54C199.509 120.538 213.504 122.699 213.504 122.699C213.504 122.699 217.734 136.213 211.712 143.215Z" fill="#6F7882"/>
<path opacity="0.2" d="M243.835 158.611V173.657L138.794 173.212V158.611C138.795 157.433 139.263 156.304 140.096 155.471C140.929 154.638 142.058 154.17 143.236 154.169H239.393C240.571 154.17 241.7 154.638 242.533 155.471C243.366 156.304 243.834 157.433 243.835 158.611Z" fill="black"/>
<path d="M255.146 167.758C254.73 168.305 254.193 168.747 253.577 169.051C252.961 169.355 252.283 169.511 251.597 169.508L134.537 169.017C133.954 169.015 133.377 168.897 132.839 168.672C132.301 168.446 131.812 168.117 131.402 167.703C130.991 167.289 130.666 166.798 130.445 166.258C130.224 165.718 130.111 165.14 130.114 164.556L130.169 151.492C130.173 150.314 130.646 149.186 131.482 148.357C132.319 147.527 133.45 147.064 134.628 147.069H134.629L251.689 147.559C252.272 147.562 252.849 147.679 253.387 147.905C253.925 148.13 254.413 148.459 254.824 148.874C255.235 149.288 255.56 149.779 255.781 150.319C256.002 150.859 256.114 151.437 256.112 152.02L256.057 165.085C256.054 166.052 255.734 166.991 255.146 167.758Z" fill="#DEBB6B"/>
<path d="M180.36 146.217L180.266 169.734L202.737 169.824L202.831 146.307L180.36 146.217Z" fill="#6F7882"/>
</g>
<defs>
<clipPath id="clip0_3878_1251">
<rect width="387" height="253.786" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -119,8 +119,8 @@
//
/* BWI: Happy Birthday Campaign*/
"HAPPY_BIRTHDAY" = "🎈 HAPPY BIRTHDAY 2.0 🎈";
"HAPPY_BIRTHDAY_BODY" = "Schon wieder ist ein Jahr vorbei, der BwMessenger wird 2.\nDanke für Deine Treue - jetzt und in Zukunft.\nGratuliere uns zum 2.0 mit Deiner Sterne-Bewertung im App Store.";
"HAPPY_BIRTHDAY" = "🥳 HAPPY BIRTHDAY 🥳";
"HAPPY_BIRTHDAY_BODY" = "Danke für Deine Treue - jetzt und in Zukunft. Gratuliere dem BwMessenger zum 4. Geburtstag und schenke uns deine Sternebewertung im App Store.";
"HAPPY_BIRTHDAY_BUTTON_GIVE_STARS" = "Sterne schenken";
"HAPPY_BIRTHDAY_BUTTON_DISMISS" = "X";

View File

@@ -186,7 +186,7 @@
"KEY_VERIFICATION_REQUEST_FROM_USER" = "%@ wants to verify";
/* BWI: Happy Birthday Campaign*/
"HAPPY_BIRTHDAY" = "🎈 HAPPY BIRTHDAY 2.0 🎈";
"HAPPY_BIRTHDAY_BODY" = "Another year has passed, BwMessenger turns 2.\nThank you for your loyalty - now and in the future.\nMake us present on 2.0 with your star rating in the App Store.";
"HAPPY_BIRTHDAY_BUTTON_GIVE_STARS" = "Donate Stars";
"HAPPY_BIRTHDAY" = "🥳 HAPPY BIRTHDAY 🥳";
"HAPPY_BIRTHDAY_BODY" = "Thank you for your loyalty - now and in the future. Congratulate BwMessenger on its 4th anniversary and give us your star rating on the App Store.";
"HAPPY_BIRTHDAY_BUTTON_GIVE_STARS" = "Give Stars";
"HAPPY_BIRTHDAY_BUTTON_DISMISS" = "X";

View File

@@ -286,7 +286,7 @@ class RiotSharedSettings: NSObject {
guard let birthdayCampaignDict = notificationsDict["should_show_ios_birthday_campaign"] as? [String : Any] else {
return true
}
return (birthdayCampaignDict["2022"] as? Bool) ?? true
return (birthdayCampaignDict[campaign] as? Bool) ?? true
}
@discardableResult

View File

@@ -720,6 +720,8 @@ class AllChatsCoordinator: NSObject, SplitViewMasterCoordinatorProtocol {
self.allChatsViewController.bwiCheckForFederationAnnouncementPromt()
// bwi: 5660 introduce federation
self.allChatsViewController.presentFederationIntroductionSheet()
// bwi: 6570 Show birthday
self.allChatsViewController.bwiCheckForBirthdayScreen()
}
}

View File

@@ -356,6 +356,7 @@ class AllChatsViewController: HomeViewController {
let viewController = UIHostingController(rootView: IntroduceFederationView().environmentObject(BWIThemeService.shared))
viewController.isModalInPresentation = true
present(viewController, animated: true) {
notificationService.setShowFederationIntroductionFlag(false)
}
@@ -517,6 +518,8 @@ class AllChatsViewController: HomeViewController {
self.bwiCheckForFederationAnnouncementPromt()
// bwi: 5660 introduce federation
self.presentFederationIntroductionSheet()
// bwi: 6570 Show birthday
self.bwiCheckForBirthdayScreen()
}))
alert.addAction(UIAlertAction(title: BWIL10n.bwiAnalyticsAlertOkButton,
@@ -528,6 +531,8 @@ class AllChatsViewController: HomeViewController {
self.bwiCheckForFederationAnnouncementPromt()
// bwi: 5660 introduce federation
self.presentFederationIntroductionSheet()
// bwi: 6570 Show birthday
self.bwiCheckForBirthdayScreen()
}))
self.present(alert, animated: true)
@@ -554,11 +559,39 @@ class AllChatsViewController: HomeViewController {
let viewController = UIHostingController(rootView: FederationAnnouncementView().environmentObject(BWIThemeService.shared))
viewController.isModalInPresentation = true
present(viewController, animated: true) {
notificationService.setShowFederationAnnouncementFlag(false)
}
}
// bwi #6570: check if birthday screen was shown for this session
func bwiCheckForBirthdayScreen() {
guard let session = self.mainSession else {
return
}
guard BWIBuildSettings.shared.bwiShowHappyBirthdayCampaign else {
return
}
let sharedSettings = RiotSharedSettings(session: session)
let campaign = BWIBuildSettings.shared.bwiHappyBirthdayCampaignIdentifier
if sharedSettings.happyBirthdayCampaign(for: campaign) {
let viewController = HappyBirthdayViewController.makeViewController()
present(viewController, animated: true)
sharedSettings.setHappyBirthdayCampaign(campaign, enabled: false) {
} failure: { error in
if let error = error {
MXLog.debug("[HappyBirthdayCampaign] could not set flag in account data. Error: \(error)")
}
}
}
}
// MARK: - Actions
@objc private func showSpaceSelectorAction(sender: AnyObject) {
@@ -1100,10 +1133,18 @@ extension AllChatsViewController {
}
}
//extension AllChatsViewController: UIPopoverPresentationControllerDelegate {
// func presentationControllerDidDismiss(_ presentationController: UIPresentationController) {
// // bwi: show matomo consent alert again
// MXLog.debug("Dismissed: \(presentationController)")
// }
//}
// MARK: - UIAdaptivePresentationControllerDelegate
extension AllChatsViewController: UIAdaptivePresentationControllerDelegate {
func presentationControllerDidDismiss(_ presentationController: UIPresentationController) {
// bwi: show matomo consent alert again
if showMatomoConsentAlertOnCloseModal {
showMatomoConsentAlertOnCloseModal = false