DelphiMistralAI icon indicating copy to clipboard operation
DelphiMistralAI copied to clipboard

unit MistralAI.Httpx; need windows unit <> not usable on android

Open herveescriou opened this issue 7 months ago • 1 comments

is it possible to add a directive to have compatibilty with android and ios ?

unit MistralAI.Httpx;

{-------------------------------------------------------------------------------

  Github repository :  https://github.com/MaxiDonkey/DelphiMistralAI
  Visit the Github repository for the documentation and use examples

------------------------------------------------------------------------------}

interface

uses {$ifdef mswindows} Winapi.Windows, Winapi.ShellAPI, {$endif} System.SysUtils, System.Classes, System.Net.URLClient, System.Net.HttpClient, System.Net.HttpClientComponent, System.NetEncoding;

herveescriou avatar Sep 18 '25 22:09 herveescriou

Thank you for your suggestion!

The library is already designed to be cross-platform. All the main units (System.Net.*, System.SysUtils, etc.) are supported on Android and iOS, and any Windows-specific dependencies are wrapped in conditional directives.

Please also refer to the detailed answer I provided in the following issue https://github.com/MaxiDonkey/DelphiMistralAI/issues/3

MaxiDonkey avatar Sep 19 '25 08:09 MaxiDonkey