|
@@ -12,8 +12,9 @@
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
**********************************************************************}
|
|
|
-
|
|
|
-unit fpfcmsender;
|
|
|
+{$IFNDEF FPC_DOTTEDUNITS}
|
|
|
+unit fpfcmclient;
|
|
|
+{$ENDIF}
|
|
|
|
|
|
{$mode ObjFPC}{$H+}
|
|
|
{$modeswitch typehelpers}
|
|
@@ -21,8 +22,12 @@ unit fpfcmsender;
|
|
|
|
|
|
interface
|
|
|
|
|
|
-uses
|
|
|
+uses
|
|
|
+{$IFDEF FPC_DOTTEDUNITS}
|
|
|
+ System.Classes, System.SysUtils, FpJson.Data, Jwt.Types, Fcm.Types, FpWeb.Client, System.Types;
|
|
|
+{$ELSE}
|
|
|
Classes, SysUtils, fpjson, fpjwt, fpfcmtypes, fpwebclient, types;
|
|
|
+{$ENDIF}
|
|
|
|
|
|
type
|
|
|
TFCMErrorStage = (esConfig, esAccessToken, esPost);
|
|
@@ -145,7 +150,11 @@ type
|
|
|
|
|
|
implementation
|
|
|
|
|
|
+{$IFDEF FPC_DOTTEDUNITS}
|
|
|
+uses System.DateUtils, FpWeb.Http.Protocol, Fcm.Strings, Jwt.Jwa.Rsa, System.Hash.Pem;
|
|
|
+{$ELSE}
|
|
|
uses dateutils, httpprotocol, fpfcmstrings, fpjwarsa, fppem;
|
|
|
+{$ENDIF}
|
|
|
|
|
|
|
|
|
{ TFCMErrorStageHelper }
|