Skip to content

Commit facb5df

Browse files
ysfchnhammerhaiStormiFire
authored
Version - v2.2.0 (#37)
* Fix indent to 4 spaces * Rework (#36) * Rewrite Signed-off-by: StormiFire <7520363-StormiFire@users.noreply.gitlab.com> * Remove .sh files from root Signed-off-by: StormiFire <7520363-StormiFire@users.noreply.gitlab.com> * Replace old icon.png for README Signed-off-by: StormiFire <7520363-StormiFire@users.noreply.gitlab.com> * Remove .placeholder Signed-off-by: StormiFire <7520363-StormiFire@users.noreply.gitlab.com> * Convert indentations to spaces (2) Signed-off-by: StormiFire <7520363-StormiFire@users.noreply.gitlab.com> * Reword description for GetName Signed-off-by: StormiFire <7520363-StormiFire@users.noreply.gitlab.com> * Change 'helpUrl' to README, reverse deprecation of 'SchemaCreated', and reverse package name change Signed-off-by: StormiFire <7520363-StormiFire@users.noreply.gitlab.com> Co-authored-by: StormiFire <7520363-StormiFire@users.noreply.gitlab.com> * Lower the version name due it is not a major release * Lower the version code because it is bumped twice * Update docs * Add information about thread to docs * Replace badge locations Co-authored-by: Nathan <43486313+StormiFire@users.noreply.github.com> Co-authored-by: StormiFire <7520363-StormiFire@users.noreply.gitlab.com>
1 parent 87261a1 commit facb5df

18 files changed

+482
-722
lines changed

README.md

Lines changed: 48 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# DynamicComponents-AI2 `Extension`
44

5+
[![forthebadge](https://forthebadge.com/images/badges/its-not-a-lie-if-you-believe-it.svg)](https://forthebadge.com)
6+
57
[![Maintainability](https://api.codeclimate.com/v1/badges/31e4cd31de1bd0e186c8/maintainability)](https://codeclimate.com/github/ysfchn/DynamicComponents-AI2/maintainability)
68

79
Fully supported Dynamic Components extension for MIT App Inventor 2. It is based on Java's reflection feature, so it creates the components by searching for a class by just typing its name. So it doesn't have a limited support for specific components, because it supports every component which is ever added to your App Inventor distribution!
@@ -10,7 +12,13 @@ So if you use Kodular, you will able to create all Kodular components, if you us
1012

1113
> ⚠ The `beta` branch will be reset after every release. So stay on the `main` branch if you don't know what you do.
1214
13-
[![forthebadge](https://forthebadge.com/images/badges/its-not-a-lie-if-you-believe-it.svg)](https://forthebadge.com)
15+
---
16+
17+
### Asynchronous support
18+
19+
This extension can create components asynchronously or synchronously based on your choice. If you don't want to block the main app during creating a bunch of components, go to the Designer (after importing the extension) and select between "UI" (asynchronous) and "Main" (synchronous).
20+
21+
<img src="assets/other/thread_choice.png" height="150">
1422

1523
## 🧩 Blocks
1624

@@ -78,7 +86,10 @@ So if you use Kodular, you will able to create all Kodular components, if you us
7886
</table>
7987
</td>-->
8088
<td>
81-
Changes ID of one of created components to a new one. The old ID must be exist and new ID mustn't exist.
89+
Changes ID of one of created components to a new one. The old ID must be exist and new ID mustn't exist.<br>
90+
<blockquote>
91+
When replacing an ID, it will loop through ALL IDs and replace each one that contains the old ID! Even if the ID you're wanting to replace is "Timmy", but there are IDs like "Timmy-truck". To be clear again, only "Timmy" from "Timmy-truck" will be replaced, the "-truck" part will stay the same!
92+
</blockquote>
8293
</td>
8394
</tr>
8495
<!-- SCHEMA -->
@@ -214,23 +225,6 @@ So if you use Kodular, you will able to create all Kodular components, if you us
214225
Component --> ID
215226
</td>
216227
</tr>
217-
<!-- GET NAME -->
218-
<tr>
219-
<td align="right">
220-
<img src="assets/blocks/method_getname.png">
221-
</td>
222-
<!--<td>
223-
<table style="width:100%">
224-
<tr>
225-
<td align="right"><code>component</code></td>
226-
<td>The component that you want to get its name.</td>
227-
</tr>
228-
</table>
229-
</td>-->
230-
<td>
231-
Returns the internal/class name of any component or object. The returned value can be also used in Create block.
232-
</td>
233-
</tr>
234228
<!-- GET ORDER -->
235229
<tr>
236230
<td align="right">
@@ -318,21 +312,40 @@ So if you use Kodular, you will able to create all Kodular components, if you us
318312
Get a property value of a component by typing its property name. Can be known as a Getter property block. It can be also used to get properties that only exists in Designer.
319313
</td>
320314
</tr>
321-
<!-- LIST DETAILS -->
315+
<!-- GET COMPONENT META -->
322316
<tr>
323317
<td align="right">
324-
<img src="assets/blocks/method_listdetails.png">
318+
<img src="assets/blocks/method_getcomponentmeta.png">
325319
</td>
326-
<!--<td>
327-
<table style="width:100%">
328-
<tr>
329-
<td align="right"><code>component</code></td>
330-
<td>The component that property names and types will get from.</td>
331-
</tr>
332-
</table>
333-
</td>-->
334320
<td>
335-
Gives the information of the specified component with all properties, events, methods as JSON text.
321+
Get meta data about the specified component.
322+
</td>
323+
</tr>
324+
<!-- GET EVENT META -->
325+
<tr>
326+
<td align="right">
327+
<img src="assets/blocks/method_geteventmeta.png">
328+
</td>
329+
<td>
330+
Get meta data about events for the specified component.
331+
</td>
332+
</tr>
333+
<!-- GET PROPERTY META -->
334+
<tr>
335+
<td align="right">
336+
<img src="assets/blocks/method_getpropertymeta.png">
337+
</td>
338+
<td>
339+
Get meta data about properties for the specified component.
340+
</td>
341+
</tr>
342+
<!-- GET FUNCTION META -->
343+
<tr>
344+
<td align="right">
345+
<img src="assets/blocks/method_getfunctionmeta.png">
346+
</td>
347+
<td>
348+
Get meta data about functions for the specified component.
336349
</td>
337350
</tr>
338351
<!-- LAST USED ID -->
@@ -353,10 +366,10 @@ So if you use Kodular, you will able to create all Kodular components, if you us
353366
Returns all used IDs of current components as App Inventor list.
354367
</td>
355368
</tr>
356-
<!-- RANDOM UUID -->
369+
<!-- GENERATE ID -->
357370
<tr>
358371
<td align="right">
359-
<img src="assets/blocks/method_randomuuid.png">
372+
<img src="assets/blocks/method_generateid.png">
360373
</td>
361374
<td>
362375
Makes a random unique UUID. Use this block in Create block if component ID is not required for you.
@@ -398,16 +411,6 @@ So if you use Kodular, you will able to create all Kodular components, if you us
398411
Returns the version name of the extension.
399412
</td>
400413
</tr>
401-
<!-- ASYNC -->
402-
<tr>
403-
<td align="right">
404-
<img src="assets/blocks/setget_async.png"><br>
405-
<img src="assets/blocks/setget_async_2.png">
406-
</td>
407-
<td>
408-
Sets whether component creation should work asynchronously or synchronously.
409-
</td>
410-
</tr>
411414
<!-- SCHEMA CREATED -->
412415
<tr>
413416
<td align="right">
@@ -417,13 +420,13 @@ So if you use Kodular, you will able to create all Kodular components, if you us
417420
Raises after Schema has been created with Schema block.
418421
</td>
419422
</tr>
420-
<!-- COMPONENT CREATED -->
423+
<!-- COMPONENT BUILT -->
421424
<tr>
422425
<td align="right">
423-
<img src="assets/blocks/event_componentcreated.png">
426+
<img src="assets/blocks/event_componentbuilt.png">
424427
</td>
425428
<td>
426-
Raises after a component has been created using the Create block. It also will be raised for components that created with Schema.
429+
Raises after a component has been created.
427430
</td>
428431
</tr>
429432
</table>
6.04 KB
Loading
-5.44 KB
Binary file not shown.
3.08 KB
Loading
4.62 KB
Loading
4.29 KB
Loading
4.48 KB
Loading

assets/blocks/method_getname.png

-3.92 KB
Binary file not shown.
4.47 KB
Loading
-3.71 KB
Binary file not shown.

0 commit comments

Comments
 (0)