کاشی‌های فرسوده

Create applications for Wear OS by Google smartwatches.
آخرین به‌روزرسانی انتشار پایدار کاندیدای انتشار انتشار بتا انتشار آلفا
۱ ژوئیه ۲۰۲۶ ۱.۶.۱ - - -

اعلام وابستگی‌ها

برای افزودن یک وابستگی به Wear، باید مخزن Google Maven را به پروژه خود اضافه کنید. برای اطلاعات بیشتر، مخزن Google's Maven را مطالعه کنید.

وابستگی‌های مربوط به مصنوعات مورد نیاز خود را در فایل build.gradle برای برنامه یا ماژول خود اضافه کنید:

شیار

dependencies {
    // Use to implement support for wear tiles
    implementation "androidx.wear.tiles:tiles:1.6.1"

    // Use to utilize standard components and layouts in your tiles
    implementation "androidx.wear.protolayout:protolayout:1.4.1"

    // Use to utilize components and layouts with Material Design in your tiles
    implementation "androidx.wear.protolayout:protolayout-material:1.4.1"

    // Use to include dynamic expressions in your tiles
    implementation "androidx.wear.protolayout:protolayout-expression:1.4.1"

    // Use to preview wear tiles in your own app
    debugImplementation "androidx.wear.tiles:tiles-renderer:1.6.1"

    // Use to fetch tiles from a tile provider in your tests
    testImplementation "androidx.wear.tiles:tiles-testing:1.6.1"
}

کاتلین

dependencies {
    // Use to implement support for wear tiles
    implementation("androidx.wear.tiles:tiles:1.6.1")

    // Use to utilize standard components and layouts in your tiles
    implementation("androidx.wear.protolayout:protolayout:1.4.1")

    // Use to utilize components and layouts with Material Design in your tiles
    implementation("androidx.wear.protolayout:protolayout-material:1.4.1")

    // Use to include dynamic expressions in your tiles
    implementation("androidx.wear.protolayout:protolayout-expression:1.4.1")

    // Use to preview wear tiles in your own app
    debugImplementation("androidx.wear.tiles:tiles-renderer:1.6.1")

    // Use to fetch tiles from a tile provider in your tests
    testImplementation("androidx.wear.tiles:tiles-testing:1.6.1")
}
،

شیار

dependencies {
    // Use to implement support for wear tiles
    implementation "androidx.wear.tiles:tiles:1.6.1"

    // Use to utilize standard components and layouts in your tiles
    implementation "androidx.wear.protolayout:protolayout:1.4.1"

    // Use to utilize components and layouts with Material Design in your tiles
    implementation "androidx.wear.protolayout:protolayout-material:1.4.1"

    // Use to include dynamic expressions in your tiles
    implementation "androidx.wear.protolayout:protolayout-expression:1.4.1"

    // Use to preview wear tiles in your own app
    debugImplementation "androidx.wear.tiles:tiles-renderer:1.6.1"

    // Use to fetch tiles from a tile provider in your tests
    testImplementation "androidx.wear.tiles:tiles-testing:1.6.1"
}

کاتلین

dependencies {
    // Use to implement support for wear tiles
    implementation("androidx.wear.tiles:tiles:1.6.1")

    // Use to utilize standard components and layouts in your tiles
    implementation("androidx.wear.protolayout:protolayout:1.4.1")

    // Use to utilize components and layouts with Material Design in your tiles
    implementation("androidx.wear.protolayout:protolayout-material:1.4.1")

    // Use to include dynamic expressions in your tiles
    implementation("androidx.wear.protolayout:protolayout-expression:1.4.1")

    // Use to preview wear tiles in your own app
    debugImplementation("androidx.wear.tiles:tiles-renderer:1.6.1")

    // Use to fetch tiles from a tile provider in your tests
    testImplementation("androidx.wear.tiles:tiles-testing:1.6.1")
}

برای اطلاعات بیشتر در مورد وابستگی‌ها، به «افزودن وابستگی‌های ساخت» مراجعه کنید.

بازخورد

بازخورد شما به بهبود Jetpack کمک می‌کند. اگر مشکلات جدیدی کشف کردید یا ایده‌هایی برای بهبود این کتابخانه دارید، به ما اطلاع دهید. لطفاً قبل از ایجاد یک کتابخانه جدید، نگاهی به مشکلات موجود در این کتابخانه بیندازید. می‌توانید با کلیک بر روی دکمه ستاره، رأی خود را به یک مشکل موجود اضافه کنید.

ایجاد یک مسئله جدید

برای اطلاعات بیشتر به مستندات ردیاب مشکل مراجعه کنید.

نسخه ۱.۶

نسخه ۱.۶.۱

۱ ژوئیه ۲۰۲۶

androidx.wear.tiles:tiles-*:1.6.1 منتشر شد. نسخه ۱.۶.۱ شامل این کامیت‌ها است.

رفع آسیب‌پذیری‌ها و مشکلات امنیتی

  • Fixed a potential IllegalStateException race condition in TilesConnectionBinder that occurred during service connection callbacks called from unexpected threads.

نسخه ۱.۶.۰

۲۵ مارس ۲۰۲۶

androidx.wear.tiles:tiles-*:1.6.0 منتشر شد. نسخه ۱.۶.۰ شامل این کامیت‌ها است.

تغییرات مهم از زمان ۱.۵.۰:

For full details of changes since 1.5.0, see the 1.6.0-beta01 release notes .

ویژگی‌های جدید

The 1.6.0-beta01 release of Wear Tiles indicates that this release of the library is feature-complete and the API is locked (except where marked as experimental). Wear Tiles 1.6 includes the following new functionalities and APIs:

  • مدیریت منابع درون‌خطی و بهبود عملکرد: کاشی‌ها اکنون از جمع‌آوری خودکار منابع از طریق ProtoLayoutScope پشتیبانی می‌کنند.
  • Material3TileService: Introduced a new, Kotlin-friendly service for creating tiles. It simplifies development by providing a single suspend function to return both tile layout and resources. It automatically manages the MaterialScope and ProtoLayoutScope for better resource handling and performance improvements on faster Tiles loading.
  • به‌روزرسانی پیش‌نمایش‌های کاشی: ابزار پیش‌نمایش‌های کاشی به‌روزرسانی شده است تا از مدیریت خودکار منابع ProtoLayoutScope جدید پشتیبانی کند و تضمین کند که پیش‌نمایش‌ها منابع درون‌خطی را به درستی و بدون پیکربندی اضافی منعکس می‌کنند.
  • بسیاری از بهبودهای Kotlin DSL: کمک‌کننده‌های تخصصی Kotlin برای Tile و تمام APIهای دیگر مورد نیاز برای ساخت tile (مانند Timeline ) اضافه شده است تا تجربه توسعه‌دهندگان را برای کاربران Kotlin بهبود بخشد.
  • Dynamic Service Switching: Introduced METADATA_GROUP_KEY , allowing developers to group multiple TileService instances in the manifest. This enables dynamic switching between different services that represent the same tile on new OS versions.
  • شناسه کاشی در به‌روزرسانی‌ها: توسعه‌دهندگان اکنون می‌توانند یک tileId خاص را در درخواست‌های به‌روزرسانی مشخص کنند و کنترل دقیق‌تری بر روی اینکه کدام نمونه‌های کاشی به‌روزرسانی شوند، داشته باشند.
  • افزایش کامپایل SDK: برای پشتیبانی از Material3TileService جدید و مدیریت پیشرفته منابع، نسخه compileSdk مورد نیاز به 35 افزایش یافته است.
  • ANR Prevention: Moved the unbinding logic during Tile update requests to a background thread to prevent "Application Not Responding" (ANR) errors.

نسخه ۱.۶.۰-rc02

۱۱ مارس ۲۰۲۶

