Wear Watch Face Push

  
錶面推播可讓 Wear OS 應用程式以程式輔助方式在手錶上安裝錶面。
最近更新時間 穩定版 候選版 Beta 版 Alpha 版
2025 年 6 月 18 日 - - - 1.0.0-alpha01

宣告依附元件

如要為 Wear Watch Face Push 新增依附元件,您必須將 Google Maven 存放區新增至專案。詳情請參閱 Google 的 Maven 存放區

在應用程式或模組的 build.gradle 檔案中,新增所需構件的依附元件:

Groovy

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

Kotlin

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

dependencies {
    implementation("androidx.wear.watchfacepush:watchfacepush:1.0.0-alpha01")
}
Additionally, if the app needs to generate tokens for a watch face at runtime, add the following dependency:

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-alpha03"
}

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-alpha03")
}

如要進一步瞭解依附元件,請參閱「新增建構依附元件」一文。

意見回饋

您的意見可協助我們改善 Jetpack。如果您發現新問題,或是有改進這個程式庫的建議,請告訴我們。回報新問題前,請先查看這個程式庫的現有問題。只要按一下星號按鈕,即可投票給現有的問題。

建立新問題

詳情請參閱 Issue Tracker 說明文件

1.0 版本

1.0.0-alpha01 版

2025 年 6 月 18 日

發布 androidx.wear.watchfacepush:watchfacepush:1.0.0-alpha01。1.0.0-alpha01 版包含這些修訂版本

API 變更

  • 新增錶面推送 API,讓 Wear OS 應用程式可透過程式輔助方式在手錶上安裝錶面。
  • 這個 API 先前以 :wear:watchface:watchface-push 的形式發布