生命本就是一次凄美的漂流,記憶中放不下的,永遠是孩提時代的那一份浪漫與純真!
主要介紹和Android開發工具和測試工具相關的開源項目。
Buckfacebook開源的Android編譯工具,效率是ant的兩倍。主要優點在于:(1) 加快編譯速度,通過并行利用多核cpu和跟蹤不變資源減少增量編譯時間實現(2) 可以在編譯系統中生成編譯規則而無須另外的系統生成編譯規則文件(3) 編譯同時可生成單元測試結果(4) 既可用于IDE編譯也可用于持續集成編譯(5) facebook持續優化中項目地址:https://github.com/facebook/buck
Android Maven PluginAndroid Maven插件,可用于對android三方依賴進行管理。在J2EE開發中,maven是非常成熟的依賴庫管理工具,可統一管理依賴庫。項目地址:https://github.com/jayway/maven-android-plugin
Spoon可用于android不同機型設備自動化測試,能將應用apk和測試apk運行在不同機器上并生成相應測試報告。項目地址:https://github.com/square/spoon
Android FEST提供一些列方便的斷言,可用于提高編寫Android自測代碼效率項目地址:https://github.com/square/fest-android
SelectorChapek for AndroidAndroid Studio插件,可根據固定文件名格式資源自動生成drawable selectors xml文件。項目地址:https://github.com/inmite/android-selector-chapek
Android Resource Navigatorchrome插件,可以方便的查看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
Android Action Bar Style GeneratorAndroid ActionBar樣式生成器,可在線選擇ActionBar樣式自動生成所需要的圖片資源及xml文件項目地址:https://github.com/jgilfelt/android-actionbarstylegenerator在線演示:http://jgilfelt.github.io/android-actionbarstylegenerator/
ViewServer允許app運行在任何手機上都可以用HierarchyViewer查看項目地址:https://github.com/romainguy/ViewServer
GridWichterle for Android在整個系統上顯示一個grid,用來幫助查看應用布局及使得布局更美觀,可設置grid網格大小和顏色,android推薦48dp和8dp,可見 Android Design Guidelines – Metrics and Grids項目地址:https://github.com/inmite/android-grid-wichterleAPK地址:https://play.google.com/store/apps/details?id=eu.inmite.android.gridwichterlePS:比起hierarchyviewer相差甚遠,不過偶爾可用來作為布局查看工具。
渠道打包工具允許app運行在任何手機上都可以用HierarchyViewer查看項目地址:https://github.com/umeng/umeng-muti-channel-build-tool另可參見Google的構建系統Gradle:http://tools.android.com/tech-docs/new-build-system/user-guide
Catlog手機端log查看工具,支持不同顏色顯示、關鍵字過濾、級別過濾、進程id過濾、錄制功能等項目地址:https://github.com/nolanlawson/Catlog在線演示:https://play.google.com/store/apps/details?id=com.nolanlawson.logcat
PID Cat根據package查看logcat日志項目地址:https://github.com/JakeWharton/pidcat
Hugo用于打印函數信息及執行時間的工具,僅在debug模式生效項目地址:https://github.com/JakeWharton/hugo
scalpel在應用下面添加一層用于界面調試,待詳細補充 // TODO項目地址:https://github.com/JakeWharton/scalpel