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

How To Built Uranow Android App

Toru Furuya
February 13, 2018
59

How To Built Uranow Android App

Toru Furuya

February 13, 2018
Tweet

Transcript

  1. Project Overview • 2017/11/Mid - 2018/02/09 (About 3 months) •

    3 - 4 Members (One was super begineer in Android (It’s me!!!)) • iOS App was released in advanse • 30min Sprint Planning once a week
  2. Dependencies • Kotlin v1.1.51 • Retrofit2 • Okhttp3 • RxJava

    • RxLifecycle • Butterknife • Glide • Spotlight
  3. In App Billing • Play Billing Library • version 1.0

    released @2017/10/18 “ The Play Billing Library is written in Java and provides convenience classes and features, which you can use to implement in-app billing into your Android apps. The library is a wrapper for the Android Interface Definition Language (AIDL) file that defines the interface to the In-app Billing service. ”
  4. Development Rule • Variables Naming Rule • Activity Creating Rule

    • Fragment Creating Rule • View-Binding Rule • Code Formatting Rule
  5. Variables Naming Rule • Don’t use “m” and “s” prefixes

    • Don’t define static vars which isn’t final
  6. View-Binding Rule • Use at least one Fragment for each

    Activity • Activity doesn’t hold View subclasses, Fragment does instead • Don’t use by lazy in Fragment, but use Butterknife ◦ unable to clear cached views in a Fragment’s onDestroyView() ◦ Pros/cons of Android view access strategies ◦ FragmentでKotlinのby lazyを使ってfindViewByIdするとレイアウト反映できない &リークする件
  7. • Follow the ktlint rule (Refer to My Previous Presentation

    about ktlint) • We have to do ktlint Formatting before commit (All we need to do is to type below command) • Otherwise, Mr. Jenkins criticizes your code which isn’t follow the rule Code Formatting Rule
  8. Future Expectation • Layered Architecture (or Alternatives) • More Reactive

    Programming • Lint Rule Customization with ktlint