Transform blocks into written code

Hello,

I have these blocks in an app, it’s a simple code that gets data from a Google Spreadsheet and stores in a FirebaseDB:

Is there some way where I can transform them into written code, like in the Blockly Editor example in Google?

image

Maybe I can find the written code in the compiled apk? Can someone give me some hints?

Thanks!

If you open the aia file on your PC, and go to

src/com/makeroid/../../Screen.scm

You’ll find the source code of your app written in YAIL based on Kawa/Scheme language.

5 Likes

Thanks for the tip @pavi2410, I was also curious about that too.
Is it possible to integrate inside Makeroid as a different section so curious users can see (It would be a first upon all builders :slight_smile:)

Thanks @pavi2410.
When I open the file you mentioned, it seems that it only contains the components from the Designer, but not the code from Blocks:

#| $JSON {"authURL":["builder.makeroid.io"],"YaVersion":"160","Source":"Form","Properties":{"$Name":"Screen1","$Type":"Form","$Version":"30","AlignHorizontal":"3","AppName":"LTCC","ScreenOrientation":"portrait","ShowListsAsJson":"True","Title":"LTCC - Lab. Mat. Const. Civil","TitleBarColor":"&HFF3F51B5","Uuid":"0","$Components":[{"$Name":"Label2","$Type":"Label","$Version":"6","FontSize":"16","Text":"Informe o n\u00famero do acervo ou leia o c\u00f3digo:","Uuid":"-1208008902"},{"$Name":"Horizontal_Arrangement1","$Type":"HorizontalArrangement","$Version":"5","Width":"-2","Uuid":"-1992498789","$Components":[{"$Name":"TextBox1","$Type":"TextBox","$Version":"9","FontSize":"22","Hint":"n\u00fam. acervo","HintColor":"&HFFCCCCCC","InputType":"5","LineColor":"&HFF2196F2","Uuid":"-1681793401"},{"$Name":"Button1","$Type":"Button","$Version":"8","BackgroundColor":"&HFF3F51B5","FontSize":"21","Text":"OK","Uuid":"-319379520"},{"$Name":"Label4","$Type":"Label","$Version":"6","Width":"-2","Uuid":"1471772848"},{"$Name":"Button2","$Type":"Button","$Version":"8","BackgroundColor":"&HFF3F51B5","FontSize":"21","FontTypeface":"7","Text":"camera_alt","Uuid":"1170865745"}]},{"$Name":"Horizontal_Arrangement2","$Type":"HorizontalArrangement","$Version":"5","BackgroundColor":"&HFF607D8B","Height":"2","Width":"-2","Uuid":"-1849603046"},{"$Name":"Vertical_Scroll_Arrangement1","$Type":"VerticalScrollArrangement","$Version":"3","AlignHorizontal":"3","Width":"-2","Uuid":"-963168143","$Components":[{"$Name":"Label3","$Type":"Label","$Version":"6","FontBold":"True","FontSize":"22","Width":"-2","TextAlignment":"1","Uuid":"-791373667"},{"$Name":"Image1","$Type":"Image","$Version":"4","Uuid":"-942449834"},{"$Name":"Label1","$Type":"Label","$Version":"6","FontSize":"18","FontTypeface":"5","HTMLFormat":"True","Width":"-2","Uuid":"-503933796"}]},{"$Name":"Firebase_DB1","$Type":"FirebaseDB","$Version":"4","FirebaseToken":"AI","FirebaseURL":"https:\/\/ltcc.firebaseio.com\/","ProjectBucket":"LTCC","Uuid":"1509987885"},{"$Name":"Web1","$Type":"Web","$Version":"4","Uuid":"1120025555"},{"$Name":"Barcode_Scanner1","$Type":"BarcodeScanner","$Version":"2","Uuid":"2140323285"}]}} |#

Should I open it in a specific software?

Blocks are in the Screen.bky file (same directory as the Screen.scm file)

2 Likes

can we translate to java

2 Likes

thanks it helps a lot

can we edit the code by written it manually its seem much easier than blocks
so we edit it outsite kodular platform then import the aia file again ?

I have done this in the past when downloading template aia’s that contain something invalid and wont open on kodular. So I had to manually remove the components and blocks. I personally don’t recommend doing it manually as I got quite a headache, kodular is much easier.

1 Like