diff --git a/src/Notify.Core.pas b/src/Notify.Core.pas index 1898a46..746077c 100644 --- a/src/Notify.Core.pas +++ b/src/Notify.Core.pas @@ -63,8 +63,10 @@ TNotifyCore = class sealed(TInterfacedObject, INotifyCore) function Response: TNotifyApiResponse; procedure BasicValidation; procedure DoLoadLibrary; - procedure LoadLibraries(const ALibName: String); procedure WithAuthentication; + {$IF DEFINED(NTFY_HTTP_INDY)} + procedure LoadLibraries(const ALibName: String); + {$IFEND} end; implementation @@ -80,8 +82,10 @@ implementation Notify.Action.DTO, Notify.Attachment.DTO, Notify.Action.Contract, - Notify.Attachment.Contract, - Winapi.Windows; + Notify.Attachment.Contract + {$IF DEFINED(NTFY_HTTP_INDY)} + Winapi.Windows + {$IFEND}; { TNotifyCore } @@ -251,6 +255,7 @@ procedure TNotifyCore.ConsoleLogEvent; end; +{$IF DEFINED(NTFY_HTTP_INDY)} procedure TNotifyCore.LoadLibraries(const ALibName: String); var LSavedCW: Word; @@ -273,6 +278,7 @@ procedure TNotifyCore.LoadLibraries(const ALibName: String); raise Exception.Create(Format('Could not load %s library. Errors: %s', [ALibName, LError])); end end; +{$IFEND} function TNotifyCore.LogPath(const AValue: String): INotifyCore; begin