Android開源專案第四篇:開發及測試工具篇
阿新 • • 發佈:2019-01-31
本文為那些不錯的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
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