现在的位置: 首页 > 综合 > 正文

Android下的开源项目(1)

2017年12月06日 ⁄ 综合 ⁄ 共 2312字 ⁄ 字号 评论关闭

主要介绍和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

  14. scalpel

    在应用下面添加一层用于界面调试,待详细补充 // TODO

    项目地址:https://github.com/JakeWharton/scalpel

抱歉!评论已关闭.