androidx.wear.tiles:tiles-*:1.6.0-rc02 بدون هیچ تغییری نسبت به نسخه قبلی منتشر شده است. نسخه 1.6.0-rc02 شامل این کامیت‌ها است.

نسخه ۱.۶.۰-rc01

۲۵ فوریه ۲۰۲۶

androidx.wear.tiles:tiles-*:1.6.0-rc01 منتشر شد. نسخه 1.6.0-rc01 شامل این کامیت‌ها است.

رفع اشکالات

  • Clean up saved resources on Tile remove event.

نسخه ۱.۶.۰-بتا۰۱

۱۱ فوریه ۲۰۲۶

androidx.wear.tiles:tiles-*:1.6.0-beta01 is released. Version 1.6.0-beta01 contains these commits .

ویژگی‌های جدید

نسخه ۱.۶.۰-بتا۰۱ از Wear Tiles نشان می‌دهد که این نسخه از کتابخانه از نظر ویژگی‌ها کامل شده و API آن قفل شده است (به جز مواردی که به عنوان آزمایشی علامت‌گذاری شده است). Wear Tiles 1.6 شامل قابلیت‌ها و APIهای جدید زیر است:

  • Inlined Resource Handling and performance improvements: Tiles now support automatic resource collection through ProtoLayoutScope .
    • This significantly improves Tiles loading time by removing the need for two binder calls as only the onTileResourcesRequest method can be implemented.
    • When using image resources directly in the layout, there is no longer a need to manually override onTileResourcesRequest or specify resources in TilePreviewData .
  • Material3TileService: یک سرویس جدید و سازگار با کاتلین برای ایجاد کاشی‌ها معرفی کرد. این سرویس با ارائه یک تابع suspend برای بازگرداندن طرح‌بندی کاشی‌ها و منابع، توسعه را ساده می‌کند. این سرویس به طور خودکار MaterialScope و ProtoLayoutScope را برای مدیریت بهتر منابع و بهبود عملکرد در بارگذاری سریع‌تر کاشی‌ها مدیریت می‌کند.

    • قطعه کد ساده شده:
    class MyTileService : Material3TileService() {
        override suspend fun **MaterialScope.tileResponse**(
            requestParams: RequestBuilders.TileRequest
        ): TileBuilders.Tile = tile(
    timeline = timeline(timelineEntry(
    primaryLayout(
        // layout setup here
    iconContent = { **icon**(
    **imageResource**(
    **androidImageResource**(R.drawable.myIcon)))})
    //…
    )))
    }
    
  • Tile Previews Update: Tooling for Tile Previews has been updated to support the new ProtoLayoutScope automatic resource handling, ensuring previews reflect inlined resources correctly without extra configuration.

  • بسیاری از بهبودهای Kotlin DSL: کمک‌کننده‌های تخصصی Kotlin برای Tile و تمام APIهای دیگر مورد نیاز برای ساخت tile (مانند Timeline ) اضافه شده است تا تجربه توسعه‌دهندگان را برای کاربران Kotlin بهبود بخشد.

  • Dynamic Service Switching: Introduced METADATA_GROUP_KEY , allowing developers to group multiple TileService instances in the manifest. This enables dynamic switching between different services that represent the same tile on new OS versions.

  • Tile ID in Updates: Developers can now specify a particular tileId in update requests, allowing for more granular control over which tile instances are refreshed.

تغییرات API

  • Increased Compile SDK: To support the new Material3TileService and advanced resource handling, the compileSdk version requirement has been increased to 35 .
  • Minimum SDK Update: The default minSdk for the library has been moved from API 21 to API 23 .
  • Optional Resource Overrides: Overriding onTileResourcesRequest is now optional when using the new ProtoLayoutScope APIs.
  • Schema Metadata: Added metadata keys for major/minor Tiles Renderer schema versions as XML tags for better platform compatibility tracking.

رفع اشکالات

  • پیشگیری از ANR: منطق unbinding در طول درخواست‌های به‌روزرسانی Tile به یک thread پس‌زمینه منتقل شد تا از خطاهای «برنامه پاسخ نمی‌دهد» (ANR) جلوگیری شود.
  • Version Awareness: The internal ProtoLayoutScope includes the ProtoLayout Renderer 's VersionInfo , allowing for better backward compatibility checks.

نسخه ۱.۶.۰-آلفا۰۵

۲۸ ژانویه ۲۰۲۶

androidx.wear.tiles:tiles-*:1.6.0-alpha05 منتشر شد. نسخه 1.6.0-alpha05 شامل این کامیت‌ها است.

تغییرات API

  • ما کلیدهای فراداده را برای نسخه طرحواره اصلی/فرعی Tiles به عنوان یک تگ XML اضافه کرده‌ایم. ( I2cf66 )

رفع اشکالات

  • We have fixed the issue with better resource handling by removing stateful ProtoLayoutScope from TileService and fixed the issue about keys for holding the resources data. ( I5dc0a , b/474614772 )
  • کد مربوط به لغو اتصال سرویس هنگام درخواست به‌روزرسانی، برای محیط‌های آزمایشی روی نخ اصلی اجرا می‌شود. ( 8fd7348 )

نسخه ۱.۶.۰-آلفا۰۴

۱۴ ژانویه ۲۰۲۶

androidx.wear.tiles:tiles-*:1.6.0-alpha04 منتشر شد. نسخه 1.6.0-alpha04 شامل این کامیت‌ها است.

تغییرات API

  • A new service for creating tiles called Material3TileService has been added to the Tiles library.
  • This provides better experience in creating TileService , as it automatically creates MaterialScope needed for Material3 components and layout, which includes ProtoLayoutScope for better resources handling and performance improvements .
  • It is more Kotlin friendly, with 1 suspend function to provide both tile layout and resources inlined within the layout components.
  • In order to support new service for Tiles with better resources handling, the compile SDK version is increased to 35. ( I1ff29 , b/470048768 )

نسخه ۱.۶.۰-آلفا۰۳

۱۷ دسامبر ۲۰۲۵

androidx.wear.tiles:tiles-*:1.6.0-alpha03 is released. Version 1.6.0-alpha03 contains these commits .

تغییرات API

  • We introduced METADATA_GROUP_KEY to allow specifying an optional group name in the service's manifest to which the corresponding TileService belongs. This can be used to dynamically switch between different services that correspond to the same tile. ( Ic9e71 , b/451988130 )

رفع اشکالات

  • Unbinding from service when requesting an update for the Tile is now moved to the background thread to avoid potential ANRs. ( Ifc9f9 , b/460017465 )

نسخه ۱.۶.۰-آلفا۰۲

۲۲ اکتبر ۲۰۲۵

androidx.wear.tiles:tiles-*:1.6.0-alpha02 is released. Version 1.6.0-alpha02 contains these commits .

ویژگی‌های جدید

  • Tile Previews is now updated to support automatic resource handling via ProtoLayoutScope . If using image resources directly in the layout via materialScopeWithScope or ProtoLayoutScope directly, there is no longer need to specify onTileResourcesRequest and resources specifically in the TilePreviewData , they will be collected automatically. ( I58516 )

رفع اشکالات

  • ProtoLayoutScope که به صورت داخلی توسط TileService ایجاد شده است، اکنون شامل VersionInfo مربوط به رندرکننده ProtoLayout است. ( I6eee2 ، b/450259727 )

نسخه ۱.۶.۰-آلفا۰۱

۲۴ سپتامبر ۲۰۲۵

androidx.wear.tiles:tiles-*:1.6.0-alpha01 is released. Version 1.6.0-alpha01 contains these commits .

