Skip to content
This repository was archived by the owner on Feb 4, 2020. It is now read-only.

Commit 6e877f5

Browse files
committed
Work on the logo generation
excess images are not created anymore play store logo is automatically generated as well
1 parent 41578c7 commit 6e877f5

13 files changed

Lines changed: 996 additions & 110 deletions

File tree

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,4 @@ dictionary/words_merged.xml
1010
dictionary/words_from_aosp.xml
1111
dictionary/words_from_texts.xml
1212

13-
# Those files are automatically generated in excess and therefore shouldn't be added to the repo.
14-
/src/main/res/mipmap-*/ic_broad_launcher.png
15-
/src/main/res/mipmap-*/ic_launcher_broad.png
16-
/src/main/res/mipmap-*/launcher*.png
17-
1813
*.apk

build.gradle

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ task checkstyle(type: Checkstyle) {
147147
classpath = files()
148148
}
149149

150-
// task to convert SVGs to PNGs (app icon)
150+
// create app icon in all necessary sizes, automatically adding flag
151151
task svgToDrawablePng(type: SvgDrawableTask) {
152152
// specify where to pick SVG from
153-
from = files('src/main/svg-png')
153+
from = files('src/main/svg-png/dummy')
154154
// specify the android res folder
155155
to = file('src/main/res')
156156
// create qualified directories if missing
@@ -164,6 +164,28 @@ task svgToDrawablePng(type: SvgDrawableTask) {
164164
outputType = 'mipmap'
165165

166166
// composition of SVGs
167-
svgMaskFiles = files('src/main/svg-png/mask')
168-
svgMaskResourceFiles = files('src/main/svg-png/mask/svg')
167+
svgMaskFiles = files('src/main/svg-png/mask-launcher')
168+
svgMaskResourceFiles = files('src/main/svg-png/flag')
169+
}
170+
171+
// create app icon in all necessary sizes, automatically adding flag
172+
task svgToDrawablePngPlay(type: SvgDrawableTask) {
173+
// specify where to pick SVG from
174+
from = files('src/main/svg-png/dummy')
175+
// specify the android res folder
176+
to = file('src/main/play/en-US/listing/icon')
177+
// create qualified directories if missing
178+
createMissingDirectories = true
179+
// override files only if necessary
180+
overwriteMode = 'ifModified'
181+
182+
outputFormat = 'PNG'
183+
outputType = 'raw'
184+
185+
// composition of SVGs
186+
svgMaskFiles = files('src/main/svg-png/mask-play')
187+
svgMaskResourceFiles = files('src/main/svg-png/flag')
188+
doLast {
189+
file('src/main/play/en-US/listing/icon/logo_launcher.png').renameTo(file('src/main/play/en-US/listing/icon/ask_logo.png'))
190+
}
169191
}
-58.1 KB
Binary file not shown.
-3.35 KB
Binary file not shown.
-5.29 KB
Binary file not shown.

src/main/res/drawable/app_icon.png

-2.05 KB
Binary file not shown.

src/main/svg-png/dummy/dummy

Whitespace-only changes.
File renamed without changes.
File renamed without changes.

src/main/svg-png/mask/ic-xxxhdpi.svgmask renamed to src/main/svg-png/mask-launcher/ic-xxxhdpi.svgmask

Lines changed: 24 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
borderopacity="1.0"
2525
inkscape:pageopacity="0.0"
2626
inkscape:pageshadow="2"
27-
inkscape:zoom="3.8059406"
28-
inkscape:cx="131.01617"
29-
inkscape:cy="99.191858"
27+
inkscape:zoom="1.8480769"
28+
inkscape:cx="109.4112"
29+
inkscape:cy="100.48535"
3030
inkscape:document-units="px"
31-
inkscape:current-layer="layer2"
31+
inkscape:current-layer="layer1"
3232
showgrid="false"
33-
inkscape:window-width="1920"
34-
inkscape:window-height="1173"
35-
inkscape:window-x="1366"
33+
inkscape:window-width="1366"
34+
inkscape:window-height="717"
35+
inkscape:window-x="0"
3636
inkscape:window-y="0"
3737
inkscape:window-maximized="1"
3838
fit-margin-top="0"
@@ -56,18 +56,6 @@
5656
offset="1"
5757
style="stop-color:#000000;stop-opacity:0.49504951" />
5858
</linearGradient>
59-
<linearGradient
60-
inkscape:collect="always"
61-
id="linearGradient6740">
62-
<stop
63-
style="stop-color:#000000;stop-opacity:1;"
64-
offset="0"
65-
id="stop6742" />
66-
<stop
67-
style="stop-color:#000000;stop-opacity:0;"
68-
offset="1"
69-
id="stop6744" />
70-
</linearGradient>
7159
<filter
7260
id="filter4191"
7361
inkscape:label="Drop Shadow"
@@ -229,15 +217,6 @@
229217
in2="offset"
230218
in="SourceGraphic" />
231219
</filter>
232-
<linearGradient
233-
inkscape:collect="always"
234-
xlink:href="#linearGradient6740"
235-
id="linearGradient6746"
236-
x1="762.91467"
237-
y1="1399.6613"
238-
x2="1285.9166"
239-
y2="1399.6613"
240-
gradientUnits="userSpaceOnUse" />
241220
<linearGradient
242221
inkscape:collect="always"
243222
xlink:href="#linearGradient6772"
@@ -283,11 +262,11 @@
283262
<clipPath
284263
clipPathUnits="userSpaceOnUse"
285264
id="clipPath3801">
286-
<path
287-
inkscape:connector-curvature="0"
288-
id="path3801"
289-
d="m 41.029038,317.83538 0,59.79157 97.518392,0 c 4.85852,0 8.77032,-3.77872 8.77032,-8.47305 l 0,-51.31852 -106.288712,0 z"
290-
style="display:inline;opacity:0;fill:#00ff00;fill-opacity:0;stroke:none;stroke-width:0.30000001;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
265+
<path
266+
inkscape:connector-curvature="0"
267+
id="path3801"
268+
d="m 41.029038,317.83538 0,59.79157 97.518392,0 c 4.85852,0 8.77032,-3.77872 8.77032,-8.47305 l 0,-51.31852 -106.288712,0 z"
269+
style="display:inline;opacity:0;fill:#00ff00;fill-opacity:0;stroke:none;stroke-width:0.30000001;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
291270
</clipPath>
292271
</defs>
293272
<metadata
@@ -306,22 +285,10 @@
306285
transform="translate(17.942502,-1264.9998)"
307286
id="layer1"
308287
inkscape:groupmode="layer"
309-
inkscape:label="Ebene 1" />
310-
<g
311-
inkscape:groupmode="layer"
312-
id="layer2"
313-
inkscape:label="deac"
314-
style="display:inline"
315-
transform="translate(28.634566,-223.66242)">
316-
<path
317-
transform="translate(-10.692064,-1041.3373)"
318-
style="opacity:1;fill:url(#linearGradient6746);fill-opacity:1;stroke:none;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
319-
d="m 763.31313,1236.4348 0,33.0664 16.81445,16.8144 -16.81445,0 0,33.0665 16.8125,16.8125 -17.21094,0 0,33.0664 193.62695,193.6269 329.37496,0 0,-136.5976 -189.8555,-189.8555 -84.0097,0 0,16.6797 -16.67971,-16.6797 -33.06638,0 0,16.6816 -16.68164,-16.6816 -33.0664,0 0,16.6816 -16.68164,-16.6816 -33.06641,0 0,16.6816 -16.68164,-16.6816 -33.06641,0 0,16.6816 -16.68164,-16.6816 -33.0664,0 z"
320-
id="rect6689"
321-
inkscape:connector-curvature="0" />
288+
inkscape:label="Ebene 1">
322289
<rect
323-
transform="matrix(0.35477618,0,0,0.35477618,-22.268989,-127.9406)"
324-
style="opacity:1;fill:#d4d4d4;fill-opacity:1;stroke:none;stroke-width:0.30000001;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;filter:url(#filter5578)"
290+
transform="matrix(0.35477618,0,0,0.35477618,-11.576925,913.39678)"
291+
style="display:inline;opacity:1;fill:#d4d4d4;fill-opacity:1;stroke:none;stroke-width:0.30000001;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;filter:url(#filter5578)"
325292
id="rect4302"
326293
width="450.98856"
327294
height="320.36835"
@@ -330,13 +297,14 @@
330297
rx="24.71953"
331298
ry="23.884085" />
332299
<path
333-
style="opacity:0.25;fill:url(#linearGradient6767);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.30000001;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
300+
transform="translate(10.692064,1041.3374)"
301+
style="display:inline;opacity:0.25;fill:url(#linearGradient6767);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.30000001;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
334302
d="m 8.4108236,309.97135 0,11.73117 5.9653704,5.96535 -5.9653704,0 0,11.73117 5.9646744,5.96467 -6.1060279,0 0,11.73121 20.5070319,20.50702 109.819158,0 c 4.85852,0 8.76964,-3.77872 8.76964,-8.47305 l 0,-38.25417 -20.90341,-20.90337 -29.804639,0 0,5.91756 -5.917563,-5.91756 -11.731175,0 0,5.91823 -5.918249,-5.91823 -11.731174,0 0,5.91823 -5.918249,-5.91823 -11.731171,0 0,5.91823 -5.918248,-5.91823 -11.731175,0 0,5.91823 -5.918248,-5.91823 -11.7311754,0 z"
335303
id="rect6738"
336304
inkscape:connector-curvature="0" />
337305
<g
338-
style="filter:url(#filter6018)"
339-
transform="matrix(0.35477618,0,0,0.35477618,-9.1621427,-115.41963)"
306+
style="display:inline;filter:url(#filter6018)"
307+
transform="matrix(0.35477618,0,0,0.35477618,1.5299212,925.91775)"
340308
id="g5614">
341309
<g
342310
transform="translate(0,-0.66338656)"
@@ -478,15 +446,16 @@
478446
y="1348.6816" />
479447
</g>
480448
<path
481-
transform="matrix(0.35477618,0,0,0.35477618,-22.268989,-127.9406)"
449+
transform="matrix(0.35477618,0,0,0.35477618,-11.576925,913.39678)"
482450
d="m 103.65399,1161.331 c 0.59503,-6.2024 2.66249,-10.6398 6.20239,-13.2922 3.54999,-2.6727 8.44129,-4.0039 14.65377,-4.0039 2.81375,0 5.42582,0.1916 7.86642,0.5647 2.4507,0.3733 4.59884,1.1095 6.44442,2.2188 1.84559,1.1094 3.32811,2.6625 4.42739,4.6493 1.10938,1.9968 1.67414,4.6997 1.67414,8.0984 0.1412,3.2474 -0.81689,5.7283 -2.88435,7.4227 -2.07755,1.7043 -4.88123,3.0053 -8.43121,3.8929 -3.54997,0.8875 -7.62438,1.5531 -12.21313,2.0069 -4.57867,0.4337 -9.23802,1.0287 -13.97807,1.7749 -4.72995,0.7363 -9.419545,1.7347 -14.088975,2.9954 -4.64927,1.2505 -8.79428,3.1365 -12.41485,5.6577 -3.62058,2.5113 -6.58562,5.8797 -8.87496,10.0852 -2.28933,4.2156 -3.42895,9.581 -3.42895,16.0859 0,5.92 0.99843,11.0231 2.99529,15.3194 1.98678,4.2862 4.7602,7.8462 8.32027,10.6499 3.54998,2.8138 7.6849,4.8711 12.41485,6.2024 4.72994,1.3312 9.843125,1.9969 15.319365,1.9969 7.08989,0 14.03858,-1.0388 20.84607,-3.1062 6.80748,-2.0675 12.7174,-5.6881 17.75999,-10.8719 0.14119,1.9263 0.4034,3.8122 0.76647,5.6578 0.37315,1.8556 0.84716,3.661 1.43209,5.4359 0,0 31.9599,0 31.9599,0 -1.48252,-2.36 -2.52129,-5.9099 -3.11632,-10.6398 -0.59502,-4.73 -0.88749,-9.6919 -0.88749,-14.8757 0,0 0,-59.6841 0,-59.6841 0,-6.9486 -1.55311,-12.5258 -4.65935,-16.7414 -3.10623,-4.2256 -7.08988,-7.5134 -11.98118,-9.8834 -4.87115,-2.37 -10.26671,-3.9534 -16.19678,-4.7703 -5.92,-0.8068 -11.7593,-1.2102 -17.51794,-1.2102 -6.36374,0 -12.68714,0.6253 -18.98031,1.8859 -6.28307,1.2506 -11.940845,3.3584 -16.963255,6.3234 -5.0325,2.955 -9.16742,6.868 -12.42493,11.7492 -3.25751,4.8813 -5.1031,11.013 -5.54685,18.4055 0,0 31.506075,0 31.506075,0 z m 41.26853,35.0662 c 0,1.7749 -0.18152,4.1449 -0.55468,7.11 -0.37315,2.9549 -1.3615,5.8695 -2.9953,8.7539 -1.6237,2.8844 -4.145,5.3653 -7.54371,7.4428 -3.40877,2.0675 -8.20932,3.1063 -14.42179,3.1063 -2.51121,0 -4.95181,-0.2219 -7.32184,-0.6656 -2.37002,-0.4438 -4.43748,-1.2304 -6.21247,-2.3297 -1.77499,-1.1093 -3.18692,-2.6323 -4.22569,-4.5585 -1.02868,-1.9162 -1.54302,-4.2862 -1.54302,-7.1 0,-2.9549 0.51434,-5.3956 1.54302,-7.3118 1.03877,-1.9262 2.41036,-3.5197 4.11475,-4.7803 1.7044,-1.2606 3.69118,-2.2591 5.99061,-2.9953 2.28933,-0.7463 4.61901,-1.3312 6.99911,-1.7749 2.50112,-0.4438 5.01233,-0.8069 7.52354,-1.1095 2.52129,-0.2924 4.93165,-0.6555 7.22098,-1.0992 2.28933,-0.4539 4.43747,-1.0085 6.43434,-1.6741 1.98677,-0.6657 3.65083,-1.5935 4.99215,-2.7734 0,0 0,11.7593 0,11.7593 z m 82.08322,15.7529 c 1.42201,2.4306 3.2676,4.4173 5.51658,5.9604 2.23892,1.533 4.83081,2.6726 7.75551,3.4088 2.91462,0.7363 5.94017,1.0993 9.08674,1.0993 2.249,0 4.60892,-0.2522 7.07979,-0.7765 2.46079,-0.5245 4.70978,-1.3313 6.72681,-2.4407 2.02713,-1.1093 3.71135,-2.5919 5.05267,-4.4375 1.36151,-1.8556 2.03721,-4.1752 2.03721,-6.989 0,-4.73 -3.16674,-8.2799 -9.50023,-10.65 -6.33349,-2.3598 -15.15802,-4.7299 -26.47358,-7.0999 -4.61901,-1.0287 -9.11701,-2.249 -13.52423,-3.6609 -4.38704,-1.4018 -8.30008,-3.2575 -11.71896,-5.5469 -3.42896,-2.2893 -6.19229,-5.1737 -8.27992,-8.6531 -2.07755,-3.4693 -3.11632,-7.7252 -3.11632,-12.7577 0,-7.4025 1.44218,-13.4637 4.33661,-18.1937 2.89445,-4.7298 6.71674,-8.4614 11.46685,-11.1945 4.75012,-2.7432 10.09526,-4.6694 16.02534,-5.7687 5.94016,-1.1194 12.02152,-1.6741 18.26424,-1.6741 6.23264,0 12.27367,0.595 18.14324,1.7648 5.85948,1.17 11.09369,3.1466 15.69253,5.9403 4.59884,2.7835 8.42112,6.4847 11.45676,11.1138 3.04571,4.619 4.87113,10.4483 5.46616,17.4877 0,0 -30.25553,0 -30.25553,0 -0.45383,-5.8998 -2.76333,-9.9037 -6.93859,-11.9913 -4.16518,-2.0876 -9.08674,-3.1364 -14.74452,-3.1364 -1.78508,0 -3.73152,0.1108 -5.81915,0.3328 -2.07755,0.2218 -3.97356,0.7059 -5.68804,1.4522 -1.71449,0.7362 -3.16675,1.8052 -4.3568,3.2272 -1.19005,1.412 -1.78508,3.2878 -1.78508,5.6579 0,2.8137 1.03878,5.1131 3.11632,6.8982 2.08764,1.775 4.81063,3.2273 8.16899,4.3366 3.34828,1.1094 7.18066,2.1179 11.4971,3.0054 4.32655,0.8875 8.7136,1.8456 13.19141,2.8844 4.60893,1.0388 9.117,2.2993 13.50405,3.7819 4.40723,1.4825 8.31019,3.4491 11.73915,5.8998 3.42895,2.4507 6.18221,5.4863 8.25976,9.117 2.08763,3.6307 3.13649,8.1085 3.13649,13.4436 0,7.5639 -1.53295,13.9074 -4.58876,19.0206 -3.04572,5.1031 -7.01928,9.2179 -11.93076,12.3342 -4.9014,3.1162 -10.51884,5.3048 -16.84224,6.5554 -6.32341,1.2707 -12.75775,1.8959 -19.30302,1.8959 -6.70664,0 -13.25193,-0.6756 -19.64593,-2.017 -6.40408,-1.3312 -12.1022,-3.56 -17.08428,-6.6764 -4.98207,-3.1263 -9.07665,-7.2411 -12.27366,-12.3745 -3.19699,-5.1232 -4.94173,-11.5475 -5.2342,-19.2728 0,0 30.25552,0 30.25552,0 0,3.3685 0.70596,6.273 2.12797,8.6934 z m 126.96224,-129.7155 c 0,0 0,84.9374 0,84.9374 0,0 39.7155,-41.2584 39.7155,-41.2584 0,0 37.2647,0 37.2647,0 0,0 -43.2553,42.1358 -43.2553,42.1358 0,0 48.1365,72.5225 48.1365,72.5225 0,0 -38.1623,0 -38.1623,0 0,0 -31.5061,-51.2428 -31.5061,-51.2428 0,0 -12.193,11.7492 -12.193,11.7492 0,0 0,39.4936 0,39.4936 0,0 -31.26404,0 -31.26404,0 0,0 0,-158.3373 0,-158.3373 0,0 31.26404,0 31.26404,0 z"
483451
id="Path"
484-
style="fill:#747474;fill-opacity:1;stroke:#ffffff;stroke-width:2.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter7102)"
452+
style="display:inline;fill:#747474;fill-opacity:1;stroke:#ffffff;stroke-width:2.20000005;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter7102)"
485453
inkscape:connector-curvature="0" />
486-
487454
<image
455+
transform="translate(10.692064,1041.3374)"
456+
style="display:inline"
488457
id="image4502"
489-
xlink:href="#{.*}"
458+
xlink:href="#{launcher}"
490459
height="59.791496"
491460
width="106.28881"
492461
y="317.83533"

0 commit comments

Comments
 (0)