#1 Re: Delphi » mORMot on Android with Delphi » 2022-12-06 08:07:48

Thanks, I did not found this function until now.
The next detail problem solved. :-)

#2 Re: Delphi » mORMot on Android with Delphi » 2022-12-05 13:36:07

Thanks for the input.
So if we are already in the topic of asm, here another remark:

Another problem are the RCU128, RCU64, ... thread safe assignments.
The Delphi-Atomic-Operation give a "bus error".

Therefor the FPC solution and using a lib could also be the way out.

#3 Re: Delphi » mORMot on Android with Delphi » 2022-12-05 11:23:29

Features we use:
  - ORM with a local database
  - the testing of this feature is in an early state

Current problem solved - not commited yet:
- dynamic sqlite loading - don't know if Delphi can use a static linked version in Android
- you have to distribute a sqlite.so lib with you app.

Important restriction for Delphi on Android: asm not supported at all
- if somebody has more detailed knowledge of the Delphi-Linker, it may be a solution to link a some precompiled lib, which contains the needed code.

Concerning OS-specific code:
- I touched mostly the parts, where some os-specific code was already in place.

Viele Grüße
Thomas

#4 Delphi » mORMot on Android with Delphi » 2022-11-15 16:42:11

ThomasKalten
Replies: 6

Hi,

I ported mORMot to Delphi for Android.
It is surely not perfect and not yet tested very much.
Also a bad hack, which is part of mORMots remote call mechanismen, is not portable without the same hacking knowledge about the delphi android compiler.
But this feature is not used in our projects...
In the next step I will only test and verify the functions we use in our projects.

You find the adapted version on github - besides my changes it us uptodate.
   https://github.com/ThomasKalten/mORMot

Delphi version used: XE11.

Have fun.
Thomas

Board footer

Powered by FluxBB