codemagic-ci-cd / cli-tools

Various utilities to managing Android and iOS app builds, code signing, and deployment.
https://codemagic.io/start/
GNU General Public License v3.0
243 stars 42 forks source link

Feature: Add decorator to mark functions as deprecated #326

Closed priitlatt closed 1 year ago

priitlatt commented 1 year ago

Add decorator deprecated to mark functions and methods as obsolete in a uniform way.

Use this new decorator to replace inlined warnings in ProfileType.devices_allowed. Also mark BundleIds.list_capabilility_ids as deprecated, and create new method without typo in the name to replace that. Original method is persisted as a mere proxy for now.

Updated actions:

An example use-case of how this works can be seen from this mocked action:

Screenshot 2023-06-28 at 16 35 52