Wear 워치 페이스 푸시

  
시계 화면 푸시를 사용하면 Wear OS 앱이 프로그래매틱 방식으로 시계에 시계 화면을 설치할 수 있습니다.
최근 업데이트 안정화 버전 출시 후보 버전 베타 버전 알파 버전
2025년 12월 3일 - - 1.0.0-beta01 -

종속 항목 선언

Wear 시계 화면 푸시에 종속 항목을 추가하려면 프로젝트에 Google Maven 저장소를 추가해야 합니다. 자세한 내용은 Google Maven 저장소를 읽어보세요.

다음과 같이 앱 또는 모듈의 build.gradle 파일에 필요한 아티팩트의 종속 항목을 추가합니다.

Groovy

repositories {
    google() // For the watchfacepush library itself
}
dependencies {
    implementation "androidx.wear.watchfacepush:watchfacepush:1.0.0-beta01"
}

Kotlin

repositories {
    google() // For the watchfacepush library itself
}

dependencies {
    implementation("androidx.wear.watchfacepush:watchfacepush:1.0.0-beta01")
}
또한 앱이 런타임에 시계 화면의 토큰을 생성해야 하는 경우 다음 종속 항목을 추가합니다.

Groovy

repositories {
    google() // For the validator-push library itself
    maven {
        url "https://jitpack.io" // For dependencies of the validator-push library
        content {
            includeGroup "com.github.xgouchet"
        }
    }
}

dependencies {
    implementation "com.google.android.wearable.watchface.validator:validator-push:1.0.0-alpha07"
}

Kotlin

repositories {
    google() // For the validator-push library itself
    maven {
        url = uri("https://jitpack.io") // For dependencies of the validator-push library
        content {
            includeGroup("com.github.xgouchet")
        }
    }
}

dependencies {
    implementation("com.google.android.wearable.watchface.validator:validator-push:1.0.0-alpha07")
}

종속 항목에 관한 자세한 내용은 빌드 종속 항목 추가를 참고하세요.

의견

제출하신 의견은 Jetpack을 개선하는 데 도움이 됩니다. 새로운 문제를 발견하거나 라이브러리 개선을 위한 아이디어가 있다면 Google에 알려 주세요. 새 문제를 제출하기 전에 이 라이브러리의 기존 문제를 살펴보시기 바랍니다. 별표 버튼을 클릭하여 기존 문제에 투표할 수 있습니다.

새로운 문제 제출하기

자세한 내용은 Issue Tracker 문서를 참고하세요.

버전 1.0

버전 1.0.0-beta01

2025년 12월 3일

androidx.wear.watchfacepush:watchfacepush:1.0.0-beta01이 출시되었습니다. 버전 1.0.0-beta01에는 이 커밋이 포함되어 있습니다.

API 변경사항

  • watchfacepush minSdk을 33으로 낮춤 기기에서 기능이 지원되는지 확인하는 isSupported 메서드를 도입합니다. 이 메서드는 sdk<36 (Wear OS 6 / Android 16)의 경우 false를 반환합니다. 이를 통해 클라이언트는 minSdk를 더 낮게 설정하고 지원되는 경우 조건부로 워치 화면 푸시를 사용할 수 있습니다. (I0e8c0, b/438149344)

버전 1.0.0-alpha01

2025년 6월 18일

androidx.wear.watchfacepush:watchfacepush:1.0.0-alpha01이 출시되었습니다. 버전 1.0.0-alpha01에는 이러한 커밋이 포함되어 있습니다.

API 변경사항

  • Wear OS 앱이 프로그래매틱 방식으로 시계에 시계 화면을 설치할 수 있는 시계 화면 푸시 API가 추가되었습니다.
  • 이 API는 이전에 :wear:watchface:watchface-push로 게시되었습니다.