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

2017年に新規アプリを立ち上げた話

 2017年に新規アプリを立ち上げた話

shibuya.apk #20

Keisuke Kobayashi

December 08, 2017
Tweet

More Decks by Keisuke Kobayashi

Other Decks in Programming

Transcript

  1. About Me • Keisuke Kobayashi • GitHub, Qiita: kobakei •

    Twitter: kobakei122 • Kyash, Inc • ݸਓࣄۀओ΋΍ͬͯ·͢
  2. ྫ: Delegated property class MainActivity : AppCompatActivity { companion object

    { fun createIntent(context: Context, hoge: String?, fuga: Int): Intent { return Intent(context, MainActivity::class.java).apply { putExtra(MainActivity::hoge.name, hoge) putExtra(MainActivity::fuga.name, fuga) } } } val hoge: String? by ExtraNullable() val fuga: Int by ExtraNonNull() }
  3. Mockito-kotlin val mock = mock<SomeClass> { on { hoge() }

    doReturn "hoge" on { fuga() } doReturn "fuga" }