I just found that lockbox 3.6.0 should support Android. However when i look in my palette i see that the codec only supports win32 and win64.
How can i make it work for my android apps also?
Im using Delphi XE7 and have already followed the installation instructions supplied in the package. For a windows app it works just fine.
You have two options:
(1) Run-time
You can always create the components at run-time. There is an example on the website on how to do it, and I copy a fragment of this example below. Just replace the ShowMessage() functions with whatever is appropriate ...
(2) Design-time
A little bit of tweaking is required to get the components onto the palette for Android. This will be done for you in the next version of TPLockbox 3 to be released, but for now, here is the procedure ...
vcl
,vclimg
anddbrtl
from the TPLB3 run-time requirements.libTP_LockBox3_XE7.so
, whereXE7
is a place-marker for your compiler version.Preface the declarations for the two components (TCodec and TCryptographicLibrary) with
This is the key to the whole thing. The
ComponentPlatformsAttribute
attribute declares what platforms should the component be displayed for, on the palette. If not declared, I believe that the default ispidWin32 or pidWin64
, but I cannot point to any official documentation to support this.save-all
before you can successfully compile.Go to the IDE Tools | Options and open the Library Path for the Android platform. Make sure that this path include the location of where you put the dcu files for the Android case. For example, on my installation it is ...
C:\Dev\TPLB\work-products\ephemeral\dcu\XE6\Android
You should physically check this directory. It should have a file named
TPLB3.AES.dcu
and another namedTPLB3.AES.so
for example.