- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
JUFK 7-1: Integrate YouTube Data in KMP: Fetch Videos (Ktor, Serialization, Kamel) | Multiplatform
Learn how to integrate YouTube video data into your Kotlin Multiplatform (KMP) app for Android, iOS, and Web. This session focuses on setting up the data fetching layer using Ktor for HTTP requests, Kotlinx Serialization for JSON parsing, and Coil for image loading, laying the groundwork for displaying video content across all platforms.
In this session:
* Add Ktor, Kotlinx Serialization, and Coil dependencies to your KMP project.
* Configure Kotlinx Serialization Gradle plugin.
* Securely inject YouTube API keys for local development and GitHub Actions.
* Implement platform-specific Ktor HTTP clients for Android (OkHttp), iOS (Darwin), Web (JS), and Desktop (CIO).
* Create an abstract YouTubeVideosDataSource and a concrete API implementation.
* Fetch and parse YouTube playlist data using the official YouTube Data API.
* Address and resolve CI/CD linting issues (ktlint, Detekt) in a live-coding scenario.
* Prepare your KMP app for displaying dynamic YouTube video content.
🔗 Website: https://justusefuckingkotlin.com
🔗 GitHub: https://github.com/adjorno/just-use-fucking-kotlin
🔗 Twitter/X: https://x.com/adjorno
⏱️ Timestamps:
0:00 - Intro: KMP infra & published videos milestones
0:07 - Goal: Bring YouTube videos to KMP apps
0:53 - Plan: Session 7-1 focuses on data fetching
1:22 - Adding Dependencies: Ktor, Kotlinx Serialization, Kamel
2:15 - Kotlinx Serialization Gradle Plugin Setup
2:44 - Injecting YouTube API Key as a secret
3:10 - Ktor: Platform-specific HTTP Engines
4:30 - Creating a new feature branch
5:06 - Setting up YouTube API Key in GitHub Actions
6:11 - Updating README for GitHub repo viewers
6:38 - Fixing Cloudflare deployment bug & adding YouTube Playlist ID
7:40 - Initial Web target run & ktlint formatting
9:09 - Basic UI placeholders for video list
11:41 - Defining YouTubeVideosDataSource Interface & Stub
14:24 - Verifying Stub Implementation with Desktop target
16:15 - Implementing YouTubeVideosDataSource from API
19:31 - Ktor: Fetching YouTube Playlist Data
21:32 - Generating Data Classes from JSON Response
24:06 - Parsing JSON Response with Kotlinx Serialization
25:15 - Verifying API Implementation (0 to 7 videos)
26:20 - GitOps: Formatting, Pull Request, and CI Review
29:01 - Fixing ktlint & Detekt CI issues
35:40 - Conclusion & Next Steps: UI Rendering in Session 7-2
📚 What you'll learn:
* Integrating external APIs in Kotlin Multiplatform projects.
* Using Ktor for networking and handling platform-specific HTTP engines.
* Implementing Kotlinx Serialization for efficient JSON parsing.
* Managing secrets (API keys) across different environments (local, CI).
* Best practices for fixing linting and static analysis issues in a KMP workflow.
* Setting up a robust data layer for rich media content in KMP apps.
#KotlinMultiplatform #Kotlin #Ktor #KotlinxSerialization #Coil #YouTubeAPI #GitHubActions #CICD #AndroidDev #iOSDev #WebDev
Видео JUFK 7-1: Integrate YouTube Data in KMP: Fetch Videos (Ktor, Serialization, Kamel) | Multiplatform канала Mykhailo Dorokhin
In this session:
* Add Ktor, Kotlinx Serialization, and Coil dependencies to your KMP project.
* Configure Kotlinx Serialization Gradle plugin.
* Securely inject YouTube API keys for local development and GitHub Actions.
* Implement platform-specific Ktor HTTP clients for Android (OkHttp), iOS (Darwin), Web (JS), and Desktop (CIO).
* Create an abstract YouTubeVideosDataSource and a concrete API implementation.
* Fetch and parse YouTube playlist data using the official YouTube Data API.
* Address and resolve CI/CD linting issues (ktlint, Detekt) in a live-coding scenario.
* Prepare your KMP app for displaying dynamic YouTube video content.
🔗 Website: https://justusefuckingkotlin.com
🔗 GitHub: https://github.com/adjorno/just-use-fucking-kotlin
🔗 Twitter/X: https://x.com/adjorno
⏱️ Timestamps:
0:00 - Intro: KMP infra & published videos milestones
0:07 - Goal: Bring YouTube videos to KMP apps
0:53 - Plan: Session 7-1 focuses on data fetching
1:22 - Adding Dependencies: Ktor, Kotlinx Serialization, Kamel
2:15 - Kotlinx Serialization Gradle Plugin Setup
2:44 - Injecting YouTube API Key as a secret
3:10 - Ktor: Platform-specific HTTP Engines
4:30 - Creating a new feature branch
5:06 - Setting up YouTube API Key in GitHub Actions
6:11 - Updating README for GitHub repo viewers
6:38 - Fixing Cloudflare deployment bug & adding YouTube Playlist ID
7:40 - Initial Web target run & ktlint formatting
9:09 - Basic UI placeholders for video list
11:41 - Defining YouTubeVideosDataSource Interface & Stub
14:24 - Verifying Stub Implementation with Desktop target
16:15 - Implementing YouTubeVideosDataSource from API
19:31 - Ktor: Fetching YouTube Playlist Data
21:32 - Generating Data Classes from JSON Response
24:06 - Parsing JSON Response with Kotlinx Serialization
25:15 - Verifying API Implementation (0 to 7 videos)
26:20 - GitOps: Formatting, Pull Request, and CI Review
29:01 - Fixing ktlint & Detekt CI issues
35:40 - Conclusion & Next Steps: UI Rendering in Session 7-2
📚 What you'll learn:
* Integrating external APIs in Kotlin Multiplatform projects.
* Using Ktor for networking and handling platform-specific HTTP engines.
* Implementing Kotlinx Serialization for efficient JSON parsing.
* Managing secrets (API keys) across different environments (local, CI).
* Best practices for fixing linting and static analysis issues in a KMP workflow.
* Setting up a robust data layer for rich media content in KMP apps.
#KotlinMultiplatform #Kotlin #Ktor #KotlinxSerialization #Coil #YouTubeAPI #GitHubActions #CICD #AndroidDev #iOSDev #WebDev
Видео JUFK 7-1: Integrate YouTube Data in KMP: Fetch Videos (Ktor, Serialization, Kamel) | Multiplatform канала Mykhailo Dorokhin
Комментарии отсутствуют
Информация о видео
10 февраля 2026 г. 13:37:28
00:37:15
Другие видео канала















