Mailing lists / fpc-other / 2021-07
target Android 10 (API level 29) and ppcjvm classes compatibility
3 messages · 2 people · –
- MMgr. Janusz Chmiel 2
- JJonas Maebe 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
I have A good news. For all of us who would like to code in Pascal by using Pandroid for Windows package available on Github here.
https://github.com/zeljkoc/PandroidPackage
By default, Android 15 target is being used as a target. It is not very pleasant, if you plan to publish on Google Play. It is necessary to compile by using Android 29 API target as a minimum target Android API. Fortunately for Me, complex issue did not occur. So you only have to modify pandroid.ini. And You must specify Android 29 target by editing this .ini file. You must add Android29 folder content from predownloaded Android SDK folder tree to The \pandroid\sdk\platforms
I Am using Android25 Pascal header files, because Android29 Api headers do not support some Pascal source code lines when overide word is being used. Sure, I know, that Pascal systém libraryes are still generated by using Android 15 Pascal header files. But formally, The Google Play requirements are satisfied. Because I have used android29 target APIS to build classes.
Mgr. Janusz Chmiel wrote 8 lines
Indeed, that should be fine. The FPC run time library only uses very basic Java APIs, which normally will not change between different Android versions. So you should always be able to use the standard FPC run time library in combination with newer versions of the Android API headers without any problems.
Jonas