ویژگی‌های جدید

  • APIهای ارائه‌دهنده را برای پذیرش PendingIntent به عنوان اقدام کلیک اضافه کنید ( I01978 ، b/433802488 )
  • اجازه دهید شناسه کاشی در درخواست به‌روزرسانی مشخص شود. ( Ia05c3 , b/421346031 )
  • Add method in TileRequest to get the ProtoLayoutScope object for the corresponding tile instance. ( I5b8de , b/428692428 )

تغییرات API

  • اجازه ندهید که onTileResourcesRequest هنگام استفاده از APIهای ProtoLayoutScope نادیده گرفته شود. ( I1773d )

رفع اشکالات

  • پیاده‌سازی پشتیبانی از PendingIntent در ProtoTiles را اضافه کنید. ( I38167 ، b/430610429 )
  • منابع استفاده شده از ProtoLayoutScope را ذخیره کنید تا به درستی در onTileResourcesRequest برای رندرکننده‌های قدیمی‌تر که آن را در پاسخ Tile قرار نمی‌دهند، ارسال شوند. ( I063a8 ، b/428692502 )
  • انتقال minSdk پیش‌فرض از API 21 به API 23 ( Ibdfca ، b/380448311 ، b/435705964 ، b/435705223 )

نسخه ۱.۵

نسخه ۱.۵.۰

۴ ژوئن ۲۰۲۵

androidx.wear.tiles:tiles-*:1.5.0 منتشر شد. نسخه ۱.۵.۰ شامل این کامیت‌ها است.

تغییرات مهم از زمان ۱.۴.۰

  • Added new API TileService.onRecentInteractionEvents() for processing interaction tile events (Enter / Leave) in batches.
    • The existing APIs in TileService for onEnterEvent and onLeaveEvent are deprecated and won't work from SDK 36+ for Apps targeting API 36 or more
  • Critical bug fix for any clients targeting SDK higher than 34 and requesting a tile update on API 34 that would cause a SecurityException .
  • با شروع از Wear 6 (SDK سطح ۳۶+)، تمام کاشی‌ها با فونت سیستمی که توسط هر دستگاه تعریف می‌شود، نمایش داده می‌شوند.

نسخه ۱.۵.۰-rc01

۲۰ مه ۲۰۲۵

androidx.wear.tiles:tiles-*:1.5.0-rc01 is released with no changes from the previous release. Version 1.5.0-rc01 contains these commits .

نسخه ۱.۵.۰-بتا۰۲

۷ مه ۲۰۲۵

androidx.wear.tiles:tiles-*:1.5.0-beta02 منتشر شد. نسخه 1.5.0-beta02 شامل این کامیت‌ها است.

نسخه ۱.۵.۰-بتا۰۱

۹ آوریل ۲۰۲۵

androidx.wear.tiles:tiles-*:1.5.0-beta01 منتشر شد. نسخه 1.5.0-beta01 شامل این کامیت‌ها است.

ویژگی‌های جدید

نسخه ۱.۵.۰-بتا۰۱ از Wear Tiles نشان می‌دهد که این نسخه از کتابخانه از نظر امکانات کامل شده و API آن قفل شده است (به جز مواردی که به عنوان آزمایشی علامت‌گذاری شده‌اند). Wear Tiles 1.5 شامل قابلیت‌ها و APIهای جدید زیر است:

  • Added new API TileService.onRecentInteractionEvents() for processing interaction tile events (Enter / Leave) in batches.
    • The existing APIs in TileService for onEnterEvent and onLeaveEvent are deprecated and won't work from SDK 36+ for Apps targeting API 36 or more
  • رفع اشکال بحرانی برای هر کلاینتی که SDK بالاتر از ۳۴ را هدف قرار می‌دهد و درخواست به‌روزرسانی کاشی در API ۳۴ را دارد که باعث ایجاد SecurityException می‌شود.
  • با شروع از Wear 6 (SDK سطح ۳۶+)، تمام کاشی‌ها با فونت سیستمی که توسط هر دستگاه تعریف می‌شود، نمایش داده می‌شوند.

نسخه ۱.۵.۰-آلفا۱۰

۱۲ مارس ۲۰۲۵

androidx.wear.tiles:tiles-*:1.5.0-alpha10 منتشر شد. نسخه 1.5.0-alpha10 شامل این کامیت‌ها است.

نسخه ۱.۵.۰-آلفا۰۹

February 26, 2025

androidx.wear.tiles:tiles-*:1.5.0-alpha09 is released. Version 1.5.0-alpha09 contains these commits .

Version 1.5.0-alpha08

۱۲ فوریه ۲۰۲۵

androidx.wear.tiles:tiles-*:1.5.0-alpha08 is released. Version 1.5.0-alpha08 contains these commits .

تغییرات API

  • TileService.onRecentInteractionEvents() to return ListenableFuture<Void> to allow for long running tasks. ( Iaa6c5 )

نسخه ۱.۵.۰-آلفا۰۷

۲۹ ژانویه ۲۰۲۵

androidx.wear.tiles:tiles-*:1.5.0-alpha07 is released. Version 1.5.0-alpha07 contains these commits .

نسخه ۱.۵.۰-alpha06

۱۵ ژانویه ۲۰۲۵

androidx.wear.tiles:tiles-*:1.5.0-alpha06 is released. Version 1.5.0-alpha06 contains these commits .

تغییرات API

  • Renamed processRecentInteractionEvents to onRecentInteractionEvents method. ( Iec3d5 )

نسخه ۱.۵.۰-آلفا۰۵

۱۱ دسامبر ۲۰۲۴

androidx.wear.tiles:tiles-*:1.5.0-alpha05 منتشر شد. نسخه 1.5.0-alpha05 شامل این کامیت‌ها است.

ویژگی‌های جدید

  • Add api for TileService to process interaction events in batches. ( I04d1b )

رفع اشکالات

  • This library now uses JSpecify nullness annotations , which are type-use. Kotlin developers should use the following compiler argument to enforce correct usage: -Xjspecify-annotations=strict (this is the default starting with version 2.1.0 of the Kotlin compiler). ( I390e9 , b/326456246 )
  • Fixed the bug where requesting tile updates on API 34 when the app targetSdk is higher than 34 would cause a SecurityException ( If62a1 )
  • وابستگی به WearSdk در تست‌های Robolectric برطرف شد. ( I37796 )

نسخه ۱.۵.۰-آلفا۰۴

۱۳ نوامبر ۲۰۲۴

androidx.wear.tiles:tiles-*:1.5.0-alpha04 منتشر شد. نسخه 1.5.0-alpha04 شامل این کامیت‌ها است.

نسخه ۱.۵.۰-آلفا۰۳

۳۰ اکتبر ۲۰۲۴

androidx.wear.tiles:tiles-*:1.5.0-alpha03 is released. Version 1.5.0-alpha03 contains these commits .

نسخه ۱.۵.۰-آلفا۰۲

۱۶ اکتبر ۲۰۲۴

androidx.wear.tiles:tiles-*:1.5.0-alpha02 منتشر شد. نسخه 1.5.0-alpha02 شامل این کامیت‌ها است.

رفع مشکلات امنیتی

  • As of this change , androidx compiles against protobuf 4.28.2 in order to address CVE-2024-7254 . Upgrade your dependency on version 1.5.0-alpha01 of androidx.wear.tiles:tiles-proto to 1.5.0-alpha02 to address the vulnerability risk.

نسخه ۱.۵.۰-آلفا۰۱

۲ اکتبر ۲۰۲۴

androidx.wear.tiles:tiles-*:1.5.0-alpha01 is released. Version 1.5.0-alpha01 contains these commits .

نسخه ۱.۴

نسخه ۱.۴.۱

۱۶ اکتبر ۲۰۲۴

androidx.wear.tiles:tiles-*:1.4.1 is released. Version 1.4.1 contains these commits .

