fastlane-plugin-polidea 2.1.0 → 2.1.1.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fastlane/plugin/polidea/actions/fota_mail.rb +10 -16
  3. data/lib/fastlane/plugin/polidea/actions/fota_s3.rb +6 -25
  4. data/lib/fastlane/plugin/polidea/helper/mime.rb +22 -0
  5. data/lib/fastlane/plugin/polidea/helper/page_generator.rb +39 -3
  6. data/lib/fastlane/plugin/polidea/helper/qr_generator.rb +1 -1
  7. data/lib/fastlane/plugin/polidea/templates/download.erb +481 -0
  8. data/lib/fastlane/plugin/polidea/templates/images/cover-shuttle.jpg +0 -0
  9. data/lib/fastlane/plugin/polidea/templates/images/icon-placeholder.png +0 -0
  10. data/lib/fastlane/plugin/polidea/templates/images/polidea-logo.png +0 -0
  11. data/lib/fastlane/plugin/polidea/templates/images/social-behance.png +0 -0
  12. data/lib/fastlane/plugin/polidea/templates/images/social-dribbble.png +0 -0
  13. data/lib/fastlane/plugin/polidea/templates/images/social-facebook.png +0 -0
  14. data/lib/fastlane/plugin/polidea/templates/images/social-github.png +0 -0
  15. data/lib/fastlane/plugin/polidea/templates/images/social-instagram.png +0 -0
  16. data/lib/fastlane/plugin/polidea/templates/images/social-linkedin.png +0 -0
  17. data/lib/fastlane/plugin/polidea/templates/images/social-twitter.png +0 -0
  18. data/lib/fastlane/plugin/polidea/templates/installation-page/css/installation-page.css +2835 -1082
  19. data/lib/fastlane/plugin/polidea/templates/installation_template.erb +3 -7
  20. data/lib/fastlane/plugin/polidea/templates/mailgun_template.erb +56 -24
  21. data/lib/fastlane/plugin/polidea/templates/secure_installation_template.erb +6 -10
  22. data/lib/fastlane/plugin/polidea/version.rb +1 -1
  23. metadata +28 -8
  24. data/lib/fastlane/plugin/polidea/templates/images/logo.png +0 -0
  25. data/lib/fastlane/plugin/polidea/templates/images/polidea-facebook-icon.png +0 -0
  26. data/lib/fastlane/plugin/polidea/templates/images/polidea-github-icon.png +0 -0
  27. data/lib/fastlane/plugin/polidea/templates/images/polidea-twitter-icon.png +0 -0
