@@ -0,0 +1,568 @@
+package de.philipphager.disclosure.database.version.mapper;%0A%0Aimport android.content.pm.PackageInfo;%0Aimport de.philipphager.disclosure.database.version.model.Version;%0Aimport de.philipphager.disclosure.util.Mapper;%0Aimport org.threeten.bp.LocalDateTime;%0A%0Apublic class ToVersionMapper implements Mapper%3CPackageInfo, Version%3E %7B%0A  private final long appId;%0A%0A  public ToVersionMapper(long appId) %7B%0A    this.appId = appId;%0A  %7D%0A%0A  @Override public Version map(PackageInfo from) %7B%0A    return Version.create(appId, from.versionCode, from.versionName, LocalDateTime.now());%0A  %7D%0A%7D%0A

Add mapper for Version model