From b23676934f0bb1945da5b649ac8d08d073ec7765 Mon Sep 17 00:00:00 2001 From: mir-huzaif Date: Thu, 11 Sep 2025 14:42:20 +0530 Subject: [PATCH 1/3] chore: added missing deprecation annotations --- examples/LexActivator.pas | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/examples/LexActivator.pas b/examples/LexActivator.pas index 3d3a236..eb94009 100644 --- a/examples/LexActivator.pas +++ b/examples/LexActivator.pas @@ -100,6 +100,8 @@ function LAKeyStatusToString(Item: TLAKeyStatus): string; This function must be called on every start of your program before any other functions are called. + NOTE: This function is deprecated. Use SetProductData() instead. + PARAMETERS: * FilePath - absolute path of the product file (Product.dat) @@ -109,7 +111,7 @@ function LAKeyStatusToString(Item: TLAKeyStatus): string; other functions will work. *) -procedure SetProductFile(const FilePath: UnicodeString); +procedure SetProductFile(const FilePath: UnicodeString); deprecated 'Use SetProductData instead'; (* PROCEDURE: SetProductData() @@ -313,6 +315,8 @@ procedure SetTwoFactorAuthenticationCode(const TwoFactorAuthenticationCode: Unic This function must be called before ActivateLicense() or IsLicenseGenuine() function if 'requireAuthentication' property of the license is set to true. + NOTE: This function is deprecated. Use AuthenticateUser() instead. + PARAMETERS: * Email - user email address. * Password - user password. @@ -320,7 +324,7 @@ procedure SetTwoFactorAuthenticationCode(const TwoFactorAuthenticationCode: Unic EXCEPTIONS: ELAProductIdException, ELALicenseKeyException *) -procedure SetLicenseUserCredential(const Email, Password: UnicodeString); +procedure SetLicenseUserCredential(const Email, Password: UnicodeString); deprecated 'Use AuthenticateUser instead'; (* PROCEDURE: SetLicenseCallback() @@ -429,13 +433,15 @@ procedure SetTrialActivationMetadata(const Key, Value: UnicodeString); The app version appears along with the activation details in dashboard. It is also used to generate app analytics. + This function is deprecated. Use SetReleaseVersion() instead. + PARAMETERS: * AppVersion - string of maximum length 256 characters with utf-8 encoding. EXCEPTIONS: ELAProductIdException, ELAAppVersionLengthException *) -procedure SetAppVersion(const AppVersion: UnicodeString); +procedure SetAppVersion(const AppVersion: UnicodeString); deprecated 'Use SetReleaseVersion instead'; (* PROCEDURE: SetOfflineActivationRequestMeterAttributeUses() @@ -591,7 +597,7 @@ function GetFeatureEntitlement(const FeatureName: UnicodeString): TFeatureEntitl ELABufferSizeException *) -function GetProductVersionName: UnicodeString; +function GetProductVersionName: UnicodeString; deprecated 'Use GetLicenseEntitlementSetName instead'; (* FUNCTION: GetProductVersionDisplayName() @@ -607,14 +613,14 @@ function GetProductVersionName: UnicodeString; ELABufferSizeException *) -function GetProductVersionDisplayName: UnicodeString; +function GetProductVersionDisplayName: UnicodeString; deprecated 'Use GetLicenseEntitlementSetDisplayName instead'; (* FUNCTION: GetProductVersionFeatureFlag() PURPOSE: Gets the product version feature flag. - This function is deprecated. Use GetFeatureEntitlement() instead. + This function is deprecated. Use GetLicenseEntitlementSetDisplayName instead. PARAMETERS: * Name - name of the feature flag @@ -627,13 +633,15 @@ function GetProductVersionDisplayName: UnicodeString; ELAFeatureFlagNotFoundException, ELABufferSizeException *) -function GetProductVersionFeatureFlag(const Name: UnicodeString; out Data: UnicodeString): Boolean; +function GetProductVersionFeatureFlag(const Name: UnicodeString; out Data: UnicodeString): Boolean; deprecated 'Use GetFeatureEntitlement instead'; (* FUNCTION: GetLicenseMetadata() PURPOSE: Gets the license metadata as set in the dashboard. + This function is deprecated. Use GetFeatureEntitlement instead. + PARAMETERS: * Key - key to retrieve the value From aa109b58a17b6d258fcd926e0cdb340d642e020e Mon Sep 17 00:00:00 2001 From: mir-huzaif Date: Tue, 23 Sep 2025 16:01:18 +0530 Subject: [PATCH 2/3] chore: corrected deprecation notes --- examples/LexActivator.pas | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/LexActivator.pas b/examples/LexActivator.pas index eb94009..b4e2613 100644 --- a/examples/LexActivator.pas +++ b/examples/LexActivator.pas @@ -620,7 +620,7 @@ function GetProductVersionDisplayName: UnicodeString; deprecated 'Use GetLicense PURPOSE: Gets the product version feature flag. - This function is deprecated. Use GetLicenseEntitlementSetDisplayName instead. + This function is deprecated. Use GetFeatureEntitlement instead. PARAMETERS: * Name - name of the feature flag @@ -640,8 +640,6 @@ function GetProductVersionFeatureFlag(const Name: UnicodeString; out Data: Unico PURPOSE: Gets the license metadata as set in the dashboard. - This function is deprecated. Use GetFeatureEntitlement instead. - PARAMETERS: * Key - key to retrieve the value From 01a6a850f17092adad34277cfa725936891086d6 Mon Sep 17 00:00:00 2001 From: mir-huzaif Date: Tue, 23 Sep 2025 16:08:19 +0530 Subject: [PATCH 3/3] chore: correct deprecation notes --- examples/LexActivator.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/LexActivator.pas b/examples/LexActivator.pas index b4e2613..1244bfb 100644 --- a/examples/LexActivator.pas +++ b/examples/LexActivator.pas @@ -620,7 +620,7 @@ function GetProductVersionDisplayName: UnicodeString; deprecated 'Use GetLicense PURPOSE: Gets the product version feature flag. - This function is deprecated. Use GetFeatureEntitlement instead. + This function is deprecated. Use GetFeatureEntitlement() instead. PARAMETERS: * Name - name of the feature flag