package org.odk.collect.android.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Patient details.
 */
public final class Patient implements Parcelable {

    // TODO: Document this field.
    public final String uuid;
    // TODO: Document this field.
    public final String id;
    public final String givenName;
    public final String familyName;

    public Patient(String uuid, String id, String givenName, String familyName) {
        this.uuid = uuid;
        this.id = id;
        this.givenName = givenName;
        this.familyName = familyName;
    }

    protected Patient(Parcel in) {
        uuid = in.readString();
        id = in.readString();
        givenName = in.readString();
        familyName = in.readString();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(uuid);
        dest.writeString(id);
        dest.writeString(givenName);
        dest.writeString(familyName);
    }

    public static final Parcelable.Creator<Patient> CREATOR = new Parcelable.Creator<Patient>() {
        @Override
        public Patient createFromParcel(Parcel in) {
            return new Patient(in);
        }

        @Override
        public Patient[] newArray(int size) {
            return new Patient[size];
        }
    };
}

package org.odk.collect.android.model;

import android.os.Parcelable;

import auto.parcel.AutoParcel;

/**
 * An object that represents a patient.
 */
@AutoParcel
public abstract class Patient implements Parcelable {

    public abstract String getUuid();
    public abstract String getId();
    public abstract String getGivenName();
    public abstract String getFamilyName();

    public static Patient create(String uuid, String id, String givenName, String familyName) {
        return new AutoParcel_Patient(uuid, id, givenName, familyName);
    }
}

--- 
+++ 
@@ -1,21 +1,56 @@
 package org.odk.collect.android.model;
 
+import android.os.Parcel;
 import android.os.Parcelable;
 
-import auto.parcel.AutoParcel;
+/**
+ * Patient details.
+ */
+public final class Patient implements Parcelable {
 
-/**
- * An object that represents a patient.
- */
-@AutoParcel
-public abstract class Patient implements Parcelable {
+    // TODO: Document this field.
+    public final String uuid;
+    // TODO: Document this field.
+    public final String id;
+    public final String givenName;
+    public final String familyName;
 
-    public abstract String getUuid();
-    public abstract String getId();
-    public abstract String getGivenName();
-    public abstract String getFamilyName();
+    public Patient(String uuid, String id, String givenName, String familyName) {
+        this.uuid = uuid;
+        this.id = id;
+        this.givenName = givenName;
+        this.familyName = familyName;
+    }
 
-    public static Patient create(String uuid, String id, String givenName, String familyName) {
-        return new AutoParcel_Patient(uuid, id, givenName, familyName);
+    protected Patient(Parcel in) {
+        uuid = in.readString();
+        id = in.readString();
+        givenName = in.readString();
+        familyName = in.readString();
     }
+
+    @Override
+    public int describeContents() {
+        return 0;
+    }
+
+    @Override
+    public void writeToParcel(Parcel dest, int flags) {
+        dest.writeString(uuid);
+        dest.writeString(id);
+        dest.writeString(givenName);
+        dest.writeString(familyName);
+    }
+
+    public static final Parcelable.Creator<Patient> CREATOR = new Parcelable.Creator<Patient>() {
+        @Override
+        public Patient createFromParcel(Parcel in) {
+            return new Patient(in);
+        }
+
+        @Override
+        public Patient[] newArray(int size) {
+            return new Patient[size];
+        }
+    };
 }
Remove auto-parcel dependency from ODK collect.

Only one class in odkcollect was using AutoParcel. AutoParcel requires
code generation ta compile time. Removing this makes it easier to get
started using non-Android Studio IDEs, e.g. Eclipse.
