Skip to content

[Feature] 希望增加版本代码比较功能 #1046

@emptylight370

Description

@emptylight370

新功能描述

希望能在规则中增加版本代码比较功能(因为版本代码是纯数字,感觉可以使用整型的比较功能),可以在rules中通过maxVersionCodeminVersionCode或类似的字段来创建启用该规则的区间,只存在一个字段时范围为[0,max]或[min,+∞)这样的,两个字段同时存在应该就是[min,max]这样的。

跟原有的includeVersionCodesexcludeVersionCodes的同时存在时什么字段生效或许需要进一步讨论。

以下列出两种想法:

  1. include仅在区间外属于有效字段,exclude仅在区间内属于有效字段
  2. include直接失效,exclude仅在区间内属于有效字段

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions