jmpessoa / lazandroidmodulewizard

LAMW: Lazarus Android Module Wizard: Form Designer and Components development model!
246 stars 82 forks source link

KToyButton não está gerando o build.gradle #507

Closed marcos-ebm closed 7 months ago

marcos-ebm commented 7 months ago

Olá Marques

ao colocar o KToyButton no form e build, está gerando um erro, .......... indo atrás desse erro, vi que o build.gradle não está sendo gerado para poder rodar o kotlin

o build.gradle gerado, me parece que é o padrao para qualquer projeto,

fuçando no arquivo androidwizard_intf.pas reparei que é nele onde é gerado o build.gradle certo??

nesse arquivo, vc colocou um BOOLEANO para se caso o Kotlin for usado, ele se tornara TRUE (FIsKotlinSupported: boolean;)

mas me parece que ele nao está sendo setado como TRUE ao colocar o KToyButton no form

minha pergunta para poder tentar ajudar a achar o erro é ...........Ao Colocar o KToy no form, quem cria e chama o TAndroidProjectDescriptor ??

fora isso, o BUILD.GRADLE, do programa demo AppCompatKToyButtonDemo1 está faltando coisas ........Mas isso é para outra hora

jmpessoa commented 7 months ago

Hello, Marcos!

KToyButton is just a "concept proof" It's not ready for use....

Yes, we can make it work but it won't change the reality of things.... for now we don't have the time to port LAMW from java to kotlin....

jmpessoa commented 7 months ago

"androidwizard_intf.pas" is called to create/configure a new project.... then when re-opening a project the "smartdesigner.pas" is responsible for project updates....

marcos-ebm commented 7 months ago

Yes, for now it's not worth using, but in the case of a new user playing on the form, at least it won't give any errors when compiling

and the user will realize that it is better to use the standard button

jmpessoa commented 7 months ago

Ok. I will try fix it.... another alternative is drop it from IDE tab...

marcos-ebm commented 7 months ago

Ok. I will try fix it.... another alternative is drop it from IDE tab...

Even better, who knows, maybe he'll appear in the future :)

marcos-ebm commented 7 months ago

.