Dan Tech Academy
After this lesson you will
  • Set up the right contract for the AI Provider feature
  • Switch the AI provider with one DI line and see how easy it is
  • Explain why the iOS build always uses LocalHintProvider without a platform if branch
Duration12 min
DifficultyIntermediate

How You Change The AI Provider With 1 Line Of Code

With the contract in the right place, switching providers is fast, easy to test, and leaves other modules untouched.

What this lesson covers
  1. 01Lesson Goal
  2. 02Part 1: The Path Of One AI Assistant Tap
  3. 03Part 2: Two Contracts For One Task, Why?
  4. 04Part 3: 1 Line Of Code Changes Everything
  5. 05Part 4: Same Code, iOS Always Uses Local
  6. 06Exercise: Add A Third Provider
  7. 07Code Reading Path
  8. 08Bad Smells
  9. 09Key Takeaways

Topics: mobile-action-pro, clean-architecture

9 sections left in this lessonUnlock all of Mobile Action ProLesson Goal, Part 1: The Path Of One AI Assistant Tap, … — plus 114 lessons in this course, source code and checklists.
Unlock Mobile Action ProOne-time payment — lifetime access — 7-day money-back. Already purchased? Sign in
Sign in