为什么方法计数在从 android-support-v4 切换到 v13 时没有下降
Why does the method count goes up not down when switching from android-support-v4 to v13
从支持库 v4 切换到 v13 时,我预计方法计数会下降,因为现在 SDK 版本 13+ 中的所有方法都不必再位于支持 jar 中。好吧,我检查了当我将 v7 与 v13 交换时会发生什么,这里是每个包的方法计数。
使用android-support-v4时:
android.support: 10117
v4: 6402
v7: 3712
并且在使用 android-support-v13 时:
android.support: 10203
v13: 82
v4: 6406
v7: 3712
为什么 v13 版本中仍然包含 v4 中的所有方法(+4 个附加方法?!)?阅读 http://developer.android.com/tools/support-library/features.html 我认为版本号与 API 级别编号有关。
When switching from support library v4 to v13 I expected the method count number to go down because now all the methods which are in the SDK version 13+ don't have to be in the support jar anymore.
没有。 support-v13
包含 support-v4
中的所有内容,外加仅与构建目标为 API 级别 13+ 的应用相关的附加 类。
Why are there still all methods from v4 (+4 additional ones?!) included in the v13 version?
由于 Android 支持包早于 Android 广泛使用诸如 Maven 和 Gradle 之类的东西,具有传递依赖性支持,Google 选择 support-v13
是 support-v4
的超集。如果他们必须重新做一遍,他们可能会把 support-v13
做成一个依赖于 support-v4
.
的小 JAR。
从支持库 v4 切换到 v13 时,我预计方法计数会下降,因为现在 SDK 版本 13+ 中的所有方法都不必再位于支持 jar 中。好吧,我检查了当我将 v7 与 v13 交换时会发生什么,这里是每个包的方法计数。
使用android-support-v4时:
android.support: 10117
v4: 6402
v7: 3712
并且在使用 android-support-v13 时:
android.support: 10203
v13: 82
v4: 6406
v7: 3712
为什么 v13 版本中仍然包含 v4 中的所有方法(+4 个附加方法?!)?阅读 http://developer.android.com/tools/support-library/features.html 我认为版本号与 API 级别编号有关。
When switching from support library v4 to v13 I expected the method count number to go down because now all the methods which are in the SDK version 13+ don't have to be in the support jar anymore.
没有。 support-v13
包含 support-v4
中的所有内容,外加仅与构建目标为 API 级别 13+ 的应用相关的附加 类。
Why are there still all methods from v4 (+4 additional ones?!) included in the v13 version?
由于 Android 支持包早于 Android 广泛使用诸如 Maven 和 Gradle 之类的东西,具有传递依赖性支持,Google 选择 support-v13
是 support-v4
的超集。如果他们必须重新做一遍,他们可能会把 support-v13
做成一个依赖于 support-v4
.