Skip to content

ObjectMapper Kotlin issue #42

Description

@r-andriievskyi

I used class KotlinCustomer from example app.
After project was built everything is Ok with generated class KotlinCustomerMapper (it has all declared fields) but when I deploy app onto my device KotlinCustomerMapper loses all fields

public final class KotlinCustomerMapper {
  public static final Func1<Cursor, KotlinCustomer> MAPPER = new Func1<Cursor, com.layo.chuckfun.models.KotlinCustomer>() {
    @Override public com.ll.test.models.KotlinCustomer call(Cursor cursor) {
      KotlinCustomer item = new KotlinCustomer();
      return item;
    }
  };

  private KotlinCustomerMapper() {
  }

  /**
   * Get a typesafe ContentValues Builder 
   * @return The ContentValues Builder 
   */
  public static ContentValuesBuilder contentValues() {
    return new ContentValuesBuilder();
  }

  /**
   * Builder class to generate type sage {@link ContentValues } . At the end you have to call {@link #build()}
   */
  public static class ContentValuesBuilder {
    private ContentValues contentValues;

    private ContentValuesBuilder() {
      contentValues = new ContentValues();
    }

    /**
     * Creates and returns a ContentValues from the builder
     * @return ContentValues */
    public ContentValues build() {
      return contentValues;
    }
  }
}

same issue with all @ObjectMappable classes in project

Gradle dependencies:

    compile 'com.hannesdorfmann.sqlbrite:dao:0.6.1'
    compile 'com.hannesdorfmann.sqlbrite:annotations:0.6.1'
    kapt 'com.hannesdorfmann.sqlbrite:object-mapper:0.6.1'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions