Tizen Studio provides the API Checker tool to identify potential problems in the application code related to the API and privilege use.
The API Checker can be used on Tizen native applications to detect potential issues with privileges and API versions. The tool can be used from Tizen Studio as well as from the command line.
The following defects can be detected by the API Checker:
In the Project Explorer view, right-click the project on which you want to run the API Checker and select Check API and Privilege Violations with Build.
The project is automatically built and the API Checker is run during the build process.
Figure: Running the API Checker
When the API Checker is finished, the detected issues are listed in the Problems view under the API and Privilege Violations type. The view contains a detailed description of the issue along with the file and line information about where the error occurred.
Figure: Check results in the Problems view
By default, the API Checker checks for API version mismatches, deprecated APIs, and undefined privileges.
You can customize the API Checker to also check for unused privileges. You can also enable the tool to run by default along with the normal build or while editing the code.
To customize the API Checker:
In the Project Explorer view, right-click the project and select Properties.
Go to C/C++ Build > Tizen Settings > API and Privilege Checker.
Modify the settings, as needed.
You can quick-fix some of the issues found by the API Checker, such as use of undefined and unused privileges.
Deprecated API and version mismatch issues cannot be quick-fixed. You must fix them manually.
To quick-fix issues: