Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit cd0738e

Browse files
Merge pull request #7151 from livecodesam/bugfix_21822
[Bugfix-21822] drawingSvgCompileFile() can't read from Android resources folder
2 parents 51cff84 + daf5a93 commit cd0738e

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

extensions/script-libraries/drawing/drawing.livecodescript

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,20 @@ Finally if the width and height are not specified, or are percentages and there
113113
is no viewBox attribute then the intrinsic width and height are taken to be
114114
256.
115115
116-
Note: The drawing binary format is not currently considered stable and is
116+
>*Note:* The drawing binary format is not currently considered stable and is
117117
subject to change until the end of the RC cycle for 9. At present it is advised
118118
that SVG files be compiled as needed when developing in the IDE, and then
119119
compiled ahead-of-time when building a standalone.
120120
121-
Note: To use this function in a standalone, you must include the XML extension.
121+
122+
>*Note:* To use this function in a standalone, you must include the XML
123+
extension.
124+
125+
126+
>*Note:* The <XML library> (and by extension, this function) can not load
127+
> files from the resources folder on Android. You must either copy the
128+
> resources to the documents folder or use the <drawingSvgCompile>
129+
> function instead.
122130
123131
Parameters:
124132
@@ -132,7 +140,7 @@ of an image directly.
132140
The result:
133141
An error string if an error occurred.
134142
135-
References: drawingSvgCompile (function)
143+
References: drawingSvgCompile (function), XML library (library)
136144
*/
137145
function drawingSvgCompileFile pXmlFile
138146
/* Convert the XML file to the LiveCode array structure. */
@@ -208,12 +216,16 @@ Finally if the width and height are not specified, or are percentages and there
208216
is no viewBox attribute then the intrinsic width and height are taken to be
209217
256.
210218
211-
Note: The drawing binary format is not currently considered stable and is
212-
subject to change until the end of the RC cycle for 9. At present it is advised
213-
that SVG files be compiled as needed when developing in the IDE, and then
214-
compiled ahead-of-time when building a standalone.
219+
>*Note:* The drawing binary format is not currently considered stable and is
220+
> subject to change until the end of the RC cycle for 9. At present it is advised
221+
> that SVG files be compiled as needed when developing in the IDE, and then
222+
> compiled ahead-of-time when building a standalone.
223+
224+
225+
>*Note:* To use this function in a standalone, you must include the XML
226+
> extension.
227+
215228
216-
Note: To use this function in a standalone, you must include the XML extension.
217229
Parameters:
218230
219231
pXmlText (string):
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# [21822] Added a note mentioning that drawingSvgCompileFile() can not read from the resources folder on Android

0 commit comments

Comments
 (0)