couchbaselabs / Couchbase-Lite-PhoneGap-Plugin

Plugin to install Couchbase Lite in your PhoneGap app on iOS or Android
183 stars 67 forks source link

Unable to add plugin to phonegap build #34

Open deefactorial opened 10 years ago

deefactorial commented 10 years ago

I tried to add the plugin to the config.xml file and build the project using the phonegap build service. and got this error:

Unable to create app: plugin unsupported: com.couchbase.lite.phonegap 

Then I tried to add the plugin to user submitted plugins https://build.phonegap.com/plugins#add and got this error.

Compiled binaries are not allowed in user submitted plugins: lib/ios/libCBLJSViewCompiler.a

what's the proper way to include the phonegap plugin in the phonegap build service ?

z-boy commented 10 years ago

Did you ever get any feedback on this? I'm stuck with the same problem.

I have referenced the plugin in phonegap's config.xml as:

<gap:plugin name="com.couchbase.lite.phonegap" version="1.0.2" />

After uploading the sources the build service just says "plugin unsupported: com.couchbase.lite.phonegap @ 1.0.2"

When I try to submit the plugin via the git url I get the message the repo does include compiled files with the ending of *.a

deefactorial commented 10 years ago

I have not received any feeback on this. It seems that phonegap build service doesn't allow plugins to have a compiled binaries included in them. The prefered method is to compile them in the build process. Currently the IOS code has static binaries in the plugin, This issue is related to issue #39 .

Does anyone know where the source code for the IOS plugin is located ?

jeffsco commented 10 years ago

As far as I can tell, the Couchbase Lite plugin needs to be "submitted" to the PhoneGap/Build project, if you want to use it with PhoneGap/Build. Once submitted and approved, it can be used by all PhoneGap/Build users. Here's a link:

http://docs.build.phonegap.com/en_US/developer_contributing_plugins.md.html

I'm working on a research project at a university (Univ of Washington) and we'd love to see this happen.

deefactorial commented 10 years ago

@jeffsco if you see my original post it says the error when you submit the plugin is:

Compiled binaries are not allowed in user submitted plugins: lib/ios/libCBLJSViewCompiler.a

jeffsco commented 10 years ago

This makes sense: Adobe wants to be able to check over the source, I assume. I'm wondering what happens if you submit source code instead. I don't want to do this myself, as it seems like something CouchBaseLabs should be in charge of. (Or I could be misunderstanding how PhoneGap/Build works; I'm pretty new at it.) Thanks!