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

来源:互联网 发布:淘宝充话费多久到账啊 编辑:程序博客网 时间:2024/06/11 05:11
本文为那些不错的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
0 0
原创粉丝点击