Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a51f9c04 authored by Miao Wang's avatar Miao Wang
Browse files

[RenderScript] Update documentation about API level and RS Support Lib.

Bug: 22767853

  - Correct the description about renderscriptTargetApi: Use the lowest
    API level providing all the functionality in the code.
  - Update the sample gradle config to use the up-to-date and stable
    version of Build-Tools.

Change-Id: Ie8008acafb270fda9e2c928953568461f6f6f476
parent d65cec19
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -198,12 +198,12 @@ precision (such as SIMD CPU instructions).</p>

<pre>
android {
    compileSdkVersion 19
    buildToolsVersion "19.0.3"
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    defaultConfig {
        minSdkVersion 8
        targetSdkVersion 16
        targetSdkVersion 19
<strong>
        renderscriptTargetApi 18
        renderscriptSupportModeEnabled true
@@ -217,9 +217,9 @@ android {

    <ul>
      <li>{@code renderscriptTargetApi} - Specifies the bytecode version to be generated. We
      recommend you set this value to the highest available API level and set
      {@code renderscriptSupportModeEnabled}
      to {@code true}. Valid values for this setting are any integer value
      recommend you set this value to the lowest API level able to provide all the functionality
      you are using and set {@code renderscriptSupportModeEnabled} to {@code true}.
      Valid values for this setting are any integer value
      from 11 to the most recently released API level. If your minimum SDK version specified in your
      application manifest is set to a different value, that value is ignored and the target value
      in the build file is used to set the minimum SDK version.</li>