Permalink
Browse files

works but we need for the initial db content to load first

  • Loading branch information...
0 parents commit 72d8c3b7185cf9f61937d94d6736bd1ad586f922 @jchris jchris committed Aug 4, 2011
Showing with 580 additions and 0 deletions.
  1. +10 −0 .classpath
  2. +40 −0 .project
  3. +22 −0 AndroidManifest.xml
  4. BIN assets/release-0.1.tgz.jpg
  5. BIN bin/HelloWorld.apk
  6. BIN bin/classes.dex
  7. BIN bin/com/couchbase/helloworld/HelloWorldActivity$1.class
  8. BIN bin/com/couchbase/helloworld/HelloWorldActivity.class
  9. BIN bin/com/couchbase/helloworld/R$attr.class
  10. BIN bin/com/couchbase/helloworld/R$drawable.class
  11. BIN bin/com/couchbase/helloworld/R$id.class
  12. BIN bin/com/couchbase/helloworld/R$layout.class
  13. BIN bin/com/couchbase/helloworld/R$string.class
  14. BIN bin/com/couchbase/helloworld/R.class
  15. BIN bin/com/couchbase/libcouch/AndCouch.class
  16. BIN bin/com/couchbase/libcouch/CouchDB$1.class
  17. BIN bin/com/couchbase/libcouch/CouchDB.class
  18. BIN bin/com/couchbase/libcouch/CouchInstaller.class
  19. BIN bin/com/couchbase/libcouch/CouchProcess$1.class
  20. BIN bin/com/couchbase/libcouch/CouchProcess.class
  21. BIN bin/com/couchbase/libcouch/CouchService$1.class
  22. BIN bin/com/couchbase/libcouch/CouchService$2.class
  23. BIN bin/com/couchbase/libcouch/CouchService$CouchServiceImpl.class
  24. BIN bin/com/couchbase/libcouch/CouchService.class
  25. BIN bin/com/couchbase/libcouch/HTTPRequest.class
  26. BIN bin/com/couchbase/libcouch/ICouchClient$Stub$Proxy.class
  27. BIN bin/com/couchbase/libcouch/ICouchClient$Stub.class
  28. +12 −0 bin/com/couchbase/libcouch/ICouchClient.aidl
  29. BIN bin/com/couchbase/libcouch/ICouchClient.class
  30. BIN bin/com/couchbase/libcouch/ICouchService$Stub$Proxy.class
  31. BIN bin/com/couchbase/libcouch/ICouchService$Stub.class
  32. +16 −0 bin/com/couchbase/libcouch/ICouchService.aidl
  33. BIN bin/com/couchbase/libcouch/ICouchService.class
  34. BIN bin/com/couchbase/libcouch/R$attr.class
  35. BIN bin/com/couchbase/libcouch/R$drawable.class
  36. BIN bin/com/couchbase/libcouch/R$id.class
  37. BIN bin/com/couchbase/libcouch/R$layout.class
  38. BIN bin/com/couchbase/libcouch/R$string.class
  39. BIN bin/com/couchbase/libcouch/R.class
  40. BIN bin/com/google/ase/Exec.class
  41. BIN bin/resources.ap_
  42. +12 −0 default.properties
  43. +31 −0 gen/com/couchbase/helloworld/R.java
  44. +153 −0 gen/com/couchbase/libcouch/ICouchClient.java
  45. +132 −0 gen/com/couchbase/libcouch/ICouchService.java
  46. +31 −0 gen/com/couchbase/libcouch/R.java
  47. +40 −0 proguard.cfg
  48. BIN res/drawable-hdpi/icon.png
  49. BIN res/drawable-ldpi/icon.png
  50. BIN res/drawable-mdpi/icon.png
  51. +12 −0 res/layout/main.xml
  52. +5 −0 res/values/strings.xml
  53. +64 −0 src/com/couchbase/helloworld/HelloWorldActivity.java
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="src" path="LibCouch_src"/>
+ <classpathentry kind="lib" path="/LibCouch/lib/commons-compress-1.0.jar"/>
+ <classpathentry kind="lib" path="/LibCouch/lib/commons-io-2.0.1.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>HelloWorld</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+ <linkedResources>
+ <link>
+ <name>LibCouch_src</name>
+ <type>2</type>
+ <locationURI>_android_LibCouch_3466ec49/src</locationURI>
+ </link>
+ </linkedResources>
+</projectDescription>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.couchbase.helloworld"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <uses-sdk android:minSdkVersion="10" />
+ <uses-permission android:name="android.permission.INTERNET"></uses-permission>
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
+
+ <application android:icon="@drawable/icon" android:label="@string/app_name">
+ <activity android:name=".HelloWorldActivity"
+ android:label="@string/app_name">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ <service android:name="com.couchbase.libcouch.CouchService" android:enabled="true" android:exported="false"></service>
+
+ </application>
+</manifest>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,12 @@
+package com.couchbase.libcouch;
+
+interface ICouchClient
+{
+ /* Callback to notify when CouchDB has started */
+ void couchStarted(String host, int port);
+
+ /* Callback for notifications on how the CouchDB install is progressing */
+ void installing(int completed, int total);
+
+ void exit(String error);
+}
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,16 @@
+package com.couchbase.libcouch;
+
+import com.couchbase.libcouch.ICouchClient;
+
+interface ICouchService
+{
+ /* Starts couchDB, calls "couchStarted" callback when
+ * complete
+ */
+ void initCouchDB(ICouchClient callback, String url, String pkg);
+
+ /*
+ *
+ */
+ void quitCouchDB();
+}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,12 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "build.properties", and override values to adapt the script to your
+# project structure.
+
+# Project target.
+target=Google Inc.:Google APIs:10
+android.library.reference.1=../../mobile/Android-Couchbase/libcouch-android
@@ -0,0 +1,31 @@
+/* AUTO-GENERATED FILE. DO NOT MODIFY.
+ *
+ * This class was automatically generated by the
+ * aapt tool from the resource data it found. It
+ * should not be modified by hand.
+ */
+
+package com.couchbase.helloworld;
+
+public final class R {
+ public static final class attr {
+ }
+ public static final class drawable {
+ public static final int icon=0x7f020000;
+ }
+ public static final class id {
+ public static final int install_couchdb_btn=0x7f050001;
+ public static final int install_couchdb_text=0x7f050000;
+ }
+ public static final class layout {
+ public static final int install_couchdb=0x7f030000;
+ public static final int main=0x7f030001;
+ public static final int missing_couchapp=0x7f030002;
+ }
+ public static final class string {
+ public static final int app_name=0x7f040000;
+ public static final int hello=0x7f040003;
+ public static final int install_couchdb=0x7f040001;
+ public static final int missing_couchapp=0x7f040002;
+ }
+}
@@ -0,0 +1,153 @@
+/*
+ * This file is auto-generated. DO NOT MODIFY.
+ * Original file: /Users/jchrisa/code/mobile/Android-Couchbase/libcouch-android/src/com/couchbase/libcouch/ICouchClient.aidl
+ */
+package com.couchbase.libcouch;
+public interface ICouchClient extends android.os.IInterface
+{
+/** Local-side IPC implementation stub class. */
+public static abstract class Stub extends android.os.Binder implements com.couchbase.libcouch.ICouchClient
+{
+private static final java.lang.String DESCRIPTOR = "com.couchbase.libcouch.ICouchClient";
+/** Construct the stub at attach it to the interface. */
+public Stub()
+{
+this.attachInterface(this, DESCRIPTOR);
+}
+/**
+ * Cast an IBinder object into an com.couchbase.libcouch.ICouchClient interface,
+ * generating a proxy if needed.
+ */
+public static com.couchbase.libcouch.ICouchClient asInterface(android.os.IBinder obj)
+{
+if ((obj==null)) {
+return null;
+}
+android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);
+if (((iin!=null)&&(iin instanceof com.couchbase.libcouch.ICouchClient))) {
+return ((com.couchbase.libcouch.ICouchClient)iin);
+}
+return new com.couchbase.libcouch.ICouchClient.Stub.Proxy(obj);
+}
+public android.os.IBinder asBinder()
+{
+return this;
+}
+@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
+{
+switch (code)
+{
+case INTERFACE_TRANSACTION:
+{
+reply.writeString(DESCRIPTOR);
+return true;
+}
+case TRANSACTION_couchStarted:
+{
+data.enforceInterface(DESCRIPTOR);
+java.lang.String _arg0;
+_arg0 = data.readString();
+int _arg1;
+_arg1 = data.readInt();
+this.couchStarted(_arg0, _arg1);
+reply.writeNoException();
+return true;
+}
+case TRANSACTION_installing:
+{
+data.enforceInterface(DESCRIPTOR);
+int _arg0;
+_arg0 = data.readInt();
+int _arg1;
+_arg1 = data.readInt();
+this.installing(_arg0, _arg1);
+reply.writeNoException();
+return true;
+}
+case TRANSACTION_exit:
+{
+data.enforceInterface(DESCRIPTOR);
+java.lang.String _arg0;
+_arg0 = data.readString();
+this.exit(_arg0);
+reply.writeNoException();
+return true;
+}
+}
+return super.onTransact(code, data, reply, flags);
+}
+private static class Proxy implements com.couchbase.libcouch.ICouchClient
+{
+private android.os.IBinder mRemote;
+Proxy(android.os.IBinder remote)
+{
+mRemote = remote;
+}
+public android.os.IBinder asBinder()
+{
+return mRemote;
+}
+public java.lang.String getInterfaceDescriptor()
+{
+return DESCRIPTOR;
+}
+/* Callback to notify when CouchDB has started */
+public void couchStarted(java.lang.String host, int port) throws android.os.RemoteException
+{
+android.os.Parcel _data = android.os.Parcel.obtain();
+android.os.Parcel _reply = android.os.Parcel.obtain();
+try {
+_data.writeInterfaceToken(DESCRIPTOR);
+_data.writeString(host);
+_data.writeInt(port);
+mRemote.transact(Stub.TRANSACTION_couchStarted, _data, _reply, 0);
+_reply.readException();
+}
+finally {
+_reply.recycle();
+_data.recycle();
+}
+}
+/* Callback for notifications on how the CouchDB install is progressing */
+public void installing(int completed, int total) throws android.os.RemoteException
+{
+android.os.Parcel _data = android.os.Parcel.obtain();
+android.os.Parcel _reply = android.os.Parcel.obtain();
+try {
+_data.writeInterfaceToken(DESCRIPTOR);
+_data.writeInt(completed);
+_data.writeInt(total);
+mRemote.transact(Stub.TRANSACTION_installing, _data, _reply, 0);
+_reply.readException();
+}
+finally {
+_reply.recycle();
+_data.recycle();
+}
+}
+public void exit(java.lang.String error) throws android.os.RemoteException
+{
+android.os.Parcel _data = android.os.Parcel.obtain();
+android.os.Parcel _reply = android.os.Parcel.obtain();
+try {
+_data.writeInterfaceToken(DESCRIPTOR);
+_data.writeString(error);
+mRemote.transact(Stub.TRANSACTION_exit, _data, _reply, 0);
+_reply.readException();
+}
+finally {
+_reply.recycle();
+_data.recycle();
+}
+}
+}
+static final int TRANSACTION_couchStarted = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
+static final int TRANSACTION_installing = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
+static final int TRANSACTION_exit = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
+}
+/* Callback to notify when CouchDB has started */
+public void couchStarted(java.lang.String host, int port) throws android.os.RemoteException;
+/* Callback for notifications on how the CouchDB install is progressing */
+public void installing(int completed, int total) throws android.os.RemoteException;
+public void exit(java.lang.String error) throws android.os.RemoteException;
+}
Oops, something went wrong.

0 comments on commit 72d8c3b

Please sign in to comment.