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

Doppl, an intro!

Doppl, an intro!

Scott Alexander-Bown

November 28, 2017
Tweet

More Decks by Scott Alexander-Bown

Other Decks in Technology

Transcript

  1. Scott Alexander-Bown
    @ScottyAB
    [email protected]

    View Slide

  2. Goal:
    Intro to doppl

    View Slide

  3. Non-Goal:
    Deep dive
    Not an expert
    in doppl :’(

    View Slide

  4. Agenda
    What is it?
    Show me the code!
    Cavets
    Why should you care?
    @ScottyAB

    View Slide

  5. Android centric code sharing
    based on J2objc
    @ScottyAB

    View Slide

  6. What do you mean?
    Image thanks to Kevin Galligan, touchlab

    View Slide

  7. If users see it, make it native
    Otherwise, make it once*
    @ScottyAB

    View Slide

  8. *Platform integration
    @ScottyAB

    View Slide

  9. What Could Doppl Convert?
    @ScottyAB

    View Slide

  10. View Slide

  11. What Could Doppl Convert?
    Repository
    View-Models
    Presenters
    Platform-Agnostic Presentation
    Utility Code
    @ScottyAB

    View Slide

  12. Android library support
    Architecture components
    Reactive: RxJava2
    Remote: Retrofit, OkHttp
    Local: Room, SQL Cipher for Android
    Testing: Mockito
    @ScottyAB

    View Slide

  13. Show me the code!

    View Slide

  14. Android code: Host Interface @ScottyAB

    View Slide

  15. Android code: Fragment @ScottyAB

    View Slide

  16. Converting to iOS
    Download the Doppl Runtime (1.6GB)
    $ ./gradlew dopplBuild
    $ pod install
    @ScottyAB

    View Slide

  17. iOS: View Controller @ScottyAB

    View Slide

  18. Rough edges
    Memory Cycles/Reference counting
    Runtime size (15MB)
    Debugging via Xcode can be flakey
    No support for Swift/Kotlin
    @ScottyAB

    View Slide

  19. Tech preview
    @ScottyAB

    View Slide

  20. Doppl is a Trademark of Touch Lab Inc.
    @ScottyAB

    View Slide

  21. Get started/resources
    http://doppl.co/
    @doppllib on Twitter
    Doppl Slack group
    `doppl` Stack Overflow tag
    https://github.com/doppllib/DroidconDopplExample
    @ScottyAB

    View Slide

  22. Wrap up
    @ScottyAB

    View Slide

  23. Why should you care?
    Native tools/SDK wins
    Share allot or a little
    Cost cutting / Management pressure
    @ScottyAB

    View Slide

  24. Scott Alexander-Bown
    @ScottyAB
    [email protected]
    Thanks for listening!
    More info doppl.co
    Available
    for hire

    View Slide