PhoneGap Android Jenkins build

187 views
Skip to first unread message

J. Chris Anderson

unread,
May 7, 2014, 4:15:07 PM5/7/14
to mobile-c...@googlegroups.com
The big green dot means we got Jenkins to make a PhoneGap plugin with the latest Android security fixes: http://factory.couchbase.com/view/build/view/mobile_dev/job/package_phonegap_plugin/25/ 

(it's still using an older iOS build but should be trivial to build with the latest iOS now, if someone helps me know what I should build from.)  I can also easily change the build script to take an arbitrary URL for the iOS zip file (like Android) rather than constructing the download URL in the script from parameters.

fwiw, Traun put this Android PhoneGap plugin (+beta2 iOS) zip up on s3: http://tleyden-misc.s3.amazonaws.com/couchbase-lite/Couchbase-Lite-PhoneGap-Plugin_1.0-25.zip


There's still work to be done on the plugin builder script but at least now it's not dependent on my laptop. :)

Sjoerd

unread,
May 8, 2014, 9:57:56 AM5/8/14
to mobile-c...@googlegroups.com
Congrats, seems like a major step forward!

I'm looking forward to start supporting Android for my app, thanks for making that possible. Till now the absence of an official phonegap build for Android made me wait. Awesome!

Sjoerd / ssured

Bart Arribe

unread,
May 15, 2014, 9:17:54 AM5/15/14
to mobile-c...@googlegroups.com
Hi all,

Congrats, it's a fine work :)

Just a thing, I've just tried this new version of the plugin on the todo-Lite example. It seems there is a bug now with the views when I try to do a GET to display the list of todo lists as you can see in the logs on logcat below.


05-15 13:57:52.790: W/View(6146): Failed to rebuild view todo9/lists.  Result code: 500
05-15 13:57:52.790: E/Router(6146): Router unable to route request to do_GET_DesignDocument
05-15 13:57:52.790: E/Router(6146): java.lang.reflect.InvocationTargetException
05-15 13:57:52.790: E/Router(6146): at java.lang.reflect.Method.invokeNative(Native Method)
05-15 13:57:52.790: E/Router(6146): at java.lang.reflect.Method.invoke(Method.java:515)
05-15 13:57:52.790: E/Router(6146): at com.couchbase.lite.router.Router.start(Router.java:464)
05-15 13:57:52.790: E/Router(6146): at com.couchbase.lite.listener.LiteServlet.service(LiteServlet.java:128)
05-15 13:57:52.790: E/Router(6146): at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
05-15 13:57:52.790: E/Router(6146): at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2251)
05-15 13:57:52.790: E/Router(6146): at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2176)
05-15 13:57:52.790: E/Router(6146): at Acme.Serve.Serve$ServeConnection.run(Serve.java:1988)
05-15 13:57:52.790: E/Router(6146): at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)
05-15 13:57:52.790: E/Router(6146): at java.lang.Thread.run(Thread.java:841)
05-15 13:57:52.790: E/Router(6146): Caused by: android.database.CursorIndexOutOfBoundsException: Index 1 requested, with a size of 1
05-15 13:57:52.790: E/Router(6146): at android.database.AbstractCursor.checkPosition(AbstractCursor.java:426)
05-15 13:57:52.790: E/Router(6146): at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
05-15 13:57:52.790: E/Router(6146): at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:74)
05-15 13:57:52.790: E/Router(6146): at com.couchbase.lite.android.AndroidSQLiteStorageEngine$SQLiteCursorWrapper.getLong(AndroidSQLiteStorageEngine.java:189)
05-15 13:57:52.790: E/Router(6146): at com.couchbase.lite.View.updateIndex(View.java:471)
05-15 13:57:52.790: E/Router(6146): at com.couchbase.lite.router.Router.queryDesignDoc(Router.java:1683)
05-15 13:57:52.790: E/Router(6146): at com.couchbase.lite.router.Router.do_GET_DesignDocument(Router.java:1714)
05-15 13:57:52.790: E/Router(6146): ... 10 more

Do you have the same error than me? 
How would you solve it? 
Do I need to file an issue on Github?

Regards
Bart

J. Chris Anderson

unread,
May 16, 2014, 4:15:03 PM5/16/14
to mobile-c...@googlegroups.com
Please file an issue on Github.

I didn't see this in my quick test but I only used a Nexus 7.

There will be an updated PhoneGap plugin by early next week, I'll update this thread when I push it.

Chris

Bart Arribe

unread,
May 21, 2014, 8:22:21 AM5/21/14
to mobile-c...@googlegroups.com
Hi,

I filed an issue.
I don't know if it comes from the phonegap plugin as well. As written on the issue, I am currently using cordova 3.3.

Bart
Reply all
Reply to author
Forward
0 new messages