Recent

Author Topic: LAMW: 32 and 64 bit libraries in APK to comply with Google Play policy  (Read 418 times)

Manlio

  • New member
  • *
  • Posts: 29
  • Pascal dev
In less than 3 months Google Play will require APKs to include both 32 and 64 bit version of .so libraries.

https://developer.android.com/distribute/best-practices/develop/64-bit

Is there going to be a way for LAMW to somehow handle that automatically? Or at least semi-automatically? Or can someone explain all the steps to prepare an APK with both 32 and 64 bit versions?

Thanks!
manlio mazzon gmail

jmpessoa

  • Hero Member
  • *****
  • Posts: 1358

Good question!

I will try some LAMW solution!

Thanks!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 1358
Done!

Improved build for other chipset!

How to get more ".so" chipset builds:

   :: Warning 1: Your Lazarus/Freepascal needs to be prepared [cross-compile] for the various chipset builds!
   :: Warning 2: Laz4Android [out-of-box] support only 32 Bits chipset: "armV6", "armV7a+Soft", "x86"

1. From LazarusIDE menu:

   > Project -> Project Options -> Project Options -> [LAMW] Android Project Options -> "Build" -> Chipset [select!] -> [OK]

2. From LazarusIDE  menu:

   > Run -> Clean up and Build...

3. From LazarusIDE menu:

   > [LAMW] Build Android Apk and Run


Thank You!
« Last Edit: May 18, 2019, 10:39:09 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

WayneSherman

  • Jr. Member
  • **
  • Posts: 57
Done!
Improved build for other chipset!

1. From LazarusIDE menu:

   > Project -> Project Options -> Project Options -> [LAMW] Android Project Options -> "Build" -> Chipset [select!] -> [OK]

jmpessoa, well done.  I just tested on Xubuntu 18.04 (with aarch64 cross-compiler installed using Fpcupdeluxe).  It works with a simple test project (form and edit box).  Thanks for making those additions for 64-bit support.

« Last Edit: May 20, 2019, 07:30:21 pm by WayneSherman »

TR3E

  • New member
  • *
  • Posts: 38
    • TR3E Software
In windows does not work? or how would you have to configure it?

jmpessoa

  • Hero Member
  • *****
  • Posts: 1358
Quote
In windows does not work? or how would you have to configure it?

 -->> Warning 2: Laz4Android [out-of-box] support only 32 Bits chipset: "armV6", "armV7a+Soft", "x86" ....

I - Windows

1) Improve the Laz4Android distro...  [mid-term?]

I am trying .... 

Go to Lazarus IDE... menu

"Tools" --> "[LAMW] Android Module Wizard"

    --> Get FPC Source [Trunk]
    --> Build FPC Cross Android           
                                                 
  • Aarch64

Need tests!!  and  possibly fix some errors ...  [sorry...]

2) Building a new "Lazarus" environment using "Fpcupdeluxe"  and adding several/some cross-compiles

II - Linux  [edited!]
 
1)How to by Wayne:

https://forum.lazarus.freepascal.org/index.php/topic,40750.msg321687]

2) Building a new "Lazarus" environment using "Fpcupdeluxe"  and adding several/some cross-compiles
« Last Edit: May 20, 2019, 09:06:14 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard