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

開発 4 年目のアプリへの Kotlin 導入

開発 4 年目のアプリへの Kotlin 導入

DroidKaigi Prelude #dk_prelude

Ryutaro Miyashita

January 26, 2018
Tweet

More Decks by Ryutaro Miyashita

Other Decks in Technology

Transcript

  1. ݁࿦શͯ,PUMJOԽͨ͠ํ͕ϝϦοτ͕େ͖͍ ‣ "OESPJE4%,Ͱ͋Ε͹த਎ΛݟΔ public static LayoutInflater from(Context context) { LayoutInflater

    LayoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); if (LayoutInflater == null) { throw new AssertionError("LayoutInflater not found."); } return LayoutInflater; } val inflater: LayoutInflater = LayoutInflater.from(this) ˡͲ͏΍ΒOVMMʹ͸ͳΒͳ͍Β͍͠ ˣ/PO/VMMܕͱͯ͠ѻ͏Α͏ʹ͢Δ
  2. +BWBͷΛ,PUMJOԽ ‣ ϲ݄Ͱ೥ؒʹॻ͍ͨ+BWBͷ͕,PUMJOԽ ‣ νʔϜ΁ͷޮՌ  /PO/VMM/VMMBCMFΛڧ͘ҙࣝ͢ΔΑ͏ʹͳͬͨ ‣ !/PO/VMM!/VMMBCMFΞ ϊςʔγϣϯͷ෇͚๨Ε͕ͳ͍

    ‣ ݴޠػೳʹ/VMMTBGFUZ͕͋Δํ͕๨Εͳ͍͠ҙࣝ͢Δ ‣ ͜Ε·Ͱ΋+BWBͰ0QUJPOBM"1*΋࢖͍ͬͯͨ ‣ ͨͩɺ0QUJPOBMΛ࢖͍ͬͯΔͱ,PUMJOଆͰ໘౗ʜʜ