Mac Framework Version(Minor, Compatibility version)

refer: https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/VersionInformation.html

 

Minor Versions

Within a major version of a framework, you can also designate the current minor version. Minor versions are also referred to as “compatible versions” because they retain compatibility with the applications linked to the framework. Minor versions don’t change the existing public interfaces of the framework. Instead, they add new interfaces or modify the implementation of the framework in ways that provide new behavior without changing the old behavior.

Within any major version of the framework, only one minor version at a time exists. Subsequent minor versions simply overwrite the previous one. This differs from the major version scheme, in which multiple major versions coexist in the framework bundle.

The following sections describe how you designate minor version information in your framework and how the system uses that information to ensure applications can run.

Minor Version Numbering Scheme

Frameworks employ two separate numbers to track minor version information. The current version number tracks individual builds of your framework and is mostly for internal use by your team. You can use this number to track a group of changes to your framework and you can increment it as often as seems appropriate. A typical example would be to increment this number each time you build and distribute your framework to your internal development and testing teams.

The compatibility version number of your framework is more important because it marks changes to your framework’s public interfaces. When you make certain kinds of changes to public interfaces, you should set the compatibility version to match the current version of your framework. Thus, the compatibility version typically lags behind the current version. Only when your framework’s public interfaces change do the two numbers match up.

Remember that not all changes to your framework’s public interfaces can be matched by incrementing the compatibility version. Some changes may require that you release a new major version of your framework. See Versioning Guidelines for a summary of the changes you can make for each version.

"Framework Compatibility Matrix"是一个XML文件,它列出了Android Framework中各个模块的版本和它们之间的兼容性。这个矩阵包含了Android Framework的各个版本,以及每个版本中包含的模块和它们之间的兼容性信息。这个矩阵可以帮助开发人员确定他们的应用程序是否与特定版本的Android Framework兼容。 在Android开发中,开发人员需要确保他们的应用程序与特定版本的Android Framework兼容。如果应用程序使用了不兼容的API或库,它可能无法在某些设备上运行,或者在某些设备上可能会出现错误。因此,开发人员需要查看Framework Compatibility Matrix来确定他们的应用程序是否与他们所针对的设备兼容。 以下是一个示例Framework Compatibility Matrix的XML文件: ```xml <?xml version="1.0" encoding="utf-8"?> <compatibility-matrix version="1.0" xmlns:android="http://schemas.android.com/apk/res/android"> <hal format="hidl"> <name>android.hardware.camera</name> <version>2.0</version> <interface> <name>ICamera</name> <instance>camera</instance> <version>2.0</version> </interface> </hal> <hal format="hidl"> <name>android.hardware.camera</name> <version>3.0</version> <interface> <name>ICamera</name> <instance>camera</instance> <version>3.0</version> </interface> </hal> <hal format="hidl"> <name>android.hardware.camera</name> <version>4.0</version> <interface> <name>ICamera</name> <instance>camera</instance> <version>4.0</version> </interface> </hal> <hal format="hidl"> <name>android.hardware.camera</name> <version>5.0</version> <interface> <name>ICamera</name> <instance>camera</instance> <version>5.0</version> </interface> </hal> </compatibility-matrix> ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值