@@ -0,0 +1,481 @@
1
+ <!doctype html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
3
+
4
+ <head>
5
+ <title> <%= app_name %> <%= app_version %> (<%= build_number %>) for <%= platform %> is ready to install </title>
6
+ <!--[if !mso]><!-- -->
7
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
+ <!--<![endif]-->
9
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
10
+ <meta name="viewport" content="width=device-width, initial-scale=1">
11
+ <style type="text/css">
12
+ #outlook a {
13
+ padding: 0;
14
+ }
15
+
16
+ body {
17
+ margin: 0;
18
+ padding: 0;
19
+ -webkit-text-size-adjust: 100%;
20
+ -ms-text-size-adjust: 100%;
21
+ }
22
+
23
+ table,
24
+ td {
25
+ border-collapse: collapse;
26
+ mso-table-lspace: 0pt;
27
+ mso-table-rspace: 0pt;
28
+ }
29
+
30
+ img {
31
+ border: 0;
32
+ height: auto;
33
+ line-height: 100%;
34
+ outline: none;
35
+ text-decoration: none;
36
+ -ms-interpolation-mode: bicubic;
37
+ }
38
+
39
+ p {
40
+ display: block;
41
+ margin: 13px 0;
42
+ }
43
+ </style>
44
+ <!--[if mso]>
45
+ <xml>
46
+ <o:OfficeDocumentSettings>
47
+ <o:AllowPNG/>
48
+ <o:PixelsPerInch>96</o:PixelsPerInch>
49
+ </o:OfficeDocumentSettings>
50
+ </xml>
51
+ <![endif]-->
52
+ <!--[if lte mso 11]>
53
+ <style type="text/css">
54
+ .mj-outlook-group-fix { width:100% !important; }
55
+ </style>
56
+ <![endif]-->
57
+ <!--[if !mso]><!-->
58
+ <link href="https://fonts.googleapis.com/css?family=Overpass+Mono:700" rel="stylesheet" type="text/css">
59
+ <style type="text/css">
60
+ @import url(https://fonts.googleapis.com/css?family=Overpass+Mono:700);
61
+ </style>
62
+ <!--<![endif]-->
63
+ <style type="text/css">
64
+ @media only screen and (min-width:480px) {
65
+ .mj-column-per-100 {
66
+ width: 100% !important;
67
+ max-width: 100%;
68
+ }
69
+
70
+ .mj-column-px-480 {
71
+ width: 480px !important;
72
+ max-width: 480px;
73
+ }
74
+ }
75
+ </style>
76
+ <style type="text/css">
77
+ @media only screen and (max-width:480px) {
78
+ table.mj-full-width-mobile {
79
+ width: 100% !important;
80
+ }
81
+
82
+ td.mj-full-width-mobile {
83
+ width: auto !important;
84
+ }
85
+ }
86
+ </style>
87
+ </head>
88
+
89
+ <body style="background-color:#FFFFFF;">
90
+ <div style="background-color:#FFFFFF;">
91
+ <!-- Company Header -->
92
+ <!--[if mso | IE]>
93
+ <table
94
+ align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
95
+ >
96
+ <tr>
97
+ <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
98
+ <![endif]-->
99
+ <div style="background:#ffffff;background-color:#ffffff;margin:0px auto;max-width:600px;">
100
+ <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;background-color:#ffffff;width:100%;">
101
+ <tbody>
102
+ <tr>
103
+ <td style="direction:ltr;font-size:0px;padding:0px;text-align:center;">
104
+ <!--[if mso | IE]>
105
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
106
+
107
+ <tr>
108
+
109
+ <td
110
+ class="" style="vertical-align:top;width:600px;"
111
+ >
112
+ <![endif]-->
113
+ <div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
114
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
115
+ <tbody>
116
+ <tr>
117
+ <td style="vertical-align:top;padding:20px 32px;">
118
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" style width="100%">
119
+ <tr>
120
+ <td align="left" style="font-size:0px;padding:0px;word-break:break-word;">
121
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
122
+ <tbody>
123
+ <tr>
124
+ <td style="width:156px;">
125
+ <a href="https://www.polidea.com/" target="_blank">
126
+ <img height="auto" src="https://s3.eu-central-1.amazonaws.com/fota.polidea.com/mails/images/polidea-logo.png" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:14px;" width="156">
127
+ </a>
128
+ </td>
129
+ </tr>
130
+ </tbody>
131
+ </table>
132
+ </td>
133
+ </tr>
134
+ </table>
135
+ </td>
136
+ </tr>
137
+ </tbody>
138
+ </table>
139
+ </div>
140
+ <!--[if mso | IE]>
141
+ </td>
142
+
143
+ </tr>
144
+
145
+ </table>
146
+ <![endif]-->
147
+ </td>
148
+ </tr>
149
+ </tbody>
150
+ </table>
151
+ </div>
152
+ <!--[if mso | IE]>
153
+ </td>
154
+ </tr>
155
+ </table>
156
+ <![endif]-->
157
+ <!-- Image Header -->
158
+ <!--[if mso | IE]>
159
+ <table
160
+ align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
161
+ >
162
+ <tr>
163
+ <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
164
+ <![endif]-->
165
+ <div style="margin:0px auto;max-width:600px;">
166
+ <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
167
+ <tbody>
168
+ <tr>
169
+ <td style="direction:ltr;font-size:0px;padding:0;text-align:center;">
170
+ <!--[if mso | IE]>
171
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
172
+
173
+ <tr>
174
+
175
+ <td
176
+ class="" style="vertical-align:top;width:600px;"
177
+ >
178
+ <![endif]-->
179
+ <div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
180
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
181
+ <tbody>
182
+ <tr>
183
+ <td style="vertical-align:top;padding:0;">
184
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" style width="100%">
185
+ <tr>
186
+ <td align="center" style="font-size:0px;padding:0;word-break:break-word;">
187
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
188
+ <tbody>
189
+ <tr>
190
+ <td style="width:600px;">
191
+ <img height="auto" src="https://s3.eu-central-1.amazonaws.com/fota.polidea.com/mails/images/cover-shuttle.jpg" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:14px;" width="600">
192
+ </td>
193
+ </tr>
194
+ </tbody>
195
+ </table>
196
+ </td>
197
+ </tr>
198
+ </table>
199
+ </td>
200
+ </tr>
201
+ </tbody>
202
+ </table>
203
+ </div>
204
+ <!--[if mso | IE]>
205
+ </td>
206
+
207
+ </tr>
208
+
209
+ </table>
210
+ <![endif]-->
211
+ </td>
212
+ </tr>
213
+ </tbody>
214
+ </table>
215
+ </div>
216
+ <!--[if mso | IE]>
217
+ </td>
218
+ </tr>
219
+ </table>
220
+ <![endif]-->
221
+ <!-- Body -->
222
+ <!--[if mso | IE]>
223
+ <table
224
+ align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
225
+ >
226
+ <tr>
227
+ <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
228
+ <![endif]-->
229
+ <div style="background:#ffffff;background-color:#ffffff;margin:0px auto;max-width:600px;">
230
+ <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;background-color:#ffffff;width:100%;">
231
+ <tbody>
232
+ <tr>
233
+ <td style="direction:ltr;font-size:0px;padding:0 32px 0;text-align:center;">
234
+ <!--[if mso | IE]>
235
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
236
+
237
+ <tr>
238
+
239
+ <td
240
+ class="" style="vertical-align:top;width:480px;"
241
+ >
242
+ <![endif]-->
243
+ <div class="mj-column-px-480 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
244
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
245
+ <tbody>
246
+ <tr>
247
+ <td style="vertical-align:top;padding:32px 0 0;">
248
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" style width="100%">
249
+ <tr>
250
+ <td align="left" style="font-size:0px;padding:0;padding-bottom:18px;word-break:break-word;">
251
+ <div style="font-family:'Acumin', 'Helvetica', Arial;font-size:24px;font-weight:bold;line-height:32px;text-align:left;color:black;">New version is ready to install!</div>
252
+ </td>
253
+ </tr>
254
+ <table>
255
+ <tr>
256
+ <td width="40" vertical-align="top">
257
+ <img width="64" height="64" src="<%= app_icon %>">
258
+ </td>
259
+ <td width="10">
260
+ </td>
261
+ <td style="line-height: 2; font-family: 'Helvetica', Arial;">
262
+ <div style="color: black; font-size: 13px; line-height: 20px; font-weight: bold;"> <%= app_name %> </div>
263
+ <div style="color: black; font-size: 12px; line-height: 20px"> Version: <%= app_version %> (<%= build_number %>) </div>
264
+ </td>
265
+ <td width="20"></td>
266
+ </tr>
267
+ </table>
268
+ <tr>
269
+ <td align="left" vertical-align="middle" style="font-size:0px;padding:32px 0;word-break:break-word;">
270
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;">
271
+ <tr>
272
+ <td align="center" bgcolor="white" role="presentation" style="border:2px solid #2924fb;border-radius:30px;cursor:auto;mso-padding-alt:12px 42px;background:white;" valign="middle">
273
+ <a href="<%= installation_link %>" style="display:inline-block;background:white;color:black;font-family:'Overpass Mono', monospace;font-size:14px;font-weight:bold;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:12px 42px;mso-padding-alt:0px;border-radius:30px;" target="_blank">
274
+ <meta itemprop="url" content="<%= installation_link %>">
275
+ <meta itemprop="name" content="Installation page"> Download </a>
276
+ </td>
277
+ </tr>
278
+ </table>
279
+ </td>
280
+ </tr>
281
+ <tr>
282
+ <td align="left" style="font-size:0px;padding:0;padding-bottom:18px;word-break:break-word;">
283
+ <div style="font-family:'Acumin', 'Helvetica', Arial;font-size:18px;font-weight:bold;line-height:24px;text-align:left;color:black;">What's new:</div>
284
+ </td>
285
+ </tr>
286
+ <tr>
287
+ <td align="left" style="font-size:0px;padding:0;word-break:break-word;">
288
+ <table cellpadding="0" cellspacing="0" width="100%" border="0" style="color:#000000;font-family:'Acumin', 'Helvetica', Arial;font-size:14px;line-height:22px;table-layout:auto;width:100%;border:none;">
289
+ <tr>
290
+ <td class="release-notes" style="padding-left: 16px; padding-right: 16px; padding-top: 8px; padding-bottom: 8px; color: black; background-color: #F8F8F8;" bgcolor="#F8F8F8"> <%= release_notes %> </td>
291
+ </tr>
292
+ </table>
293
+ </td>
294
+ </tr>
295
+ <tr>
296
+ <td align="left" style="font-size:0px;padding:16px 0;word-break:break-word;">
297
+ <table cellpadding="0" cellspacing="0" width="37" border="0" style="color:#000000;font-family:'Acumin', 'Helvetica', Arial;font-size:14px;line-height:22px;table-layout:auto;width:37px;border:none;">
298
+ <tr>
299
+ <td width="37" bgcolor="#f96248" style="background-color: #f96248; padding-bottom: 1px">
300
+ </td>
301
+ </tr>
302
+ </table>
303
+ </td>
304
+ </tr>
305
+ <tr>
306
+ <td align="left" style="font-size:0px;padding:0;word-break:break-word;">
307
+ <div style="font-family:'Acumin', 'Helvetica', Arial;font-size:14px;line-height:20px;text-align:left;color:black;">Platform: <%= platform %></div>
308
+ </td>
309
+ </tr>
310
+ <tr>
311
+ <td align="left" style="font-size:0px;padding:0;word-break:break-word;">
312
+ <div style="font-family:'Acumin', 'Helvetica', Arial;font-size:14px;line-height:20px;text-align:left;color:black;">Version: <%= app_version %> ( <%= build_number %>)</div>
313
+ </td>
314
+ </tr>
315
+ <tr>
316
+ <td align="left" style="font-size:0px;padding:0;word-break:break-word;">
317
+ <div style="font-family:'Acumin', 'Helvetica', Arial;font-size:14px;line-height:20px;text-align:left;color:black;">Release date: <%= release_date %></div>
318
+ </td>
319
+ </tr>
320
+ <tr>
321
+ <td align="left" style="font-size:0px;padding:0;word-break:break-word;">
322
+ <div style="font-family:'Acumin', 'Helvetica', Arial;font-size:14px;line-height:20px;text-align:left;color:black;">Size: <%= binary_size %> MB</div>
323
+ </td>
324
+ </tr>
325
+ </table>
326
+ </td>
327
+ </tr>
328
+ </tbody>
329
+ </table>
330
+ </div>
331
+ <!--[if mso | IE]>
332
+ </td>
333
+
334
+ </tr>
335
+
336
+ </table>
337
+ <![endif]-->
338
+ </td>
339
+ </tr>
340
+ </tbody>
341
+ </table>
342
+ </div>
343
+ <!--[if mso | IE]>
344
+ </td>
345
+ </tr>
346
+ </table>
347
+ <![endif]-->
348
+ <!-- Projectr -->
349
+ <!--[if mso | IE]>
350
+ <table
351
+ align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
352
+ >
353
+ <tr>
354
+ <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
355
+ <![endif]-->
356
+ <div style="margin:0px auto;max-width:600px;">
357
+ <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
358
+ <tbody>
359
+ <tr>
360
+ <td style="direction:ltr;font-size:0px;padding:20px 32px 20px;text-align:center;">
361
+ <!--[if mso | IE]>
362
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
363
+
364
+ <tr>
365
+
366
+ <td
367
+ class="" style="vertical-align:top;width:480px;"
368
+ >
369
+ <![endif]-->
370
+ <div class="mj-column-px-480 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
371
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
372
+ <table>
373
+ <tr>
374
+ <td>
375
+ <a href="https://github.com/Polidea">
376
+ <img src="https://s3.eu-central-1.amazonaws.com/fota.polidea.com/mails/images/social-github.png" width="29" height="29" alt="Github">
377
+ </a>
378
+ </td>
379
+ <td width="16"></td>
380
+ <td>
381
+ <a href="https://www.facebook.com/Polidea.Software">
382
+ <img src="https://s3.eu-central-1.amazonaws.com/fota.polidea.com/mails/images/social-facebook.png" width="29" height="29" alt="Facebook">
383
+ </a>
384
+ </td>
385
+ <td width="16"></td>
386
+ <td>
387
+ <a href="https://twitter.com/polidea">
388
+ <img src="https://s3.eu-central-1.amazonaws.com/fota.polidea.com/mails/images/social-twitter.png" width="29" height="29" alt="Twitter">
389
+ </a>
390
+ </td>
391
+ <td width="16"></td>
392
+ <td>
393
+ <a href="https://www.linkedin.com/company/polidea">
394
+ <img src="https://s3.eu-central-1.amazonaws.com/fota.polidea.com/mails/images/social-linkedin.png" width="29" height="29" alt="Linkedin">
395
+ </a>
396
+ </td>
397
+ <td width="16"></td>
398
+ <td>
399
+ <a href="https://instagram.com/polidea">
400
+ <img src="https://s3.eu-central-1.amazonaws.com/fota.polidea.com/mails/images/social-instagram.png" width="29" height="29" alt="Instagram">
401
+ </a>
402
+ </td>
403
+ </tr>
404
+ </table>
405
+ </table>
406
+ </div>
407
+ <!--[if mso | IE]>
408
+ </td>
409
+
410
+ </tr>
411
+
412
+ </table>
413
+ <![endif]-->
414
+ </td>
415
+ </tr>
416
+ </tbody>
417
+ </table>
418
+ </div>
419
+ <!--[if mso | IE]>
420
+ </td>
421
+ </tr>
422
+ </table>
423
+
424
+ <table
425
+ align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600"
426
+ >
427
+ <tr>
428
+ <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">
429
+ <![endif]-->
430
+ <div style="margin:0px auto;max-width:600px;">
431
+ <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
432
+ <tbody>
433
+ <tr>
434
+ <td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;">
435
+ <!--[if mso | IE]>
436
+ <table role="presentation" border="0" cellpadding="0" cellspacing="0">
437
+
438
+ <tr>
439
+
440
+ <td
441
+ class="" style="vertical-align:top;width:600px;"
442
+ >
443
+ <![endif]-->
444
+ <div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
445
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
446
+ <tr>
447
+ <td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
448
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
449
+ <tbody>
450
+ <tr>
451
+ <td style="width:300px;">
452
+ <img height="auto" src="<%= qr_code %>" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:14px;" width="300">
453
+ </td>
454
+ </tr>
455
+ </tbody>
456
+ </table>
457
+ </td>
458
+ </tr>
459
+ </table>
460
+ </div>
461
+ <!--[if mso | IE]>
462
+ </td>
463
+
464
+ </tr>
465
+
466
+ </table>
467
+ <![endif]-->
468
+ </td>
469
+ </tr>
470
+ </tbody>
471
+ </table>
472
+ </div>
473
+ <!--[if mso | IE]>
474
+ </td>
475
+ </tr>
476
+ </table>
477
+ <![endif]-->
478
+ </div>
479
+ </body>
480
+
481
+ </html>