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

Commit a1b59e12 authored by Adarsh Fernando's avatar Adarsh Fernando Committed by android-build-merger
Browse files

Merge "Docs: Android Plugin DSL Ref 2.0.0 was just published. Added some...

Merge "Docs: Android Plugin DSL Ref 2.0.0 was just published. Added some useful links." into mnc-mr-docs
am: 80202c02

* commit '80202c02':
  Docs: Android Plugin DSL Ref 2.0.0 was just published. Added some useful links.

Change-Id: I56bcabc30d6bcc36aff23855ab69c6ced7a3896c
parents 194c1e60 80202c02
Loading
Loading
Loading
Loading
+16 −10
Original line number Diff line number Diff line
@@ -548,21 +548,25 @@ parent.link=index.html
  When you deploy a clean build, Android Studio instruments your app to allow
  Instant Run to push code and resource updates. Although updating the running
  app happens much more quickly, the first build may take longer to complete.
  You can improve the build process by configuring a few DEX options, such as
  <code>maxProcessCount</code> and <code>javaMaxHeapSize</code>.
  You can improve the build process by configuring a few <a class=
  "external-link" href=
  "http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html">
  <code>DexOptions</code></a> settings:
</p>

<dl>
  <dt>
    <code>maxProcessCount</code>
    <a class="external-link" href=
    "http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html#com.android.build.gradle.internal.dsl.DexOptions:maxProcessCount">
    <code>maxProcessCount</code></a>
  </dt>

  <dd>
    Sets the maximum number of DEX processes that can be started
    concurrently. If the Gradle daemon is already running, you need to
    stop the process before initializing it with a new maximum process count.
    You can terminate the Gradle daemon by calling one of the following from
    the <em>Terminal</em> window:
    Sets the maximum number of DEX processes that can be started concurrently.
    If the Gradle daemon is already running, you need to stop the process
    before initializing it with a new maximum process count. You can terminate
    the Gradle daemon by calling one of the following from the
    <em>Terminal</em> window:
    <ul>
      <li>On Windows, call <code>gradlew --stop</code>
      </li>
@@ -573,7 +577,9 @@ parent.link=index.html
  </dd>

  <dt>
    <code>javaMaxHeapSize</code>
    <a class="external-link" href=
    "http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html#com.android.build.gradle.internal.dsl.DexOptions:javaMaxHeapSize">
    <code>javaMaxHeapSize</code></a>
  </dt>

  <dd>
@@ -593,7 +599,7 @@ parent.link=index.html
android {
  ...
  dexOptions {
    maxProcessCount 4
    maxProcessCount 4 // this is the default value
    javaMaxHeapSize "2g"
  }
}
+15 −7
Original line number Diff line number Diff line
@@ -28,14 +28,20 @@ page.title=Android Plugin for Gradle Release Notes
    </h2>

    <ol>
      <li>
        <a class="external-link" href=
        "http://google.github.io/android-gradle-dsl/current/">Android Plugin DSL
        Reference</a>
      </li>

      <li>
        <a href="{@docRoot}sdk/installing/studio-build.html">Build System
        Overview</a>
      </li>

      <li>
        <a href="{@docRoot}tools/building/plugin-for-gradle.html">Android
        Plugin for Gradle</a>
        <a href="{@docRoot}tools/building/plugin-for-gradle.html">Android Plugin
        for Gradle</a>
      </li>
    </ol>
  </div>
@@ -166,15 +172,17 @@ distributionUrl = https\://services.gradle.org/distributions/gradle-2.10-all.zip
        connected device.
        </li>

        <li>Added <code>maxProcessCount</code> to control how many slave dex processes can
        be spawned concurrently. The following code, in the module-level
        <li>Added <a class="external-link" href=
        "http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOptions.html#com.android.build.gradle.internal.dsl.DexOptions:maxProcessCount">
        <code>maxProcessCount</code></a> to control how many slave dex processes can be
        spawned concurrently. The following code, in the module-level
        <code>build.gradle</code> file, sets the maximum number of concurrent processes
        to 4:
<pre>
android {
  ...
  dexOptions {
  maxProcessCount = 4
  maxProcessCount = 4 // this is the default value
  }
}
</pre>
@@ -192,11 +200,11 @@ android {
  ...
  buildTypes {
    debug {
      minifyEnabed true
      minifyEnabled true
      useProguard false
    }
    release {
      minifyEnabed true
      minifyEnabled true
      useProguard true // this is a default setting
    }
  }