#1 2022-09-19 21:35:29

Javierus
Member
Registered: 2019-09-18
Posts: 43

Delphi FMX Android client?

the mORMot2 cross platform units, are compatible with Delphi FMX, for Android target?

Out of the cross platform units, is there something  else from mORMot 2 compatible with Delphi FMX android?

Offline

#2 2022-09-20 17:45:44

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: Delphi FMX Android client?

Main mORMot 2 units have no Delphi Android/iOS/Linux support yet.
So no direct support of FMX on those targets.

The main reason is that I don't have any Delphi license to validate it, and that I (and the company I work for) don't need it.
But in mORMot 2, it could be easier to do, since almost all OS specific code is within mormot.core.os.pas. So any input is welcome.

But you can use the mORMot 1 cross-platform units to build FMX clients from a mORMot 2 server.

Offline

#3 2022-09-21 11:33:44

Javierus
Member
Registered: 2019-09-18
Posts: 43

Re: Delphi FMX Android client?

What would you mean by validating it?
Compiling and running the tests would be of any help at all?
I do have Delphi Professional installed and current, but as of today all my development is still D2007/Win32 focused. Working my way towards

Offline

#4 2022-09-28 18:16:59

Junior/RO
Member
Registered: 2011-05-13
Posts: 207

Re: Delphi FMX Android client?

@ab

Delphi Community can't be used?

Offline

#5 2022-09-28 21:51:43

dcoun
Member
From: Crete, Greece
Registered: 2020-02-18
Posts: 392

Re: Delphi FMX Android client?

ab wrote:

Main mORMot 2 units have no Delphi Android/iOS/Linux support yet.
But in mORMot 2, it could be easier to do, since almost all OS specific code is within mormot.core.os.pas. So any input is welcome.

Probably I am not adding anything new, but, mormot.core.base can not be compiled and has no further dependencies

Last edited by dcoun (2022-09-28 21:52:48)

Offline

#6 2022-09-29 09:09:26

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: Delphi FMX Android client?

@Junior
Delphi Community can be used, but my CE license expired.
And it is outdated now.

@dcount
There are still some breaking compatibility issues in Delphi Android/iOS/Linux. Code working since Delphi 6 needs adaptation for those targets. They restored RawByteString support, but some other things are likely to be missing. Even the Delphi RTL is full of awfull $ifdef ISNEXT conditionals - sometimes just commented out on newer version. And we tried not to pollute the mORMot code with such nasty conditionals.

Offline

#7 2022-10-03 15:53:35

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 506

Re: Delphi FMX Android client?

I'm also intersted in getting m2 Running under IOS/ANDROID. Tried to compile but there are many problems with the define in mormot.define.inc.

1. a extra section for iOS/ANDROID is needed.
2. All ASM Stuff does not compile under IOS/ANDROID So an Option NOASM or PUREPASCAL as in Delphi is needed.

I would like to help, should/can i make a branch in Repo ?

(If it works the SynCrossplatform Wrappers are not needed any more) (https://synopse.info/forum/viewtopic.php?id=5835)

I have the latest RS 11.2 from Embacadero installed and also a beta tester.

Last edited by itSDS (2022-10-03 15:56:10)


Rad Studio 12.1 Santorini

Offline

#8 2022-10-03 19:34:54

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: Delphi FMX Android client?

IIRC the shortstring type is not supported any more on iOS/Android.

And we use it in a lot of places.

Offline

#9 2022-10-03 19:40:58

dcoun
Member
From: Crete, Greece
Registered: 2020-02-18
Posts: 392

Offline

#10 2022-10-03 22:20:59

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 506

Re: Delphi FMX Android client?

ab wrote:

IIRC the shortstring type is not supported any more on iOS/Android.

And we use it in a lot of places.

I made a simple test for android an debugged it:

var
  LShortString : string[10];
begin
  LShortString := '123456';
  if Length(LShortString) = ord(LShortString[0]) then
    LShortString := 'correct';

This works on Android and Debugger shows array with dimension 11 where first byte is length. In this case the last 4 byte are randomly filled.
So it could work on android with 11.2


Rad Studio 12.1 Santorini

Offline

#11 2022-10-04 11:41:03

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: Delphi FMX Android client?

It is difficult to me to help without a proper Delphi compiler...

sad

Offline

#12 2022-10-05 06:43:56

dcoun
Member
From: Crete, Greece
Registered: 2020-02-18
Posts: 392

Re: Delphi FMX Android client?

ab wrote:

It is difficult to me to help without a proper Delphi compiler...

sad

Delphi 10.4 community edition is free for not commercial purposes
Its android version is a bit old but only google playstore rejects its executables, you can test it in devices+emulators+amazon playstore+windows 11

Offline

#13 2022-10-05 08:51:46

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: Delphi FMX Android client?

My CE license expired a few years ago, and I failed to renew it.
EMB licensing is a real PITA.

And IIRC 10.4 had no shortstring support.

Offline

#14 2022-10-05 08:59:15

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 506

Re: Delphi FMX Android client?

Yes you need to have 11.x for ShortString Support

I never used CE Version but i think if you request a new one an remove old licence from you system it could work - or do they provide only 10.4 ?


Rad Studio 12.1 Santorini

Offline

#15 2022-10-05 08:59:19

dcoun
Member
From: Crete, Greece
Registered: 2020-02-18
Posts: 392

Re: Delphi FMX Android client?

ab wrote:

My CE license expired a few years ago, and I failed to renew it.
EMB licensing is a real PITA.

And IIRC 10.4 had no shortstring support.

shortstring was renabled in 10.4
CE license can not be renewd from what I read, you have right they are problematic.
You uninstall it and you reinstall it with registry cleared

Last edited by dcoun (2022-10-05 09:01:38)

Offline

#16 2022-10-06 16:24:43

Junior/RO
Member
Registered: 2011-05-13
Posts: 207

Re: Delphi FMX Android client?

@ab you can try renew again. I was able to renew my Delphi community version last week.

Offline

Board footer

Powered by FluxBB