11/29
2013

Android开源项目第四篇——开发及测试工具篇

本文为那些不错的Android开源项目第四篇——开发工具篇,主要介绍Android开发工具和测试工具相关的开源项目

 

最新内容请访问Android开源项目汇总及搜索
对你有帮助的话,去知乎点个赞让更多人了解:Android 优秀开源项目及特效推荐

 

Android开源项目系列汇总已完成,包括:

Android开源项目第一篇——个性化控件(View)篇
Android开源项目第二篇——工具库篇
Android开源项目第三篇——优秀项目篇
Android开源项目第四篇——开发及测试工具篇
Android开源项目第五篇——优秀个人和团体篇

 

1、Buck
facebook开源的Android编译工具,效率是ant的两倍。主要优点在于:
(1) 加快编译速度,通过并行利用多核cpu和跟踪不变资源减少增量编译时间实现
(2) 可以在编译系统中生成编译规则而无须另外的系统生成编译规则文件
(3) 编译同时可生成单元测试结果
(4) 既可用于IDE编译也可用于持续集成编译
(5) facebook持续优化中
项目地址:https://github.com/facebook/buck

 

2、Android Maven Plugin
Android Maven插件,可用于对android三方依赖进行管理。在J2EE开发中,maven是非常成熟的依赖库管理工具,可统一管理依赖库。
项目地址:https://github.com/jayway/maven-android-plugin

 

3、Spoon
可用于android不同机型设备自动化测试,能将应用apk和测试apk运行在不同机器上并生成相应测试报告。
项目地址:https://github.com/square/spoon

 

4、Android FEST
提供一些列方便的断言,可用于提高编写Android自测代码效率
项目地址:https://github.com/square/fest-android

 

5、SelectorChapek for Android
Android Studio插件,可根据固定文件名格式资源自动生成drawable selectors xml文件。
项目地址:https://github.com/inmite/android-selector-chapek

 

6、Android Resource Navigator
chrome插件,可以方便的查看github上android源码工程的styles.xml和themes.xml。主要功能:
(1) 快速打开android styles.xml themes.xml
(2) 方便在资源间跳转。styles.xml themes.xml文件中资源链接跳转,可以方便跳转到某个资源
(3) 方便查找某个style和theme。chrome地址栏输入arn+tab+搜索内容回车即可
(4) 自动下载不同分辨率下的drawable
(5) 通过映射查找那些不是按照固定命名规则命名的style和theme
项目地址:https://github.com/jgilfelt/android-resource-navigator
示例:https://chrome.google.com/webstore/detail/android-resource-navigato/agoomkionjjbejegcejiefodgbckeebo?hl=en&gl=GB

 

7、Android Action Bar Style Generator
Android ActionBar样式生成器,可在线选择ActionBar样式自动生成所需要的图片资源及xml文件
项目地址:https://github.com/jgilfelt/android-actionbarstylegenerator
在线演示:http://jgilfelt.github.io/android-actionbarstylegenerator/

 

8、ViewServer
允许app运行在任何手机上都可以用HierarchyViewer查看
项目地址:https://github.com/romainguy/ViewServer

 

9、GridWichterle for Android
在整个系统上显示一个grid,用来帮助查看应用布局及使得布局更美观,可设置grid网格大小和颜色,android推荐48dp和8dp,可见 Android Design Guidelines – Metrics and Grids
项目地址:https://github.com/inmite/android-grid-wichterle
APK地址:https://play.google.com/store/apps/details?id=eu.inmite.android.gridwichterle
PS:比起hierarchyviewer相差甚远,不过偶尔可用来作为布局查看工具。

 

10、渠道打包工具

允许app运行在任何手机上都可以用HierarchyViewer查看
项目地址:https://github.com/umeng/umeng-muti-channel-build-tool
另可参见Google的构建系统Gradle:http://tools.android.com/tech-docs/new-build-system/user-guide

 

11、Catlog

手机端log查看工具,支持不同颜色显示、关键字过滤、级别过滤、进程id过滤、录制功能等
项目地址:https://github.com/nolanlawson/Catlog
在线演示:https://play.google.com/store/apps/details?id=com.nolanlawson.logcat

 

12、PID Cat

根据package查看logcat日志
项目地址:https://github.com/JakeWharton/pidcat

 

13、Hugo

用于打印函数信息及执行时间的工具,仅在debug模式生效
项目地址:https://github.com/JakeWharton/hugo

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

16 thoughts on “Android开源项目第四篇——开发及测试工具篇

  1. 感谢分享,收藏了

    再推荐一个开源私有化部署的用户行为分析平台Cobub Razor
    github下载地址:https://github.com/cobub/razor
    开源社区技术交流Q群:194022996

  2. Pingback: Android开源项目第五篇——优秀个人和团体篇 – 技术联盟

  3. Pingback: Android开源项目第三篇——优秀项目篇 – 技术联盟

    • 目前我还没有,不过maven的管理方式在J2EE开发中非常成熟,这也跟目前大多android项目外部依赖并不多有关,可以帮助管理依赖库,同时你的库也能方便的被其他人引入

  4. 想知道博主一般用 什么开发工具来开发Android 应用 ,android studio 还是 eclipse , github 中很多开源项目,都是Android Maven Plugin来管理依赖库 导入android studio 总是报 查找不到依赖库的错误 ,希望博主能够介绍一下关于 使用 android studio 来开发android 项目的知识 比如用 gradle 来构建项目啊等等,不胜感激。