Security Fixes

  • با اعمال این تغییر ، androidx برای رفع آسیب‌پذیری CVE-2024-7254 ، بر اساس protobuf 4.28.2 کامپایل می‌شود. برای رفع خطر آسیب‌پذیری، وابستگی خود به نسخه ۱.۴.۰ از androidx.wear.tiles:tiles-proto را به ۱.۴.۱ ارتقا دهید.

نسخه ۱.۴.۰

۷ آگوست ۲۰۲۴

androidx.wear.tiles:tiles-*:1.4.0 is released. Version 1.4.0 contains these commits .

تغییرات مهم از زمان ۱.۳.۰

  • پشتیبانی از ابزار برای تعیین داده‌های پلتفرم سفارشی برای پیش‌نمایش‌های Tiles در اندروید استودیو.

نسخه ۱.۴.۰-rc01

۲۴ ژوئیه ۲۰۲۴

androidx.wear.tiles:tiles-*:1.4.0-rc01 is released with no changes from the previous release. Version 1.4.0-rc01 contains these commits .

نسخه ۱.۴.۰-بتا۰۱

۱۰ ژوئیه ۲۰۲۴

androidx.wear.tiles:tiles-*:1.4.0-beta01 منتشر شد. نسخه 1.4.0-beta01 شامل این کامیت‌ها است.

ویژگی‌های جدید

نسخه ۱.۴.۰-بتا۰۱ از Wear Tiles نشان می‌دهد که این نسخه از کتابخانه از نظر امکانات کامل شده و API آن قفل شده است (به جز مواردی که به عنوان آزمایشی علامت‌گذاری شده‌اند). Wear Tiles 1.4 شامل قابلیت‌ها و APIهای جدید زیر است:

  • پشتیبانی از ابزار برای تعیین داده‌های پلتفرم سفارشی برای پیش‌نمایش‌های Tiles در اندروید استودیو.

نسخه ۱.۴.۰-آلفا۰۵

۲۶ ژوئن ۲۰۲۴

androidx.wear.tiles:tiles-*:1.4.0-alpha05 is released. Version 1.4.0-alpha05 contains these commits .

نسخه ۱.۴.۰-آلفا۰۴

۲۹ مه ۲۰۲۴

androidx.wear.tiles:tiles-*:1.4.0-alpha04 is released. Version 1.4.0-alpha04 contains these commits .

نسخه ۱.۴.۰-آلفا۰۳

۱۴ مه ۲۰۲۴

androidx.wear.tiles:tiles-*:1.4.0-alpha03 منتشر شد. نسخه 1.4.0-alpha03 شامل این کامیت‌ها است.

رفع اشکالات

  • TileService#getActiveTilesAsync now uses WearSdk API (when available) to provide a more accurate result. ( I57bd8 )

نسخه ۱.۴.۰-آلفا۰۲

۱ مه ۲۰۲۴

androidx.wear.tiles:tiles-*:1.4.0-alpha02 is released. Version 1.4.0-alpha02 contains these commits .

تغییرات API

  • Move tileId to Builder constructor param as a mandatory field and document default timestamp value in the getter. ( I98c2b )
  • پیام‌های اولیه TileInteractionEvent ، TileEnter و TileLeave و Java Wrapperهای مورد نیاز برای دسته‌بندی رویدادهای ورود/خروج tile را اضافه کنید. ( I112b0 )
  • Refactor TileRenderer to use a Builder instead of a TileRenderer.Config object. ( Ib66f9 )
  • Add a platformDataProviders attribute to TileRenderer.Config . ( I6030d )
  • Add a new constructor to TileRenderer that supports a new TileRenderer.Config class. Other constructors are deprecated. ( Iae7ff )
  • یک فیلد platformDataValues ​​به TilePreviewData اضافه کنید تا امکان لغو مقادیر داده‌های پلتفرم فراهم شود. ( If437a )

رفع اشکالات

  • ثابت کنید که مقدار پیش‌فرض برای TileRenderer.Config.Builder#setTilesTheme صفر است. ( Iced18 )

نسخه ۱.۴.۰-آلفا۰۱

۶ مارس ۲۰۲۴

androidx.wear.tiles:tiles-*:1.4.0-alpha01 منتشر شد. نسخه 1.4.0-alpha01 شامل این کامیت‌ها است.

نسخه ۱.۳

نسخه ۱.۳.۰

۷ فوریه ۲۰۲۴

androidx.wear.tiles:tiles-*:1.3.0 is released. Version 1.3.0 contains these commits.

تغییرات مهم از زمان ۱.۲.۰

  • Updated tooling for tile preview support.
  • پشتیبانی از جستجوی کاشی‌های فعال متعلق به برنامه.

تغییرات اضافی

نسخه ۱.۳.۰-rc01

۲۴ ژانویه ۲۰۲۴

androidx.wear.tiles:tiles-*:1.3.0-rc01 is released. Version 1.3.0-rc01 contains these commits.

تغییرات API

  • Renamed TileService#getActiveTilesSnapshotAsync to getActiveTilesAsync . ( If6b87 )

Version 1.3.0-beta01

۱۰ ژانویه ۲۰۲۴

androidx.wear.tiles:tiles-*:1.3.0-beta01 is released. Version 1.3.0-beta01 contains these commits.

نسخه ۱.۳.۰-بتا۰۱ از Wear Tiles نشان می‌دهد که این نسخه از کتابخانه از نظر امکانات کامل شده و API آن قفل شده است (به جز مواردی که به عنوان آزمایشی علامت‌گذاری شده‌اند). Wear Tiles 1.3 شامل قابلیت‌ها و APIهای جدید زیر است:

  • ماژول ابزار کاشی‌های سایشی برای پشتیبانی از پیش‌نمایش کاشی به‌روزرسانی شده و برای انتشار آماده است.
  • Support for querying which tiles belonging to the app are active with TileService.getActiveTilesSnapshotAsync .

نسخه ۱.۳.۰-آلفا۰۴

۱۳ دسامبر ۲۰۲۳

androidx.wear.tiles:tiles-*:1.3.0-alpha04 منتشر شد. نسخه 1.3.0-alpha04 شامل این کامیت‌ها است.

نسخه ۱.۳.۰-آلفا۰۳

۲۹ نوامبر ۲۰۲۳

androidx.wear.tiles:tiles-*:1.3.0-alpha03 منتشر شد. نسخه 1.3.0-alpha03 شامل این کامیت‌ها است.

ویژگی‌های جدید

  • Added a new API TileService#getActiveTilesSnapshotAsync for querying which tiles belonging to the app are active. ( I6850e )

تغییرات API

  • Rename @TilePreview to @Preview ( Ifc08a )

Version 1.3.0-alpha02

۱۵ نوامبر ۲۰۲۳

androidx.wear.tiles:tiles-*:1.3.0-alpha02 منتشر شد. نسخه 1.3.0-alpha02 شامل این کامیت‌ها است.

ویژگی‌های جدید

  • We have added an experimental API to automatically scale the text size based on the space it has inside of the parent. ( Ibbe63 )

Version 1.3.0-alpha01

۱۸ اکتبر ۲۰۲۳

androidx.wear.tiles:tiles-*:1.3.0-alpha01 is released. Version 1.3.0-alpha01 contains these commits.

ویژگی‌های جدید

  • به جای پارامترهای فراخوانی TilePreviewData زمینه را به عنوان پارامتر متد پیش‌نمایش ارائه دهید. ( I5e97d )
  • ماژول ابزار کاشی‌های سایشی برای پشتیبانی از پیش‌نمایش کاشی به‌روزرسانی شده و برای انتشار آماده است. ( I63d0f )

نسخه ۱.۲

نسخه ۱.۲.۰

۹ آگوست ۲۰۲۳

androidx.wear.tiles:tiles-*:1.2.0 منتشر شد. نسخه ۱.۲.۰ شامل این کامیت‌ها است.

