본문으로 건너뛰기
Skillpedia
모바일 앱10k · #11939

wear-compose-m3

하는 일

이 스킬은 Wear Compose Material 3 라이브러리로 Wear OS 앱을 만들고, 업데이트하고, 옮기는 방법을 안내합니다. 스캐폴드, 지연 목록, 앰비언트 모드, Material 2.5나 Horologist에서의 마이그레이션을 다룹니다. 스마트워치 앱을 만드는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Material 3 컴포넌트로 새 Wear OS 앱을 시작할 때.
  • ✓워치 앱을 Material 2.5나 Horologist에서 Wear Compose Material 3로 옮기고 싶을 때.
  • ✓워치 앱에 스크롤 목록이나 앰비언트 모드 화면이 필요할 때.

스킬 링크

https://github.com/android/skills/blob/main/wear/wear-compose-m3/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/android/skills/blob/main/wear/wear-compose-m3/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“스크롤 목록과 앰비언트 모드가 있는 Wear OS 화면을 Wear Compose Material 3로 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 현재 라이브러리 버전과 최신 안정 버전을 확인한 뒤, Kotlin과 SDK 요구 사항을 설정합니다. 그다음 Material 3 스캐폴드와 목록을 사용해 화면을 만들거나 옮깁니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Prerequisites and compatibility

  1. Current Wear OS Compose version in-use: To find the installed library version, read gradle/libs.versions.toml or build.gradle.kts directly. Don't run ./gradlew dependencies or other shell commands to resolve versions.
  2. Wear OS Compose Material3 version: If an internal tool is available to establish the latest stable version {VERSION} of androidx.wear.compose:compose-material3, use that tool.
  3. Strict compliance: If a version is listed as stable, you MUST use it, unless overridden by the user. Do not downgrade based on initial "Unresolved reference" errors in the editor or outdated web search results.
  4. Kotlin & Compose compiler: Use Kotlin 2.0.0+ with the org.jetbrains.kotlin.plugin.compose Gradle plugin.
  5. Min SDK: Ensure minSdk is at least 25.
  6. Compile SDK & AGP: Ensure compileSdk and AGP meet the library's AAR metadata floors (compileSdk >= 35 and AGP >= 8.6.0 for 1.6.x; compileSdk >= 37 and AGP >= 9.1.0 for 1.7.x).

Gotchas

  1. Mandatory sync and validation: After updating versions in libs.versions.toml or build.gradle.kts, perform a Gradle sync (or ./gradlew assembleDebug) before refactoring, and run ./gradlew assembleDebug after refactoring to verify the build.
  2. Prohibition of guessing (error protocol): If you encounter an 'Unresolved Reference' or API mismatch after a successful sync, do not attempt to 'fix' it by downgrading the library version.

Capabilities and tools

Capability 1: Migration, updates, and adding features

Use this guidance when migrating from an older version of Wear OS Compose or Horologist, updating an existing Wear Compose Material3 project, or adding features.

  1. Unless otherwise indicated by the developer, use the latest stable version of Wear Compose Material3 from {VERSION} (superseding any literal version strings in the migration guide).
  2. When migrating from Material 2.5 or Horologist, read the migration guide and use its official component mappings.
  3. Before refactoring any component (for example, Chip -> Button), check the parameter names, slot types, and "Expressive" design tokens.
  4. Do not use the Horologist Composables, Compose Layout, or Compose Material libraries; replace Horologist components with Wear Compose M3 equivalents (AppScaffold -> M3 AppScaffold, ScreenScaffold -> M3 ScreenScaffold, ScalingLazyColumn -> TransformingLazyColumn, ResponsiveListHeader -> ListHeader, PagerScreen -> HorizontalPagerScaffold, Chip -> Button, Confirmation -> ConfirmationDialog).
  5. Always check against the component guidance in Capability 3.
  6. Expect screenshot tests to fail when migrating or updating components: expected defaults for padding and positioning will have changed. Do not seek to artificially match the previous screenshot, but give preference to the Material3 defaults.

Capability 2: Component samples

Use this table of reference to find canonical samples for Wear Compose components. When working with a Wear Compose component, you must use the samples linked from the table to ensure you know how to correctly use it.

Important: Symbols marked with [alpha], [beta], or [rc] are only available in that pre-release track and are not in stable {VERSION}. Do not use them unless the project explicitly targets that pre-release version.

Material 3 components in androidx.wear.compose.material3.*

Component / Symbol Reference Samples
AlertDialog, AlertDialogDefaults AlertDialogSample
AnimatedPage, HorizontalPagerScaffold, VerticalPagerScaffold OneHandedGestureSamples, PageIndicatorSample, PagerScaffoldSample
AnimatedText, rememberAnimatedTextFontRegistry AnimatedTextSample
AppCard CardSample
AppScaffold [ListHeaderSample](re
자주 묻는 질문

어떤 버전의 라이브러리를 쓰나요?

다른 버전을 쓰라고 하지 않는 한 최신 안정 버전을 사용합니다.

최소 SDK 요구 사항은 무엇인가요?

minSdk 25 이상과 Kotlin 2.0.0 이상이 필요합니다.

버전을 찾으려고 셸 명령을 실행하나요?

아니요. 빌드 파일을 직접 읽고, 필요할 때는 공식 Maven 메타데이터를 확인합니다.

상세 정보

작성자의 원본 설명

Guidance for Wear OS Compose Material3 (Wear Compose Material 3 / Wear Compose Material3) watch and wearable apps. Covers creating, updating, and migrating projects (Material 2.5 and Horologist migration) using androidx.wear.compose.material3, androidx.wear.compose.foundation, and androidx.wear.compose.navigation3, including AppScaffold, ScreenScaffold, TransformingLazyColumn, ambient mode, and previews.

repo: android/skills

인기도

GitHub 스타
10k
순위
#11939
라이선스
Apache-2.0
업데이트
2026. 10. 29.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