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.
- 01Lesson Goal
- 02Part 1: The Path Of One AI Assistant Tap
- 03Part 2: Two Contracts For One Task, Why?
- 04Part 3: 1 Line Of Code Changes Everything
- 05Part 4: Same Code, iOS Always Uses Local
- 06Exercise: Add A Third Provider
- 07Code Reading Path
- 08Bad Smells
- 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