تغییرات مهم از زمان ۱.۱.۰

  • Stable release of Wear Tiles 1.2.0 ( read more )
  • Tiles 1.2 adds support for binding layout elements to platform data (for faster updates) and animation. For migration instructions see the release notes for ( 1.2.0-rc01 )

Version 1.2.0-rc01

۲۶ ژوئیه ۲۰۲۳

androidx.wear.tiles:tiles-*:1.2.0-rc01 is released. Version 1.2.0-rc01 contains these commits.

  • With the v1.2 release, Tiles library has been refactored and the majority of the features and APIs are moved into new ProtoLayout library (package androidx.wear.protolayout ) with a small subset remaining in Tiles ( androidx.wear.tiles ):

    • نام همه کلاس‌ها ثابت مانده است، فقط مواردی به نسخه ۱.۱ اضافه شده است.
    • The majority of the APIs have stayed the same and the only change is package name.
    • Some of the methods in TileService/TileBuilder have been deprecated and now have renamed versions that accept new ProtoLayout types instead of deprecated Tiles one.
  • To make this migration easier, we have put together a small instructions and script that does this renaming, see here .

تغییرات API

  • We have limited the maximum depth that a layout can have to 30 nested elements in tile. If that depth is exceeded, the tile renderer will show a previously inflated layout. ( I8a74b )

Version 1.2.0-beta01

۲۱ ژوئن ۲۰۲۳

androidx.wear.tiles:tiles-*:1.2.0-beta01 is released with no changes. Version 1.2.0-beta01 contains these commits.

نسخه ۱.۲.۰-آلفا۰۷

۷ ژوئن ۲۰۲۳

androidx.wear.tiles:tiles-*:1.2.0-alpha07 منتشر شد. نسخه 1.2.0-alpha07 شامل این کامیت‌ها است.

ویژگی‌های جدید

  • TileRenderer.setState allows setting the state for the rendering session. This state will apply to the current layout and any future one (until a new state is set) ( Iaaf35 )
  • protolayout types are now fully supported across all tile-renderer APIS. ( I428b0 )

رفع اشکالات

  • Setting a custom theme is now possible in the ProtoLayoutViewInstance . ( Iae8c0 )

نسخه ۱.۲.۰-alpha06

۲۴ مه ۲۰۲۳

androidx.wear.tiles:tiles-*:1.2.0-alpha06 منتشر شد. نسخه 1.2.0-alpha06 شامل این کامیت‌ها است.

تغییرات API

  • نام StateEntryValue را به DynamicDataValue تغییر دهید و APIهای state را برای استفاده از DynamicDataKey به‌روزرسانی کنید ( If1c01 ).
  • We are limiting the number of entries that are allowed in the StateStore in order to ensure that memory usage and state update time are well contained and controlled for each instance of the StateStore . As a result, the developer needs to ensure that they do not have more than MAX_STATE_ENTRY_COUNT entries in the map otherwise they will get an IllegalStateException when creating or updating the StateStore . ( Ibadb3 )

نسخه ۱.۲.۰-آلفا۰۵

۱۰ مه ۲۰۲۳

androidx.wear.tiles:tiles-*:1.2.0-alpha05 is released. Version 1.2.0-alpha05 contains these commits.

ویژگی‌های جدید

  • We've added tile id to the tile events and requests. This id can be used to associate some data with a tile instance in the carousel. ( Ic4f83 )

تغییرات API

  • TileRenderer.inflateAsync now returns a ListenableFuture . ( I2f2b9 )
  • سازندگان کاشی که جایگزینی در کتابخانه protolayout دارند، اکنون به عنوان منسوخ علامت‌گذاری شده‌اند. ( Ie2029 )

رفع اشکالات

  • javadoc مربوط به TileService.onTileResourcesRequest اکنون مشخص می‌کند که چه زمانی ممکن است سیستم این متد را فراخوانی کند. ( Iee037 )

نسخه ۱.۲.۰-آلفا۰۴

۱۹ آوریل ۲۰۲۳

androidx.wear.tiles:tiles-*:1.2.0-alpha04 is released. Version 1.2.0-alpha04 contains these commits.

رفع اشکالات

  • The gradle dependencies are now correctly set to api instead of implementation when required. ( I40503 )

نسخه ۱.۲.۰-آلفا۰۳

۵ آوریل ۲۰۲۳

androidx.wear.tiles:tiles-*:1.2.0-alpha03 is released. Version 1.2.0-alpha03 contains these commits.

تغییرات API

  • We've added support for androidx.wear.protolayout types to TileRenderer ( I4ac7f )
  • ObservableStateStore به StateStore تغییر نام داده شده است. ( Ieb0e2 )
  • Add overloads for protolayout types to TileRenderer ( I4ac7f )
  • فعال کردن انیمیشن‌ها در TileRenderer ( I07dcf )

نسخه ۱.۲.۰-آلفا۰۲

۲۲ مارس ۲۰۲۳

androidx.wear.tiles:tiles-*:1.2.0-alpha02 is released. Version 1.2.0-alpha02 contains these commits.

تغییرات API

  • Tiles Material library has been deprecated. Please use the new ProtoLayout Material library with the same functionalities. ( If242b )

رفع اشکالات

  • TileRenderer برای استفاده از ویژگی‌های جدید کتابخانه protolayout به‌روزرسانی شده است. ( I832f9 )

نسخه ۱.۲.۰-آلفا۰۱

۸ مارس ۲۰۲۳

androidx.wear.tiles:tiles-*:1.2.0-alpha01 is released. Version 1.2.0-alpha01 contains these commits.

ویژگی‌های جدید

  • ما onTileResourceRequest به TileService اضافه کرده‌ایم تا منابع را از کتابخانه protolayout فراهم کند. ( 983d9c5 )
  • ما ResourcesRequest و TileRequest برای پشتیبانی از انواع State و DeviceParameters از کتابخانه protolayout به‌روزرسانی کرده‌ایم. ( 88fa01d )
  • We've updated TileBuilders.Tile to support State and Timeline types from the protolayout library. ( 168619c )

رفع اشکالات

  • Improvements to Javadocs. ( I3ed73 )
  • رنگ‌های پیش‌فرض برای onPrimary و surface تغییر کرده‌اند. ( I0b039 )

نسخه ۱.۱

نسخه ۱.۱.۰

۲۴ آگوست ۲۰۲۲

androidx.wear.tiles:tiles-*:1.1.0 is released. Version 1.1.0 contains these commits.

تغییرات مهم از زمان ۱.۰.۰

  • This is the first stable release that contains the Tiles Material library (read more on our blog ).
  • This library contains components and layouts that are in-line with Material guidelines and easy to use. The included components are Button , Chip , CompactChip , TitleChip , CircularProgressIndicator , Text .All these components have their own colors object that can be built with the main Colors class to easily apply the same theme over all components. In addition to colors, there is a Typography class to easily get FontStyle objects using the typography name.
  • Besides components, there are recommended tile layouts - PrimaryLayout , EdgeContentLayout , MultiButtonLayout , MultiSlotLayout . All layouts have recommended padding and styles applied that are within Material guidelines.
  • برای فهرستی از اجزا و طرح‌بندی‌های موجود در کتابخانه‌ی Tiles Material، به یادداشت‌های انتشار Tiles مراجعه کنید.

نسخه ۱.۱.۰-rc01

۱۰ آگوست ۲۰۲۲

androidx.wear.tiles:tiles-*:1.1.0-rc01 is released. Version 1.1.0-rc01 contains these commits.

  • هیچ تغییر جدیدی بین نسخه بتا و RC وجود نداشت.

نسخه ۱.۱.۰-بتا۰۱

۲۷ ژوئیه ۲۰۲۲

androidx.wear.tiles:tiles-*:1.1.0-beta01 منتشر شد. نسخه 1.1.0-beta01 شامل این کامیت‌ها است.

نسخه ۱.۰.۰-بتا۰۱ کتابخانه Tiles Material شامل کامپوننت‌ها و طرح‌بندی‌هایی است که با دستورالعمل‌های Material مطابقت دارند و ساخت آنها آسان است.

اجزای شامل عبارتند از:

  • Button - clickable, circular-shaped object, with either icon, text or image with 3 predefined sizes.
  • Chip - clickable, stadium-shaped object that can contain an icon, primary and secondary labels, and has fixed height and customizable width.
  • CompactChip & TitleChip - two variations of the standard Chip that have smaller and larger heights, respectively, and can contain one line of text.
  • CircularProgressIndicator - colored arc around the edge of the screen with the given start and end angles, which can describe a full or partial circle with the full progress arc behind it.
  • Text - متن سبک‌دار که از سبک‌های تایپوگرافی توصیه‌شده‌ی Wear Material استفاده می‌کند

همه این کامپوننت‌ها شیء رنگ مخصوص به خود را دارند که می‌توان آن را با کلاس اصلی Colors ساخت تا به راحتی تم یکسانی را روی همه کامپوننت‌ها اعمال کرد. علاوه بر رنگ‌ها، یک کلاس Typography نیز وجود دارد که به راحتی می‌توان با استفاده از نام تایپوگرافی، اشیاء FontStyle دریافت کرد.

علاوه بر اجزا، طرح‌بندی‌های پیشنهادی برای کاشی‌ها نیز وجود دارد:

  • PrimaryLayout - A layout which can be customized by adding primary or secondary labels, content in the middle, and a primary chip at the bottom. The main content within this layout could be added as a MultiSlotLayout or MultiButtonLayout object.
  • EdgeContentLayout - یک طرح‌بندی برای میزبانی CircularProgressIndicator در اطراف لبه با محتوای اصلی در داخل و برچسب اصلی یا فرعی در اطراف آن.
  • MultiButtonLayout - چیدمانی که می‌تواند شامل ۱ تا ۷ دکمه باشد که بسته به تعداد آنها، مطابق با دستورالعمل‌های متریال مرتب شده‌اند.
  • MultiSlotLayout - A row-like style layout with horizontally aligned and spaced slots (for icons or other small content).

تمام طرح‌بندی‌ها دارای فاصله‌گذاری توصیه‌شده و سبک‌های اعمال‌شده هستند که در دستورالعمل‌های متریال قرار دارند.

تغییرات API

  • Major refactor to the Chip components that includes separating setters in Builder so that each part of the content is passed in separately with renaming to match guidelines (primary label, secondary label, image resource id). Additionally, content description will be auto generated if not set. ( I57622 )
  • ProgressIndicatorLayout has been renamed to EdgeContentLayout . ( Ic1aa6 )
  • Button size contents have been renamed to names without _BUTTON suffix in it with additional Javadocs clarification across Button . ( I1dfe2 )

رفع اشکالات

  • حاشیه‌ها، فاصله‌گذاری و چیدمان کلی در طرح‌بندی‌های متریال به‌روزرسانی شده است تا با انواع طرح‌بندی‌ها و اندازه‌ها و شکل‌های صفحه نمایش توصیه‌شده سازگار باشد.
  • Improvements to Material Layouts. In MultiSlotLayout slots are now flexible in width where they'll wrap content instead of being fixed size.( I52919 ),( If18b4 )
  • Area that can be tapped on CompactChip has been increased to follow accessibility guidelines. ( Ie8264 )

نسخه ۱.۱.۰-آلفا۰۹

۲۹ ژوئن ۲۰۲۲

androidx.wear.tiles:tiles-*:1.1.0-alpha09 is released. Version 1.1.0-alpha09 contains these commits.

ویژگی‌های جدید

  • ما پشتیبانی از افزودن برچسب‌های اختیاری را در ProgressIndicatorLayout اضافه کرده‌ایم. ( I30788 )

تغییرات API

  • Helper methods for ElementMetadata now accept ElementMetadata instead of Modifiers. ( I5a70f )

رفع اشکالات

  • The limitation of 9 characters on CompactChip was removed. If text is too big to fit into the screen in PrimaryLayout , it will be ellipsized. ( Id56ec )
  • گیرنده‌های Chip حالا پسوند محتوا دارند. ( Iba437 )
  • Javadoc clarification across Tiles Material classes. ( I56e41 ), ( I80f31 ), ( Iba437 )

Version 1.1.0-alpha08

۱ ژوئن ۲۰۲۲

androidx.wear.tiles:tiles-*:1.1.0-alpha08 منتشر شد. نسخه 1.1.0-alpha08 شامل این کامیت‌ها است.

ویژگی‌های جدید

  • تگ متادیتا به Modifiers اضافه شده است تا برای ردیابی متادیتای کامپوننت با متدهای کمکی اضافه شده به کلاس Helper استفاده شود. ( I70db2 ) ، ( I30c3d )
  • Static method fromLayoutElement has been added to all components and layouts inside of Tiles Material. It should be used for testing, to cast a LayoutElement obtained from accessing the contents of a container to its original type. ( Ia572a ),( Idbd8a ),( I3ae13 ),( I292fe ),( I8b20f ),( I3cacb ),( I84b24 )

نسخه ۱.۱.۰-آلفا۰۷

۱۸ مه ۲۰۲۲

androidx.wear.tiles:tiles-*:1.1.0-alpha07 منتشر شد. نسخه 1.1.0-alpha07 شامل این کامیت‌ها است.

تغییرات API

  • Getters related to different setters for content have now been added to the ProgressIndicatorLayout and PrimaryLayout . Now all setters in these classes have matching getters.( Iddbe5 ) ( Iabe4e )
  • تابع Getter برای توصیف محتوا در کامپوننت‌های متریال می‌تواند مقدار null را برگرداند، زیرا مقدار Setter آن اجباری نیست.
  • Attempting to create a Button with no content passed in will result in IllegalArgumentException . ( I7fc0c )
  • فیلدهای مربوط به رنگ آیکون در ChipColors از iconTintColor به iconColor تغییر نام داده‌اند. ( Ic053b )

رفع اشکالات

  • Added androidTests for Layouts in Tiles Material. ( I96404 )

Version 1.1.0-alpha06

۱۱ مه ۲۰۲۲

androidx.wear.tiles:tiles-*:1.1.0-alpha06 منتشر شد. نسخه 1.1.0-alpha06 شامل این کامیت‌ها است.

ویژگی‌های جدید

  • The new layout has been added to the Material Layouts sub library - MultiButtonLayout . It represents a layout that can contain between 1 and 7 buttons arranged in line with the Material guidelines. In most cases, this layout should be passed in as a content to the PrimaryLayout . ( Ib727f )

تغییرات API

  • MultiSlotLayout has been refactored to have only slots in it. This layout should be passed as a content to the main PrimaryLayout . ( I1870f )
  • رنگ‌های پیش‌فرض تعریف‌شده برای CircularProgressIndicator به‌روزرسانی شدند تا به جای مقادیر اولیه و ثانویه، یک مقدار داشته باشند. ( I64a51 )
  • دریافت‌کننده برای فاصله‌گذار افقی در MultiSlotLayout اضافه شد. ( I11e1e )

رفع اشکالات

  • تست‌های اندروید برای کامپوننت‌ها به Tiles Material اضافه شده‌اند. ( I20041 )

نسخه ۱.۱.۰-آلفا۰۵

۶ آوریل ۲۰۲۲

androidx.wear.tiles:tiles-*:1.1.0-alpha05 is released. Version 1.1.0-alpha05 contains these commits.

ویژگی‌های جدید

  • Added helper methods to convert LayoutElement to Layout, Timeline, TimelineEntry into these classes for easier Tiles building. ( I2f6d1 )
  • Colors object was added to the Material library to be passed in across components' colors as a theme. ( I0792c )

تغییرات API

  • Material Text component requires text passed in into constructor. This component can now be customized by setting weight. ( I25dbd )
  • Removed constants from ChipDefaults that are not used in the public setters. ( I7baed )
  • Removed getters from CompactChip & TitleChip that don't have matching setters. ( I99e85 )
  • DEFAULT_PADDING از ProgressIndicatorDefaults حذف شد. ( Idabcd )
  • کامپوننت‌های متریال اکنون به جای رشته، CharSequence برای توصیف محتوا می‌پذیرند. ( I5b21a )

رفع اشکالات

  • Refactored setters implementation of optional parameters in Button. ( Ib7135 )
  • نوع سبک فونت به فونت‌ها در تایپوگرافی اضافه شده است. ( I8dbc6 )

نسخه ۱.۱.۰-آلفا۰۴

۲۳ مارس ۲۰۲۲

androidx.wear.tiles:tiles-*:1.1.0-alpha04 is released. Version 1.1.0-alpha04 contains these commits.

ویژگی‌های جدید

  • Optional primary or secondary label can be added to PrimaryLayout . ( Ib9916 )
  • کامپوننت متن را می‌توان با تنظیم overflow، italic، underline و غیره سفارشی کرد ( I703f7 )

تغییرات API

  • ثابت‌های رنگ پیش‌فرض از رابط برنامه‌نویسی کاربردی (API) Tiles Material حذف شده‌اند. ( I0ab55 )
  • All clickable components in Tiles Material require Clickable object in their Builder's constructor instead of an Action. ( I2f101 )

رفع اشکالات

  • متن اکنون در کامپوننت Chip and Text در سرریز، یک نقطه حذف رسم می‌کند. ( I8a2f8 )
  • Improved components look when the user font scale is set to large. ( Ib63b1 )
  • Clarify Javadocs of setPrimaryChipContent in PrimaryLayout. ( Ie6296 )

نسخه ۱.۱.۰-آلفا۰۳

۲۳ فوریه ۲۰۲۲

androidx.wear.tiles:tiles-*:1.1.0-alpha03 منتشر شد. نسخه 1.1.0-alpha03 شامل این کامیت‌ها است.

تغییرات API

  • مؤلفه Text با سبک‌های تایپوگرافی توصیه‌شده به متریال TIles اضافه شده است. ( Iec0ae )

نسخه ۱.۱.۰-آلفا۰۲

۹ فوریه ۲۰۲۲

androidx.wear.tiles:tiles-*:1.1.0-alpha02 is released. Version 1.1.0-alpha02 contains these commits.

ویژگی‌های جدید

  • A new sub-library layouts in Tiles Material has been added. It contains opinionated Tiles layouts with recommended padding and margin applied to make Tile development faster and easier implementation. Initial layouts are:
    • PrimaryLayout ( I7ba91 ) that represents the layout with a primary chip at the bottom and content in the center.
    • MultiSlotLayout ( I32104 ) that represents a layout with labels on rows 1 and 3, horizontally aligned and spaced slots on row 2 and all followed by a 4th row that contains a primary chip.
    • ProgressIndicatorLayout ( I9fec6 ) that represents a layout with the circular progress indicator around the edge of the screen and the given content inside.
  • CircularProgressIndicator ( Ic4b88 ) has been added to the Tiles Material components.

تغییرات API

  • Renamed remaining constants used by TitleChip to include title in the name. ( I14f4c )
  • setHorizontalAlignment method has been added to the Chip . ( Ie6e0b )

نسخه ۱.۱.۰-آلفا۰۱

۲۶ ژانویه ۲۰۲۲

androidx.wear.tiles:tiles-*:1.1.0-alpha01 is released. Version 1.1.0-alpha01 contains these commits.

ویژگی‌های جدید

  • The new library Tiles Material has been added. It contains components to build Tiles layouts faster and easier with Material design. Initial components are:
    • Button
    • Chip
    • CompactChip
    • TitleChip

رفع اشکالات

  • Fix bug in TileUiClient which led to cached resources being discarded. ( I60e0b )

نسخه ۱.۰

نسخه ۱.۰.۱

۲۶ ژانویه ۲۰۲۲

androidx.wear.tiles:tiles-*:1.0.1 is released. Version 1.0.1 contains these commits.

رفع اشکالات

  • Fix bug in TileUiClient which led to cached resources being discarded. ( I60e0b )

نسخه ۱.۰.۰

۳ نوامبر ۲۰۲۱

androidx.wear.tiles:tiles-*:1.0.0 is released. Version 1.0.0 contains these commits.

Major features of 1.0.0

  • The Wear Tiles library provides functionality to build custom Tiles for Wear OS devices, along with the classes that allow the system to fetch your Tile and display it right next to your watch face.
  • tiles-renderer allows you to show a Tile as part of an Android Activity, facilitating quick testing of your tile layouts.

نسخه ۱.۰.۰-rc01

۲۷ اکتبر ۲۰۲۱

androidx.wear.tiles:tiles-*:1.0.0-rc01 is released. Version 1.0.0-rc01 contains these commits.

نسخه ۱.۰.۰-بتا۰۱

۱۳ اکتبر ۲۰۲۱

androidx.wear.tiles:tiles-*:1.0.0-beta01 is released. Version 1.0.0-beta01 contains these commits.

رفع اشکالات

  • Fixed NullPointerException in TileUiClient when an empty resource version was provided. ( I0586e )

Version 1.0.0-alpha12

۲۹ سپتامبر ۲۰۲۱

androidx.wear.tiles:tiles-*:1.0.0-alpha12 is released. Version 1.0.0-alpha12 contains these commits.

رفع اشکالات

  • UpdateScheduler no longer uses a weak reference, fixing issues where TileUiClient would not update( I1120d , b/199061124 )

  • Declare that SysUiTileUpdateRequester queries PacakgeManager, fixing a bug where tile updates would not work on R+ devices. ( I1120d )

نسخه ۱.۰.۰-آلفا۱۱

۱ سپتامبر ۲۰۲۱

androidx.wear.tiles:tiles-*:1.0.0-alpha11 is released. Version 1.0.0-alpha11 contains these commits.

ویژگی‌های جدید

  • Added and released a testing library, androidx.wear.tiles:tiles-testing library to enable developers to test their tiles more easily. ( Iedb6b )

تغییرات API

  • Renamed TileProviderService to TileService. ( I1ad2c )
  • Tiles builders updated; static .builder() methods have been deprecated in favour of calling new Foo.Builder() , and setter overloads which accepted a Builder instance have been removed. ( Ia9606 )
  • TileRenderer should now use a UI context, instead of the application context. ( I84b61 )

رفع اشکالات

  • Fix bug causing multiple underlines to be applied in certain situations. ( Ib6712 )

نسخه ۱.۰.۰-آلفا۱۰

۱۸ آگوست ۲۰۲۱

androidx.wear.tiles:tiles:1.0.0-alpha10 , androidx.wear.tiles:tiles-proto:1.0.0-alpha10 , and androidx.wear.tiles:tiles-renderer:1.0.0-alpha10 are released. Version 1.0.0-alpha10 contains these commits.

تغییرات API

  • Removed layout checkers from public API. These will always be enabled, although will only raise a warning if a check fails. ( Ie9f29 )
  • TileRenderer now accepts a UI context, instead of the Application Context.

رفع اشکالات

  • Fixed bug which prevented clickable elements in a Spannable from being clicked.

نسخه ۱.۰.۰-آلفا۰۹

۲۱ ژوئیه ۲۰۲۱

