親愛的Spring社群,
我們很高興地宣佈,Spring for Android 專案的第一個候選版本現已釋出!
Spring for Android 支援在 Android 環境中使用 Spring Framework。1.0.0.RC1 版本專注於更新對原生 Android 應用程式中最新 Spring Social 版本的支援,並對 Rest Template 進行增強。這包括:
- 透過 Spring for Android Auth 模組支援 Spring Social 1.0.2.RELEASE 和 Spring Security 3.1.0.RELEASE,該模組包含用於持久化 OAuth API 連線的 SQLite 資料儲存。
- 更新的 RestTemplate 支援,現已達到 Spring Framework 3.1.0.RELEASE 的水平。
- 添加了對 Basic Authentication 的支援。
- 添加了 AssetResource 以訪問 Android 專案的 assets 目錄中儲存的靜態資源。
- 由於與某些裝置上預裝的 Gson 版本不相容,移除了 GsonHttpMessageConverter 的自動載入。
- 增強了 RestTemplate 中的 gzip 支援。
- 現在預設使用 Gingerbread 及更高版本的標準 J2SE 設施 (HttpURLConnection),正如 Google 所推薦的。
- 在 Eclair 及更早版本中使用 HttpURLConnection 時,停用了連線重用,因為這些 Android 版本存在連線池缺陷。
- 添加了幾項額外的錯誤修復和改進。
Spring for Android 支援 Android 2.1 (API Level 7) 及更高版本。
要獲取軟體,請下載釋出分發版,或只需將 Maven 構件新增到您的專案中。要即時檢視這些功能,請檢視(已針對 1.0.0.RC1 更新的)spring-android-showcase。