cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-11233) Support installing frameworks into "Embedded Binaries" section of the Xcode project
Date Sat, 25 Mar 2017 00:30:41 GMT

    [ https://issues.apache.org/jira/browse/CB-11233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15941388#comment-15941388
] 

Shazron Abdullah commented on CB-11233:
---------------------------------------

Looks like if we send the option {{embed: true}} it should do the trick: https://github.com/apache/cordova-ios/blob/7ec3bdb463a5fd806d9d370b294a96f35e361179/bin/templates/scripts/cordova/lib/plugman/pluginHandlers.js#L92

The easiest way to add this is by overloading the {{custom}} attribute: the attribute can
be either boolean (current behaviour) or a string. If  it's a string, it has to be either
{{"dynamic"}} or {{"static"}}. 

Acceptable values for custom attribute:
{{true}} (Boolean) would set customFramework to true, and embed to false (existing behaviour)
{{false}} (Boolean) would set customFramework to false, and embed to false (existing behaviour)
{{"dynamic"}} (String) would set customFramework to true, and embed to true (new behaviour)
{{"static"}} (String) would set customFramework to true, and embed to false (new behaviour,
equivalent to {{true}} above)

> Support installing frameworks into "Embedded Binaries" section of the Xcode project
> -----------------------------------------------------------------------------------
>
>                 Key: CB-11233
>                 URL: https://issues.apache.org/jira/browse/CB-11233
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CordovaLib
>            Reporter: Shazron Abdullah
>
> Right now, this:
> {code}
> <framework src="Foo.framework" custom="true" />
> {code}
> .. links the framework statically into the program.
> There needs to be a similar directive that will install the framework into the "Embedded
Binaries" section of the Xcode project. Frameworks that are installed in the "Embedded Binaries"
section are dynamically loaded when needed by your iOS program.
> Two ways this can be done:
> 1. Overload the "custom" attribute (icky but we won't have to introduce a new attribute)
to be a string, and the new value would be "dynamic"
> 2. Have a new "dynamic" attribute (boolean)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message