From: Karthik Bhat Date: Tue, 11 Jul 2017 08:39:51 +0000 (+0530) Subject: Add Documentation for API and Privilege Checker Tool. X-Git-Tag: GitHub/PR#40/tizen-studio~93^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=159d5f01f3a82b2eef4565c55923c190e6703ef9;p=sdk%2Fonline-doc.git Add Documentation for API and Privilege Checker Tool. PS2: Reviewed PS3: Fixed minor formatting error PS4: Took out .NET profile icons which have not yet been approved. Change-Id: Iced4039d3cc15724c674bf9f9d4912fa42da0df2 Signed-off-by: Karthik Bhat --- diff --git a/preview/html/cover_page.htm b/preview/html/cover_page.htm index aef7dd5..18a1cc3 100644 --- a/preview/html/cover_page.htm +++ b/preview/html/cover_page.htm @@ -30,7 +30,7 @@

The third preview of Tizen .NET, an application framework for Tizen based on .NET, is now available. The third preview stepped forward. Key new features are as follows:

diff --git a/preview/html/introduction/overview.htm b/preview/html/introduction/overview.htm index f3e9723..340ef11 100644 --- a/preview/html/introduction/overview.htm +++ b/preview/html/introduction/overview.htm @@ -129,6 +129,8 @@ The Tizen Device Manager is a tool that is used to manage connected Tizen devices or emulators, which is used to browse, push and pull files from them. 
  • Log Viewer
    The Tizen Log Viewer is a tool that is used to see logs from connected Tizen devices or emulaotors. 
  • +
  • API and Privilege Checker
    + The API and Privilege Checker is a tool that detects API and Privilege violations in Tizen .NET Applications.
  • @@ -156,4 +158,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga - \ No newline at end of file + diff --git a/preview/html/tools/api-privilege_checker.htm b/preview/html/tools/api-privilege_checker.htm new file mode 100644 index 0000000..97c39b7 --- /dev/null +++ b/preview/html/tools/api-privilege_checker.htm @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + API and Privilege Checker + + + + + +
    + +

    API and Privilege Checker

    + +

    You can detect potential issues with privileges and APIs in your Tizen .NET application by using the API Checker tool.

    + +

    The API Checker currently detects the following issues in Tizen .NET applications:

    +
      +
    • Undefined privileges +

      Flags an error if the application uses a method which requires a privilege, but that privilege has not been defined in the application manifest file.

      +

      For example, the GetCallHandleList() method of the Tizen.Telephony.Call class requires the http://tizen.org/privilege/telephony privilege. If an application uses this method without the privilege being defined in the manifest file, the method fails when you try to run the application.

      +

      The API Checker enables you to detect undefined privileges at compile time and fix them using the Quick Actions functionality in Visual Studio.

      +
    • +
    • Unused privileges +

      Flags a warning if the application contains privileges that are not used by any APIs in the application.

      +
    • +
    + +

    Running the API Checker

    +

    To run the API Checker on your application:

    +
      +
    1. In the Solution Explorer view, select the project you want to analyze.
    2. +
    3. In the Visual Studio menu, go to Tools > Tizen > Run APIChecker on Solution. +

      Run API and Privilege Checker

      +

      The project is automatically built and the API Checker is run during the build process.

      +

      When checking is finished, the detected issues are listed in the Error List view. The view contains a detailed description of the issue, and the file and line in which the issue occurs. Undefined privileges are reported as errors, while unused privileges are reported as warnings.

      + +

      Error list

    4. + +
    + +

    Quick-fixing API Checker Findings

    +

    You can quick-fix the undefined privileges found by the API Checker:

    +
      +
    1. Click the applicable missing privilege error in the Error List view. +

      The Quick Actions functionality in Visual Studio displays a light bulb button on the left margin, next to the code line with the error.

    2. +
    3. To automatically add the missing privilege to your manifest file, click the light bulb, and select the applicable item in the drop-down menu. +

      You can see the newly-added privilege in the tizen-manifest.xml file, and the missing privilege errors related to this privilege are automatically removed from the Error List view.

      +

      +
    4. +
    + + + + + + +
    + +Go to top + + + + + + + + diff --git a/preview/html/tools/tools_overview.htm b/preview/html/tools/tools_overview.htm index 932257f..37d3148 100644 --- a/preview/html/tools/tools_overview.htm +++ b/preview/html/tools/tools_overview.htm @@ -41,6 +41,9 @@ The Device Manager is a standalone tool that provides information of connected Tizen devices or emulators for application debugging.
  • Log Viewer
    The Log Viewer helps you debug your application by capturing all the events logged by the platform and your application.
  • + +
  • API and Privilege Checker
    + The API Checker tool checks for API and privilege usage violations in the application code. It helps you to identify and fix potential problems in the application code related to API and privilege use.
  • @@ -68,4 +71,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga - \ No newline at end of file + diff --git a/preview/index.xml b/preview/index.xml index d12e1c7..4da14ea 100644 --- a/preview/index.xml +++ b/preview/index.xml @@ -26,5 +26,6 @@ +