androidx.wear.tiles:tiles:1.0.0-alpha09 , androidx.wear.tiles:tiles-proto:1.0.0-alpha09 , and androidx.wear.tiles:tiles-renderer:1.0.0-alpha09 are released. Version 1.0.0-alpha09 contains these commits.

ویژگی‌های جدید

  • Added layout checkers to Wear Tiles' renderer. ( I3a869 )
    • These are used to validate best practises in your tile. To begin with, these will raise a warning if your tile does not contain any elements with a Semantics modifier.
  • Added documentation for DefaultTileProviderClient and TestingTileProviderClient constructors . ( I9f4b9 )

تغییرات API

  • Renaming in TileProviderClient ( I0ec36 ):
    • getApiVersion -> requestApiVersion
    • tile/resourcesRequest -> requestTile/Resources
    • onTileFooEvent -> sendOnTileFooEvent
  • Added layout checkers to Wear Tiles' renderer. ( I3a869 )

رفع اشکالات

  • Ensure that a LaunchAction target does not have special permissions. ( I39136 )

نسخه ۱.۰.۰-آلفا۰۸

۳۰ ژوئن ۲۰۲۱

androidx.wear.tiles:tiles:1.0.0-alpha08 , androidx.wear.tiles:tiles-proto:1.0.0-alpha08 , and androidx.wear.tiles:tiles-renderer:1.0.0-alpha08 are released. Version 1.0.0-alpha08 contains these commits.

ویژگی‌های جدید

  • Spannables now support line_height instead of line_spacing.

تغییرات API

  • Add support for line_height in Spannables, remove line_spacing. ( Ibeb54 )
    • Code using line_spacing should be ported to use line_height instead.

رفع اشکالات

  • Fix bug when using proportional dimensions. ( I37ace )
  • Fix bug preventing Text elements having content descriptions. ( Id2c7d )

نسخه ۱.۰.۰-آلفا۰۷

۱۶ ژوئن ۲۰۲۱

androidx.wear.tiles:tiles:1.0.0-alpha07 , androidx.wear.tiles:tiles-proto:1.0.0-alpha07 , and androidx.wear.tiles:tiles-renderer:1.0.0-alpha07 are released. Version 1.0.0-alpha07 contains these commits.

تغییرات API

  • Add TileProviderClient interface, and expose DefaultTileProviderClient , allowing implementations to bind to a TileProviderService interface. ( I69165 )

نسخه ۱.۰.۰-alpha06

۲ ژوئن ۲۰۲۱

androidx.wear.tiles:tiles:1.0.0-alpha06 , androidx.wear.tiles:tiles-proto:1.0.0-alpha06 , and androidx.wear.tiles:tiles-renderer:1.0.0-alpha06 are released. Version 1.0.0-alpha06 contains these commits.

تغییرات API

  • All Builder classes now contain getters for all properties. Note that these are intended for testing purposes only ( I9d155 )
  • Package change: Classes in androidx.wear.tiles.builders have been moved to androidx.wear.tiles .
  • Add experimental tint support to Tiles. ( I38929 )
  • Renamed LayoutElementBuilders.HALIGN_* to LayoutElementBuilders.HORIZONTAL_ALIGN_* ( I67e58 )
  • Renamed LayoutElementBuilders.VALIGN_* to LayoutElementBuilders.VERTICAL_ALIGN_* ( I67e58 )
  • Renamed LayoutElementBuilders.SPAN_VALIGN_* to LayoutElementBuilders.SPAN_VERTICAL_ALIGN_* ( I67e58 )
  • Added builder classes for Requests and Events. ( Ib5cf4 )
  • Migrated TileProviderService to use request and event classes from RequestBuilders and EventBuilders , rather than RequestReaders / EventReaders (eg onTileRequest now provides you with a RequestBuilders.TileRequest , rather than RequestReaders.TileRequest ). ( I46ea1 )

رفع اشکالات

  • Fix bug in async image loading for Tiles renderer. ( Iad9b0 )
  • Fixed layout bug when placing an image with width or height set to expand() in a Box with width or height set to wrap() . ( I33770 )

نسخه ۱.۰.۰-آلفا۰۵

۱۸ مه ۲۰۲۱

androidx.wear.tiles:tiles:1.0.0-alpha05 , androidx.wear.tiles:tiles-proto:1.0.0-alpha05 , and androidx.wear.tiles:tiles-renderer:1.0.0-alpha05 are released. Version 1.0.0-alpha05 contains these commits.

تغییرات API

  • Removed getTileId from incoming tile events ( TileAddEvent , TileRemoveEvent , TileEnterEvent , TileLeaveEvent , TileRequest ). ( Ifbba2 )
  • Renamed ImageResource#setAndroidResourceByResid to setAndroidResourceByResId ( I4ba6e )
  • Renamed TimelineManager#deInit to close, and implemented AutoCloseable . ( I5dff2 )

نسخه ۱.۰.۰-آلفا۰۴

۵ مه ۲۰۲۱

androidx.wear.tiles:tiles:1.0.0-alpha04 , androidx.wear.tiles:tiles-proto:1.0.0-alpha04 , and androidx.wear.tiles:tiles-renderer:1.0.0-alpha04 are released. Version 1.0.0-alpha04 contains these commits.

تغییرات API

  • Hidden concrete TileProviderService classes.
    • Made TileUpdateRequester take a Class<? extends TileProviderService> . ( Ib7cca )
  • Added ability to add extras to AndroidActivity. ( I748f4 )

Tiles Version 1.0.0-alpha03

۲۱ آوریل ۲۰۲۱

androidx.wear.tiles:tiles:1.0.0-alpha03 , androidx.wear.tiles:tiles-proto:1.0.0-alpha03 , and androidx.wear.tiles:tiles-renderer:1.0.0-alpha03 are released. Version 1.0.0-alpha03 contains these commits.

تغییرات API

  • Rename TileManager -> TileClient
    • Rename TileManager#create -> TileClient#connect ( I91839 )

رفع اشکالات

  • Added Proguard rules to ensure tiles and tiles-renderer work properly with Proguard enabled ( Ie3d85 )

نسخه ۱.۰.۰-آلفا۰۲

۷ آوریل ۲۰۲۱

androidx.wear.tiles:tiles:1.0.0-alpha02 , androidx.wear.tiles:tiles-proto:1.0.0-alpha02 , and androidx.wear.tiles:tiles-renderer:1.0.0-alpha02 are released. Version 1.0.0-alpha02 contains these commits.

تغییرات API

  • androidx.wear:wear-tiles has moved groups, and should now be referred to as androidx.wear.tiles:tiles
  • androidx.wear:wear-tiles-renderer has moved groups, and should now be referred to as androidx.wear.tiles:tiles-renderer
  • TileRenderer.LoadActionListener now consumes an instance of androidx.wear.tiles.builders.StateBuilders.State rather than androidx.wear.tiles.proto.StateProto.State .
  • TileRenderer now accepts Tile resources from androidx.wear.tiles.builders.ResourceBuilders.Resources , rather than an instance of androidx.wear.tiles.renderer.ResourceAccessors .

رفع اشکالات

  • Fixed inability to use LoadActionListener , as it exposed an internal class.

نسخه ۱.۰.۰-آلفا۰۱

۱۰ مارس ۲۰۲۱

androidx.wear:wear-tiles:1.0.0-alpha01 , androidx.wear:wear-tiles-proto:1.0.0-alpha01 , and androidx.wear:wear-tiles-renderer:1.0.0-alpha01 are released. Version 1.0.0-alpha01 contains these commits.

ویژگی‌های جدید

  • The Wear Tiles Renderer library provides functionality to build custom Tiles for Wear OS devices, along with the classes that allow the system to fetch your Tile and display it right next to your watch face.