From 28b78d27831981cc1e2df2cc539d871f6455f59a Mon Sep 17 00:00:00 2001 From: Mario Zorz Date: Tue, 4 Aug 2020 12:08:34 -0300 Subject: [PATCH 1/3] removed SaveResultReason from interop json definition --- stories-interop-example.json | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/stories-interop-example.json b/stories-interop-example.json index b54612042..db9532b84 100644 --- a/stories-interop-example.json +++ b/stories-interop-example.json @@ -25,10 +25,7 @@ }, "uri": null } - ], - "saveResultReason": { - "type": "com.wordpress.stories.compose.frame.StorySaveEvents.SaveResultReason.SaveSuccess" - } + ] }, { "source": { @@ -72,10 +69,7 @@ }, "uri": null } - ], - "saveResultReason": { - "type": "com.wordpress.stories.compose.frame.StorySaveEvents.SaveResultReason.SaveSuccess" - } + ] }, { "source": { @@ -150,10 +144,7 @@ }, "uri": null } - ], - "saveResultReason": { - "type": "com.wordpress.stories.compose.frame.StorySaveEvents.SaveResultReason.SaveSuccess" - } + ] } ], "title": null From 7188bcdd2c2532a09e6956464bc5960599f438d6 Mon Sep 17 00:00:00 2001 From: Mario Zorz Date: Tue, 4 Aug 2020 12:31:16 -0300 Subject: [PATCH 2/3] normalized fontSize, textColor, textAlignment --- stories-interop-example.json | 42 ++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/stories-interop-example.json b/stories-interop-example.json index db9532b84..cb3e24170 100644 --- a/stories-interop-example.json +++ b/stories-interop-example.json @@ -18,9 +18,9 @@ "scale": 1, "addedViewTextInfo": { "text": "this is some text", - "fontSizePx": 140, - "textColor": -1, - "textAlignment": 2 + "fontSize": 14, + "textColor": "#00000000", + "textAlignment": "left|center|right" } }, "uri": null @@ -46,9 +46,9 @@ "scale": 1, "addedViewTextInfo": { "text": "this is some text, on a video background", - "fontSizePx": 140, - "textColor": -1, - "textAlignment": 4 + "fontSize": 14, + "textColor": "#ffffffff", + "textAlignment": "left|center|right" } }, "uri": null @@ -62,9 +62,9 @@ "scale": 1, "addedViewTextInfo": { "text": "😁", - "fontSizePx": 284, - "textColor": -16777216, - "textAlignment": 4 + "fontSize": 28, + "textColor": "#ffffffff", + "textAlignment": "left|center|right" } }, "uri": null @@ -89,9 +89,9 @@ "scale": 1, "addedViewTextInfo": { "text": "one text view", - "fontSizePx": 140, - "textColor": -1, - "textAlignment": 2 + "fontSize": 14, + "textColor": "#ffffffff", + "textAlignment": "center" } }, "uri": null @@ -105,9 +105,9 @@ "scale": 1, "addedViewTextInfo": { "text": "another text view", - "fontSizePx": 140, - "textColor": -1, - "textAlignment": 2 + "fontSize": 14, + "textColor": "#ffffffff", + "textAlignment": "center" } }, "uri": null @@ -121,9 +121,9 @@ "scale": 1, "addedViewTextInfo": { "text": "third text view", - "fontSizePx": 140, - "textColor": -1, - "textAlignment": 2 + "fontSize": 14, + "textColor": "#ffffffff", + "textAlignment": "center" } }, "uri": null @@ -137,9 +137,9 @@ "scale": 1, "addedViewTextInfo": { "text": "😬", - "fontSizePx": 284, - "textColor": -16777216, - "textAlignment": 4 + "fontSize": 28, + "textColor": "#ff55ff", + "textAlignment": "right" } }, "uri": null From 186679d54481c579e56fb48418cf2b5f5621fedb Mon Sep 17 00:00:00 2001 From: Mario Zorz Date: Tue, 4 Aug 2020 12:31:34 -0300 Subject: [PATCH 3/3] added metadata object --- stories-interop-example.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stories-interop-example.json b/stories-interop-example.json index cb3e24170..a3af1ed0c 100644 --- a/stories-interop-example.json +++ b/stories-interop-example.json @@ -1,4 +1,15 @@ { + "metadata": { + "revision": "1.0", + "device": { + "screen": { + "width": 1080, + "height": 1280 + }, + "platform": "android|ios", + "model": "iphone10" + } + }, "frames": [ { "source": {