<div dir="ltr"><div><div><div>This week I have started with packaging of Android Plugin for Gradle.<br><br></div>Finding source of plugin caused lot of pain. tools/build.git repository of Android sources<br>contains
 readme for Gradle plugin[1]. On the other hand according to Android Tools<br>Project Site [2], source of plugin is in tools/base.git. But git 
contains changelog of<br>Android SDK tools. After lot of surfing on internet
 and studying the git sources, I found<br>that actual source is present in 
tools/base/build-system. <br><br></div>Later I found that plugin has 
dependency over SDK tools v24.2.0 and currently Debian<br>has SDK tools 
v22.2. I tried building the plugin using existing tools, but plugin used
 various<br>methods and classes that are introduced in higher version. For 
example getAbis() and<br>getDensity() methods of ddmlib.jar, which are 
introduced in v23.1.0, are used. Therefore<br>we need to update androidsdk-tools 
package first.<br><br></div>Sources of Android SDK tools is spread 
over two repositories tools/base and tools/swt and<br>current Debian androidsdk-tools package is fetching sources from both these repositories.<br>My colleague 
Kai-Chung and I were thinking instead of updating existing packageĀ  by fetching<br>sources from two repos, it would be easier to 
maintain and update package in future if we<br>create two separate packages for tools/base and tools/swt. Final decision will be taken by<br>mentor Hans. As he was busy in last week, he could not guide us. Till then I have started<br>with packaging of tools/base as it will be required in either case.<br><br>[1] <a href="https://android.googlesource.com/platform/tools/build/+/master/readme.md">https://android.googlesource.com/platform/tools/build/+/master/readme.md</a><br>[2] <a href="http://tools.android.com/build/gradleplugin" target="_blank">http://tools.android.com/build/gradleplugin</a></div>