AndroidX 和 Android 喷气背包
AndroidX and Android Jetpack
据我所知,Androidx 本身就是一个库,androidjetpack 是一组库。 androidx 是 Android jetpack 中的库吗?我对 androidx 和 android 喷气背包有点困惑。谁能解释清楚
根据 AndroidX FAQ doc:
How are androidx
and AndroidX related to Jetpack?
They are all the same thing! In a sentence, androidx
is the packaging and AndroidX is the development workflow for all components in Jetpack. Jetpack is the external branding for libraries within androidx
.
In more detail, Jetpack is the external branding for the set of components, tools, and guidance that improve the developer experience on Android. AndroidX is the open-source development project that defines the workflow, versioning, and release policies for ALL libraries included in Jetpack. All libraries within the androidx
Java package follow a consistent set of API design guidelines, conform to SemVer and alpha/beta revision cycles, and use the Android issue tracker for bugs and feature requests.
androidx.*
一直在替换旧的 android.support.*
和 android.arch.*
库集。
它还包括对所有旧库的支持(当然,已弃用的库除外)。
Android Jetpack 是由 Google 开发的一套工具,用于编写遵循特定标准的应用程序并减轻像我们这样的开发人员的工作。
Android Jetpack“宇宙”的一部分是 Room(一个有助于编写 SQL 数据库的库)、DataStore(目前仍处于测试阶段,但很快它将取代 SharedPreference 以在例如,我们在应用程序中设置了深色模式,我们关闭它,当我们打开它时,我们希望仍然有深色模式,LiveData(用于异步数据流),......等等。
所有这一切都与 Kotlin 语言的不断发展和 COROUTINES 永无止境的用处齐头并进,仅举一例。
希望这篇概述对读者有用。
据我所知,Androidx 本身就是一个库,androidjetpack 是一组库。 androidx 是 Android jetpack 中的库吗?我对 androidx 和 android 喷气背包有点困惑。谁能解释清楚
根据 AndroidX FAQ doc:
How are
androidx
and AndroidX related to Jetpack?They are all the same thing! In a sentence,
androidx
is the packaging and AndroidX is the development workflow for all components in Jetpack. Jetpack is the external branding for libraries withinandroidx
.In more detail, Jetpack is the external branding for the set of components, tools, and guidance that improve the developer experience on Android. AndroidX is the open-source development project that defines the workflow, versioning, and release policies for ALL libraries included in Jetpack. All libraries within the
androidx
Java package follow a consistent set of API design guidelines, conform to SemVer and alpha/beta revision cycles, and use the Android issue tracker for bugs and feature requests.
androidx.*
一直在替换旧的 android.support.*
和 android.arch.*
库集。
它还包括对所有旧库的支持(当然,已弃用的库除外)。
Android Jetpack 是由 Google 开发的一套工具,用于编写遵循特定标准的应用程序并减轻像我们这样的开发人员的工作。
Android Jetpack“宇宙”的一部分是 Room(一个有助于编写 SQL 数据库的库)、DataStore(目前仍处于测试阶段,但很快它将取代 SharedPreference 以在例如,我们在应用程序中设置了深色模式,我们关闭它,当我们打开它时,我们希望仍然有深色模式,LiveData(用于异步数据流),......等等。
所有这一切都与 Kotlin 语言的不断发展和 COROUTINES 永无止境的用处齐头并进,仅举一例。
希望这篇概述对读者有用。