You are not logged in.
Pages: 1
Hi
Can i to use mORMot 2 with Delphi 12 compiling for Android64 and iOS64 ( Client class: TRestHttpClientWebsockets / TRestHttpClientWinHttp ) ?
On WIndows Server use : TRestServerFullMemory.
Mauro
(********************** Delphi Conditionals **********************)
{$ifndef MSWINDOWS}
'Kylix or Delphi for MacOS/Linux/Mobile are unsupported'
'-> we recommend using FPC for POSIX platforms'
{$endif MSWINDOWS}
Last edited by mauro.botta (2025-06-11 12:27:01)
Offline
No, it is not supported, because this "Delphi Mobile" compiler is a cut-down compiler, with some missing features.
For the client class, you can still use the cross-platform code of mORMot 1 without any problem.
Online
I'm sorry to read this, is it a deliberate choice or a temporary phase to update?
a project without Delphi Mobile support, it is not a project , or hint to use : TNetHTTPClient ?
Last edited by mauro.botta (2025-06-17 12:30:45)
Offline
The Delphi mobile compiler is sadly a cut-down version of the Win32/Win64 Delphi compiler, missing some key features needed by our framework.
Honestly, I don't have time to circumvent its limitations, with proper testing and such.
If anyone is willing to do it, and make some Pull Request, they are welcome.
For the client class, you can still use the cross-platform code of mORMot 1 without any problem.
Online
Hi,
here my branched repos for mormot with Delphi XE on Android:
https://github.com/ThomasKalten/mORMot
Here I did no formal testing - I just adapted basic apis to the compiler.
The parts of mormot we use in our project, do work on Android 32 Bit.
For 64 Bit I did only some compilation tests.
and
https://github.com/ThomasKalten/mORMot2
Compiles with DelphiXE12 on Android 32Bit.
I started to run the test suite on Android, which may work for about 50%, but the last changes are not yet in the repo.
And I did not yet opened any pull requests for it.
Viele Grüße
Thomas
Offline
I too asked this question long time ago and actually using SynCrossPlatform Client with some Patches. It works generally great.
The Problem is that you have to generate special Client.pas Unit from Server. And it would be great if this step can be removed.
for the iOS/Android it is not neccessary to port the whole m2. only the client stuff and rtti because i think no one will make a server on mobile platform.
Rad Studio 12.3 Athens / 13.0 Ganymede
Offline
... i think no one will make a server on mobile platform.
Sure — but on the other hand, I know a few friends in the IT sec field who would be stunned to carry a mobile phone running a dedicated app instead of walking around with an offline raspberry or any other pocket device.
I started working on it.
When I was doing my daily commit reading, I couldn't help but smile wide… and the image of @ab that popped into my head was ..
Last edited by flydev (Yesterday 08:37:33)
Offline
i think no one will make a server on mobile platform.
Our "peer cache" feature relies on local UDP/TCP servers, and could benefit on client side too, but I don't know how it is possible on the mobile, especially about firewall port opening.
I would think about a "pure client" peercache feature, without any UDP/TCP server.
Online
I've seen this in an IT-related TV show; it says: "Because we can, bit*h."
a tcp/http server on mobile ,maybe not so usefull , but all other language can do so .
The actual application scenario I have seen is: integrating an HTTP API server within an app or service, allowing other apps to call and interact with it. It's not common, but it does exist.
for a user who heavily depend on mORMot,REAL needs on mobile is :all mormot core utils, like Text Unicode Json Encrypt/Decrypt threadsafe stuff and for sure a httpclient etc.
once i use mormot , i really dont want dive into other libs / compoents.
Last edited by keinn (Yesterday 13:41:45)
Offline
itSDS wrote:i think no one will make a server on mobile platform.
Our "peer cache" feature relies on local UDP/TCP servers, and could benefit on client side too, but I don't know how it is possible on the mobile, especially about firewall port opening.
I would think about a "pure client" peercache feature, without any UDP/TCP server.
I used http server on mobile a time ago and did not have to open any port but may this changed meanwhile
Rad Studio 12.3 Athens / 13.0 Ganymede
Offline
Pages: 1