Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Can we organize use package (.bpl) for FireMonkey app in Android or iOS



Permlink Replies: 4 - Last Post: Nov 9, 2017 12:40 PM Last Post By: Dave Nottage
Chee Yang Chau

Posts: 10
Registered: 3/16/00
Can we organize use package (.bpl) for FireMonkey app in Android or iOS
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 9, 2017 1:17 AM
Delphi Win32 and Win64 project allow us using package file (.bpl) at runtime.

Can we use package file in FireMonkey runtime for iOS or Android ?

--
Best regards,
Chau Chee Yang
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: Can we organize use package (.bpl) for FireMonkey app in Android or iOS
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 9, 2017 2:16 AM   in response to: Chee Yang Chau in response to: Chee Yang Chau
Chee Yang Chau wrote:

Delphi Win32 and Win64 project allow us using package file (.bpl) at runtime.

Can we use package file in FireMonkey runtime for iOS or Android ?

Defintely not for iOS. Even if you could, you'd be defeating the purpose of packages (sharing code among applications)
due to sandboxing.

Why do you want to be able to?

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com
Chee Yang Chau

Posts: 10
Registered: 3/16/00
Re: Can we organize use package (.bpl) for FireMonkey app in Android or iOS
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 9, 2017 7:14 AM   in response to: Dave Nottage in response to: Dave Nottage
Defintely not for iOS. Even if you could, you'd be defeating the purpose of packages (sharing code among applications)
due to sandboxing.

Why do you want to be able to?

It is mainly for source code management. For example, if there are some home grown libraries that may reuse or share among different FireMonkey project. Adding or doing changes to the libraries unit files, I don't need to add or remove unit in different project.

--
Best regards,
Chau Chee Yang

Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Can we organize use package (.bpl) for FireMonkey app in Android or iOS
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 9, 2017 9:49 AM   in response to: Chee Yang Chau in response to: Chee Yang Chau
Chee Yang Chau wrote:

It is mainly for source code management. For example, if there are
some home grown libraries that may reuse or share among different
FireMonkey project. Adding or doing changes to the libraries unit
files, I don't need to add or remove unit in different project.

You can certainly create packages that are shared amongst multiple
projects. Just don't compile those projects with Runtime Packages
enabled, so packages get statically compiled into the final executable
instead of using BPLs at runtime.

--
Remy Lebeau (TeamB)
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: Can we organize use package (.bpl) for FireMonkey app in Android or iOS
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 9, 2017 12:40 PM   in response to: Chee Yang Chau in response to: Chee Yang Chau
Chee Yang Chau wrote:

It is mainly for source code management. For example, if there are some home grown libraries that may reuse or share
among different FireMonkey project. Adding or doing changes to the libraries unit files, I don't need to add or
remove unit in different project.

I do this myself by using projects, rather than packages. The projects output the DCUs to common folders (dependent on
the version of Delphi, platform and config), and the projects that "use" them have paths pointing to those folders.

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02