@@ -128,6 +128,7 @@ export class ToolbarComponent implements OnInit {
128128 endVectorLayer . height ,
129129 endVectorLayer . alpha ) ;
130130 const zip = new JSZip ( ) ;
131+ zip . file ( 'README.txt' , createExportReadme ( ) ) ;
131132 const android = zip . folder ( 'android' ) ;
132133 const avd = AvdSerializer . vectorLayerAnimationToAvdXmlString ( startOutputVectorLayer , avdTargets ) ;
133134 android . file ( 'AnimatedVectorDrawable.xml' , avd ) ;
@@ -283,3 +284,44 @@ function downloadFile(content: Blob, fileName: string) {
283284 anchor . get ( 0 ) . click ( ) ;
284285 window . URL . revokeObjectURL ( url ) ;
285286}
287+
288+ function createExportReadme ( ) {
289+ return `=== Files exported by Shape Shifter ===
290+
291+ This archive contains the following:
292+
293+ web/
294+ - StartSvg.svg
295+ - EndSvg.svg
296+
297+ android/
298+ - StartVectorDrawable.xml
299+ - EndVectorDrawable.xml
300+ - AnimatedVectorDrawable.xml
301+
302+ If you have an export format that you'd like to see added, please file
303+ a feature request using the link below!
304+
305+ Further reading:
306+
307+ - Shape Shifter live version:
308+ https://alexjlockwood.github.io/ShapeShifter
309+
310+ - Shape Shifter source code:
311+ https://github.com/alexjlockwood/ShapeShifter
312+
313+ - File a feature request:
314+ https://github.com/alexjlockwood/ShapeShifter/issues
315+
316+ - Introduction to Icon Animations blog post:
317+ http://www.androiddesignpatterns.com/2016/11/introduction-to-icon-animation-techniques.html
318+
319+ - Animated Vector Drawable sample Android application:
320+ https://github.com/alexjlockwood/adp-delightful-details
321+
322+ - VectorDrawable & AnimatedVectorDrawable developer training docs:
323+ https://developer.android.com/guide/topics/graphics/vector-drawable-resources.html
324+
325+ (c) 2017 Alex Lockwood
326+ ` ;
327+ }
0 commit comments