+1 to fil's proposal.
On Wed, Apr 24, 2013 at 2:07 PM, Filip Maj <f...@adobe.com> wrote: > Yeah it is. > > So, Anis and I just chatted on IRC. What about: > > - all source/header/whatever files in iOS land get namespaced under > myApp/Plugins/<plugin-id> > - if the files have a `target-dir` attribute, that attribute gets tacked > onto the end of the namespaced location for plugin native code, I.e. > Plugin with id "foo.bar.baz": > > <source-file src="src/ios/MyPlugin.m" target-dir="emFiles" /> > > Results in > > myApp/Plugins/foo.bar.baz/emFiles/MyPlugin.m > > > > On 4/24/13 1:57 PM, "Shazron" <shaz...@gmail.com> wrote: > > >Never knew of its existence, but if it wasn't doc'ed then removal is no > >problem imo. > >Not sure if this is related: > https://issues.apache.org/jira/browse/CB-2717 > > > > > >On Wed, Apr 24, 2013 at 12:31 PM, Filip Maj <f...@adobe.com> wrote: > > > >> I am wondering what use cases does having a `preserve-dirs` attribute on > >> <source-file> and <header-file> objects help with? I notice that this > >> attribute is ONLY parsed in the iOS plugman handler, and it is not > >> documented as part of the plugin.xml spec. > >> > >> Additionally it seems like plugins in the wild using the plugin spec (I > >> combed through the ones being authored by phonegap build [1], the > >>Mozilla > >> Person one [2], Shaz's keychain plugin [3] and his test flight plugin > >>[4]) > >> don't use this attribute and instead use the > >> target-dir="target/location/inside/cordova/projects" to specify where > >> certain source files should go. > >> > >> Can I safely remove this functionality? > >> > >> [1] https://github.com/phonegap-build > >> [2] > >> > >> > https://github.com/couchbaselabs/cordova-browserid/blob/master/plugin.xml > >> [3] https://github.com/shazron/KeychainPlugin/blob/master/plugin.xml > >> [4] https://github.com/shazron/TestFlightPlugin/blob/master/plugin.xml > >> > >> > >