Jump to content

Dmitry Sh.

Members
  • Content Count

    10
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Dmitry Sh.

  1. Dmitry Sh.

    Delphi 12 IDE, auto-formatter mutilates generics

    https://github.com/cnpack/cnwizards
  2. Dmitry Sh.

    Android SDK not installed

    cmdline-tools\latest\bin\sdkmanager "platforms;android-33" "build-tools;33.0.2" "platform-tools"
  3. Dmitry Sh.

    FMX custom control development

    Some interesting articles by Yaroslav Brovin (the author of FGX Native and former FMX developer). http://yaroslavbrovin.ru/new-approach-of-development-of-firemonkey-control-control-model-presentation-part-1-ru/
  4. Dmitry Sh.

    Delphi 11.3 is available now!

    Interesting.... The source files are different in the Pro and Ent versions. For example. The header in the pas files in Pro has the dates { Copyright(c) 2004-2022 Embarcadero Technologies, Inc. } In the same files in Ent version. { Copyright(c) 2004-2023 Embarcadero Technologies, Inc. } Looks like the older files in the Pro version. Can anyone check this?
  5. Dmitry Sh.

    Delphi 10.4.2 CE support Android API 30

    it's my mistake. post corrected.
  6. Dmitry Sh.

    Delphi 10.4.2 CE support Android API 30

    For sign apk by Jarsigner ( APK Signature Scheme v2 ) you need: 1. Edit CodeGear.Deployment.Targets add section <Target Name="_AndroidApkSigner" Condition="('$(Platform)'=='$(cAndroid32ArmPlatform)' Or '$(Platform)'=='$(cAndroid64ArmPlatform)') And '$(KeyStoreFile)'!='' And '$(AndroidAppBundle)'=='false'"> <Message Text="Start Apk Signer."/> <Exec Command="&quot;$(ApkSigner)&quot; sign --ks $(KeyStoreFile) --ks-pass pass:$(KeyStorePass) $(SIGNED_APK_FILENAME)" ContinueOnError="True"> <Output TaskParameter="ExitCode" PropertyName="ErrorCode"/> <Output TaskParameter="StdOutEncoding" PropertyName="StdOut"/> </Exec> </Target> 2. add line _AndroidApkSigner; in section <DeployDependsOnTargets> <PropertyGroup> <DeployDependsOnTargets> ... _CheckKeyStore; _AndroidSign; _AndroidZipAlign; _AndroidApkSigner; _CheckAPKFileOutputResult; _CheckAABFileOutputResult; _DeleteAndroidAssetsInfoFile; ... </DeployDependsOnTargets> 3. Create New IDE Environment Variable ApkSigner with value (SDK path)\android-sdk-windows\build-tools\29.0.2\apksigner.bat Thanks to Stas for this solution diff for file CodeGear.Deployment.Targets
  7. Sorry, it's part of my patches for LangjiApp/Wke4Delphi. You can find my repo on https://github.com/dshumko/WKE4Delphi
  8. try send 'Accept-Language: en-us,en' on load event example: function DoOnLoadUrlBegin(WebView: wkeWebView; param: Pointer; url: PansiChar; job: Pointer): boolean; cdecl; var bhook, bHandled: boolean; begin wkeNetSetHTTPHeaderField(job, PwideChar('Accept-Language'), PWideChar('en-us,en'), False);
  9. Dmitry Sh.

    FireBird tool, Coworker doing this, 2.0 just released

    Wrong charset on objects description and procedure body (v3.0.0) SET SQL DIALECT 3; SET NAMES UTF8; CREATE DATABASE 'TEST_DESC.FDB' USER 'SYSDBA' PASSWORD 'masterkey' PAGE_SIZE 8192 DEFAULT CHARACTER SET UTF8 COLLATION UTF8; CREATE TABLE NEW_TABLE (NEW_FIELD INTEGER); SET TERM ^ ; CREATE OR ALTER PROCEDURE NEW_PROCEDURE (IN_PARAM INTEGER) RETURNS (OUT_PARAM INTEGER) AS begin /* тело процедуры / proc body */ end^ SET TERM ; ^ COMMENT ON TABLE NEW_TABLE IS 'Описание талицы / Desc table'; COMMENT ON PROCEDURE NEW_PROCEDURE IS 'Описание пр. / Desc proc'; COMMENT ON COLUMN NEW_TABLE.NEW_FIELD IS 'Описание поля / Desc field'; COMMENT ON PROCEDURE PARAMETER NEW_PROCEDURE.IN_PARAM IS 'Описание вх. парам. / Desc inp. param'; COMMENT ON PROCEDURE PARAMETER NEW_PROCEDURE.OUT_PARAM IS 'Описание вых. парам. / Desc out. param';
  10. You must control transaction under Firebird ... ReadTransaction.Connection := FDConnection1; ReadTransaction.Options.ReadOnly := True; ReadTransaction.Options.Isolation := xiReadCommitted; ... SelectQuery.Transaction := ReadTransaction; http://docwiki.embarcadero.com/RADStudio/Rio/en/Managing_Transactions_(FireDAC)
×