diff options
Diffstat (limited to 'en/setup/build/jack.html')
-rw-r--r-- | en/setup/build/jack.html | 53 |
1 files changed, 9 insertions, 44 deletions
diff --git a/en/setup/build/jack.html b/en/setup/build/jack.html index 5d32cb3e..494aaca0 100644 --- a/en/setup/build/jack.html +++ b/en/setup/build/jack.html @@ -23,43 +23,20 @@ <aside class="warning"><strong>Warning:</strong> As of this <a href="https://android-developers.googleblog.com/2017/03/future-of-java-8-language-feature.html" class="external">March -14, 2017 announcement</a>, the Jack toolchain is deprecated. While you may -continue to use Jack, we strongly encourage using the latest -<a href="https://developer.android.com/studio/preview/index.html" class="external">preview -version of Android Studio</a> instead, which provides improved support for -<a href="https://developer.android.com/studio/preview/features/java8-support.html" class="external">Java -8 language features</a> built into the default toolchain.</aside> - -<p>Jack is an Android toolchain that compiles Java source into Android dex -bytecode. It replaces the previous Android toolchain that consisted of multiple -tools such as javac, ProGuard, jarjar, and dx. As Jack is the default Android -build toolchain for Android 6.x, you don’t have to do anything differently to +14, 2017 announcement</a>, the Jack toolchain is deprecated. Jack was the default Android +build toolchain for Android 6.0–8.1.</aside> + +<p>Jack is an Android toolchain that compiled Java source into Android dex +bytecode. You don’t have to do anything differently to use Jack—just use your standard makefile commands to compile the tree or -your project.</p> +your project. Android 8.1 is the last release that uses Jack.</p> <h2 id="overview">About Jack</h2> -<p>The Jack toolchain provides the following advantages:</p> +<p>Jack works as follows:</p> <img src="../images/jack_overview.png" alt="Jack overview"/> <figcaption><strong>Figure 1.</strong> Jack overview.</figcaption> -<ul> -<li><strong>Completely open source</strong>. Jack is available in AOSP and users -are welcome to contribute.</li> -<li><strong>Speeds compilation time</strong>. Jack has specific support for -reducing compilation time using pre-dexing, incremental compilation, and a Jack -compilation server.</li> -<li><strong>Handles shrinking, obfuscation, repackaging, and multidex</strong>. -Using a separate package (such as ProGuard) is no longer necessary.</li> -</ul> - -<p>As of Android 7.0, Jack supports code coverage with JaCoCo. For details, -refer to -<a href="https://android.googlesource.com/platform/prebuilts/sdk/+/master/tools/README-jack-code-coverage.md" class="external">Code -Coverage with JaCoCo</a> and -<a href="https://developer.android.com/preview/j8-jack.html" class="external">Java -8 Language Features</a>.</p> - <h3 id=jack_library>Jack library format</h3> <p>Jack has its own .jack file format that contains the pre-compiled dex code @@ -81,7 +58,7 @@ library.</figcaption> <aside class="note"><strong>Note:</strong> The following instructions apply only to using Jack in Android 6.x; for instructions on using Jack in Android 7.x and -higher, refer to +8.x, refer to <a href="https://android.googlesource.com/platform/prebuilts/sdk/+/master/tools/README-jack-server.md" class="external">Jack server documentation</a>.</aside> @@ -184,17 +161,6 @@ contained in <code>jack-$USER</code> of your temporary directory (<code>/tmp</code> or <code>$TMPDIR</code>). </td> </tr> -<tr> -<td>Other issues</td> -<td>To report bugs or request features, use the public issue tracker at -<a href="http://b.android.com" class="external">http://b.android.com</a>. -Use the -<a href="https://code.google.com/p/android/issues/entry?template=Jack%20bug%20report" class="external">Jack -tool bug report</a> or -<a href="https://code.google.com/p/android/issues/entry?template=Jack%20feature%20request" class="external">Jack -tool feature request</a> templates and remember to attach the Jack log to the -bug report.</td> -</tr> </table> <h3 id="jack_log">Finding the Jack log</h3> @@ -344,8 +310,7 @@ error.</aside> <p>Jack uses jarjar configuration files to do repackaging. While Jack is compatible with "rule" rule types, it is not compatible with "zap" or -"keep" rule types. If you need "zap" or "keep" rule types, file a feature -request with a description of how you use the feature in your app.</p> +"keep" rule types.</p> <h3 id=multidex_support>Multidex support</h3> |