fabriciocolombo / delphi-rest-client-api

A Delphi REST client API to consume REST services written in any programming language.
Apache License 2.0
380 stars 182 forks source link

Support iOS #12

Closed sandeepc24 closed 11 years ago

sandeepc24 commented 11 years ago

This does not work for iOS as it is pulling in VCL, I am not sure why VCL should be required for this.

fabriciocolombo commented 11 years ago

The WinHTTP unit was added to the package improperly. This may be the problem. Remove the unit from the package and disable the options USE_WIN_HTTP and USE_WIN_INET in the DelphiRest.inc file.

sandeepc24 commented 11 years ago

I tried the latest version but it still doesn't compile for iOS as it is still complaining with following errors in SuperObject. [DCC Error] superobject.pas(640): E2154 Type 'TSuperTableString' needs finalization - not allowed in variant record [DCC Error] superobject.pas(641): E2154 Type 'TSuperArray' needs finalization - not allowed in variant record

fabriciocolombo commented 11 years ago

This is a problem in the SuperObject framework. There are registered issues in https://code.google.com/p/superobject/issues/list.

Probably will need to use another json library for iOS.

fabriciocolombo commented 11 years ago

I wrote a new marshal and unmarshal based on DBXJson. I can not test with iOS here, I need you to test and check if there is any incompatibility yet.

sandeepc24 commented 11 years ago

I tried compiling the package for iOS but it didn't compile as VCL package is still used. Ithink you need to remove dependency on VCL for it to work for iOS.