Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Realm Japan meetup #17 Java

358791a9c91e7615ffe62c7c6e02e470?s=47 zaki50
July 20, 2016

Realm Japan meetup #17 Java

358791a9c91e7615ffe62c7c6e02e470?s=128

zaki50

July 20, 2016
Tweet

Transcript

  1. Realm meetup #17 my@realm.io

  2. #realm_jp my@realm.io

  3. Makoto Yamazaki Realm Inc. / uPhyca Inc. my@realm.io

  4. Recent Updates my@realm.io

  5. Realm Java 1.1.0 (was 1.0.1) my@realm.io

  6. Realm Java 1.1.0(৽ػೳ) • Realm.insert(), Realm.insertOrUpdate()͕௥Ճ͞Ε·ͨ͠ɻRealmΦϒ δΣΫτ࡞੒ͷͨΊͷAPIͷߴ଎൛Ͱ͢(#1684)ɻ • Table.toString()ʹɺϓϥΠϚϦΩʔ৘ใΛؚΊΔΑ͏ʹ͠·ͨ͠ (#2903)ɻ

    • ΧελϜύεΛࢦఆͯ͠RealmϑΝΠϧΛࢦఆ͢ΔࡍʹɺReLinkerΛػ ೳͤ͞ΔͨΊͷίϯετϥΫλΛ௥Ճ͠·ͨ͠(#2900)ɻ • targetSdkVersionΛ23͔Β24ʹมߋ͠·ͨ͠ • GCͰճऩ͞ΕͨDynamicRealm͕close͞Ε͍ͯͳ͔ͬͨ৔߹ϩάʹܯࠂ ϝοηʔδΛग़ྗ͠·͢ɻ jp@realm.io my@realm.io
  7. Realm Java 1.1.0(όάϑΟοΫε) • Realm.compactRealm()͞ΕͨϑΝΠϧͷϝϞϦ؅ཧʹؔ͢ΔόάΛमਖ਼ • ΦϓγϣφϧͳAPI(RxJavaରԠͷAPI౳)͕࢖ΘΕ͍ͯͳ͍৔߹ɺϏϧυ࣌ʹ ࡟আ͢Δॲཧ͕DexGuardͰෆ۩߹Λىͨ͜͢ΊແޮԽ(#3022) • ඇಉظτϥϯβΫγϣϯͰɺಛఆͷঢ়گʹ͓͍ͯOnSuccess.onSuccess()͕

    ؒҧͬͨόʔδϣϯͷσʔλΛड͚औΔόάΛमਖ਼(#1893) • Realm.copyToRealm()͕ɺ॥؀ͨ͠σʔλʹରͯ͠ΦϒδΣΫτΛॏෳͯ͠ ࡞੒ͯ͠͠·͏όάΛमਖ਼ • ϞσϧΫϥεͷ໊લ͕Map΍ListͷΑ͏ʹɺproxyͷ಺෦࣮૷Ͱ࢖༻͍ͯ͠Δ Ϋϥεͱ͔ͿΔ৔߹ʹϏϧυΤϥʔ͕ൃੜ͢ΔόάΛमਖ਼(#3077) jp@realm.io my@realm.io
  8. Bulk insert API my@realm.io void insert(RealmModel object) void insert(Collection objects)

    void insertOrUpdate(RealmModel object) void insertOrUpdate(Collection objects) ΦϒδΣΫτ͕managed͔Ͳ͏͔ΛνΣοΫ͠·ͤΜ ࡞੒ͨ͠ΦϒδΣΫτΛฦΓ஋ͱͯ͠ฦ͠·ͤΜ ͢΂ͯͷϑΟʔϧυ͕ͦͷ··࢖ΘΕ·͢ ஫ҙ఺
  9. Bulk insert my@realm.io

  10. Upcoming changes my@realm.io

  11. in query (#3133) my@realm.io void RealmQuery.in(String, String[]) void RealmQuery.in(String, String[],

    Case) void RealmQuery.in(String, byte[]) void RealmQuery.in(String, short[]) void RealmQuery.in(String, int[]) void RealmQuery.in(String, long[]) void RealmQuery.in(String, float[]) void RealmQuery.in(String, double[]) void RealmQuery.in(String, boolean[]) void RealmQuery.in(String, Date[]) realm.where(AllTypes.class) .in(“value”, new String[]{"value1", “value2"}) .findAll();
  12. BYE BYE finalizer (#3144) my@realm.io finalizerʹΑΔωΠςΟϒϦιʔεͷ։์Λഇࢭ͠ɺ୅ΘΓʹ PhantomReferenceʹΑΔ։์Λ࣮૷͠Α͏ͱ͍͏มߋ େྔͷΦϒδΣΫτ͕࡞੒͞Εͨ৔߹ͷ։์ॲཧ͕ߴ଎Խ͞ΕΔ