AppCompat/Support 26.1.0 和 AndroidX 中的库之间的兼容性
Compatibility between Library in AppCompat/Support 26.1.0 and AndroidX
我的公司为 Android 开发了一个库。目前我们有一个实时版本:
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.android.support:support-core-utils:26.1.0'
和
的开发版本
implementation "com.android.support:cardview-v7:28.0.0"
implementation "com.android.support:appcompat-v7:28.0.0"
implementation "com.android.support:support-core-utils:28.0.0"
implementation "com.android.support:support-compat:28.0.0"
implementation "com.android.support:support-fragment:28.0.0"
implementation "com.android.support:design:28.0.0"
在我们的测试应用中,我们找不到任何问题,但他们在实施时使用了“26.1.0”。此外,我在 Android 的门户网站上搜索了信息,但他们没有太多关于库开发的信息,我能找到的关于迁移到 androidX 的所有信息都与应用程序开发人员有关。
我的问题是:
推送28.0.0更新时,是否会出现与客户端应用程序兼容的问题?
是否值得将整个库迁移到 AndroidX?
是否会破坏与应用程序的兼容性 运行 AppCompat/Support?
AndroidX replaces the original support library APIs with packages in
the androidx namespace. Only the package and Maven artifact names
changed; class, method, and field names did not change.
通常,您可以期待以下从旧包到新包的映射:
Old New
android.support.** androidx.@
android.databinding.** androidx.databinding.@
android.design.** com.google.android.material.@
架构组件库也已移至 androidx 下,并且简化了它们的包名称以反映它们与核心库的集成。
Note: We recommend working in a separate branch when migrating. Also
try to avoid refactoring your code while performing the migration.
我的公司为 Android 开发了一个库。目前我们有一个实时版本:
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.android.support:support-core-utils:26.1.0'
和
的开发版本 implementation "com.android.support:cardview-v7:28.0.0"
implementation "com.android.support:appcompat-v7:28.0.0"
implementation "com.android.support:support-core-utils:28.0.0"
implementation "com.android.support:support-compat:28.0.0"
implementation "com.android.support:support-fragment:28.0.0"
implementation "com.android.support:design:28.0.0"
在我们的测试应用中,我们找不到任何问题,但他们在实施时使用了“26.1.0”。此外,我在 Android 的门户网站上搜索了信息,但他们没有太多关于库开发的信息,我能找到的关于迁移到 androidX 的所有信息都与应用程序开发人员有关。
我的问题是:
推送28.0.0更新时,是否会出现与客户端应用程序兼容的问题?
是否值得将整个库迁移到 AndroidX?
是否会破坏与应用程序的兼容性 运行 AppCompat/Support?
AndroidX replaces the original support library APIs with packages in the androidx namespace. Only the package and Maven artifact names changed; class, method, and field names did not change.
通常,您可以期待以下从旧包到新包的映射:
Old New
android.support.** androidx.@
android.databinding.** androidx.databinding.@
android.design.** com.google.android.material.@
架构组件库也已移至 androidx 下,并且简化了它们的包名称以反映它们与核心库的集成。
Note: We recommend working in a separate branch when migrating. Also try to avoid refactoring your code while performing the migration.