Jack(Java Android Compiler Kit):

Jack is a new Android Tool chain. It is loaded with  a compiler which can compile java source code to Android dex file format.

Features

1.    Jack is preloaded with  java 8 language features such as lambdas ,default and static methods, functional interfaces and streams on Android versions as far back as Gingerbread.
2.    Jack has it's own .jack library format
3.    It handles shrinking, obfuscation, repackaging and multidex and seperate packages like ProGuard is not needed anymore
4.    Reduced compilation time.
5.    And it is completely open Source!! and expects Great developers like you(assumption) and me for contribution ;)

The major limitation of Jack is that it is mono user by default.

 

 

Jill(Jack Intermediate Library Linker):

Jill is a tool which translates .jar files to .jack.

 

 

How To Use!
You don’t need to do anything special to use Jack .Use standard makefile commands to compile the tree or your project. For M Jack is the default build tool chain.
Jack and Jill are  available in the 21.1.1+ Build Tools for Android Studio. Gradle support is also  available for Android 1.0.0+ Gradle plugin. To get started, all you need  to do is  add a single line in your build.gradle file. Perform the  build operation of your application to obtain a newly built APK.

 

android {

      ...

     buildToolsRevision '21.1.1'

      defaultConfig {

           //Make jack build tool true.

           useJack = true

          }

     ...

}

To build your app with both toolchains, you can use Product Flavors. Your build.gradle file  look something like the snippet below. 

 

android {

     ...

     productFlavors {

         staging {

             ...

        }

         experimental {

             useJack = true

        }

         production {

             ...

        }

    }

     ...

}

 

read more from here...
Link 1
Link 2
Link 3

Subscribe to our newsletter. Get updates on awesome happenings in the technology world!
Newsletter subscription successfull! Something went wrong! Email is already registered!

TAGS