wear watchfacepush
Bản cập nhật mới nhất | Bản phát hành ổn định | Bản phát hành dùng thử | Bản phát hành beta | Bản phát hành alpha |
---|---|---|---|---|
Ngày 18 tháng 6 năm 2025 | - | - | - | 1.0.0-alpha01 |
Khai báo phần phụ thuộc
Để thêm một phần phụ thuộc trên watchfacepush của Wear, bạn phải thêm kho lưu trữ Google Maven vào dự án. Đọc nội dung Kho lưu trữ Maven của Google để biết thêm thông tin.
Thêm các phần phụ thuộc cho cấu phần phần mềm bạn cần trong tệp build.gradle
cho ứng dụng hoặc mô-đun:
Groovy
dependencies { // Use to implement wear watchfacepushs //TODO: Confirm these dependencies implementation "androidx.wear.watchfacepush:watchfacepush:1.0.0-alpha01" // Use to implement wear watchfacepush complications //TODO: Confirm these dependencies implementation "androidx.wear.watchfacepush:watchfacepush-complications-data-source:1.0.0-alpha01" // (Kotlin-specific extensions) //TODO: Confirm these dependencies implementation "androidx.wear.watchfacepush:watchfacepush-complications-data-source-ktx:1.0.0-alpha01" // Use to implement a watchfacepush style and complication editor //TODO: Confirm these dependencies implementation "androidx.wear.watchfacepush:watchfacepush-editor:1.0.0-alpha01" // Can use to render complications. //TODO: Confirm these dependencies // This library is optional and watchfacepushs may have custom implementation for rendering // complications. //TODO: Confirm these dependencies implementation "androidx.wear.watchfacepush:watchfacepush-complications-rendering:1.0.0-alpha01" }
Kotlin
dependencies { // Use to implement wear watchfacepushs //TODO: Confirm these dependencies implementation("androidx.wear.watchfacepush:watchfacepush:1.0.0-alpha01") // Use to implement wear watchfacepush complications //TODO: Confirm these dependencies implementation "androidx.wear.watchfacepush:watchfacepush-complications-data-source:1.0.0-alpha01" // (Kotlin-specific extensions) //TODO: Confirm these dependencies implementation "androidx.wear.watchfacepush:watchfacepush-complications-data-source-ktx:1.0.0-alpha01" // Use to implement a watchfacepush style and complication editor //TODO: Confirm these dependencies implementation("androidx.wear.watchfacepush:watchfacepush-editor:1.0.0-alpha01") // Can use to render complications. //TODO: Confirm these dependencies // This library is optional and watchfacepushs may have custom implementation for rendering // complications. //TODO: Confirm these dependencies implementation "androidx.wear.watchfacepush:watchfacepush-complications-rendering:1.0.0-alpha01" }
Để biết thêm thông tin về các phần phụ thuộc, hãy xem bài viết Thêm phần phụ thuộc vào bản dựng.
Ý kiến phản hồi
Ý kiến phản hồi của bạn có thể giúp chúng tôi cải thiện Jetpack. Hãy cho chúng tôi biết nếu bạn phát hiện lỗi mới hoặc có ý tưởng cải thiện thư viện này. Vui lòng xem các lỗi hiện có trong thư viện này trước khi báo một lỗi mới. Bạn có thể thêm lượt bình chọn cho lỗi hiện có bằng cách nhấp vào nút dấu sao.
Xem tài liệu về Công cụ theo dõi lỗi để biết thêm thông tin.
Phiên bản 1.0
Phiên bản 1.0.0-alpha01
Ngày 18 tháng 6 năm 2025
Phát hành androidx.wear.watchfacepush:watchfacepush:1.0.0-alpha01
. Phiên bản 1.0.0-alpha01 bao gồm các thay đổi sau.
Thay đổi về API
- Thêm API đẩy mặt đồng hồ cho phép ứng dụng Wear OS cài đặt mặt đồng hồ trên đồng hồ theo phương thức lập trình.
- API này trước đây được phát hành dưới dạng
:wear:watchface:watchface-push