Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Spring for Android 2.0.0.M2 Released

DZone's Guide to

Spring for Android 2.0.0.M2 Released

· Java Zone
Free Resource

In this complimentary, preview edition of the O’Reilly eBook on cloud-native Java, discover how Spring and Cloud Foundry make it easy to build cloud-native applications that create differentiated business value.  Brought to you in partnership with Pivotal.

I am pleased to announce that Spring for Android 2.0.0.M2 is now available in the Spring milestone repository. Highlights include:

  • Support for the Android port of HttpClient 4.3 via HttpComponentsClientHttpRequestFactory
  • Support for HttpClient 4.0 included with Android is now deprecated but will remain available through HttpComponentsAndroidClientHttpRequestFactory.
  • HTTP PATCH support in RestTemplate
  • The type conversion package from Spring Core is now available in Spring for Android Core.
  • Many improvements and fixes from Spring 3.2 are now merged into Spring for Android to bring baseline compatibility to Spring 3.2, while certain RestTemplate features from Spring 4.1 have been included to support the new HttpClient.
  • Other bug fixes and improvements

HttpClient 4.3

If HttpClient 4.3 for Android is available on the classpath it will be configured as the default HTTP client. Include the following dependency in your build.gradle to utilize the new HttpClient.

dependencies {
    compile 'org.apache.httpcomponents:httpclient-android:4.3.5'
}

Minimum Version

The minimum supported version is Android 2.2 (API level 8), however it now accounts for 0.5% of Android devices on the Android developer Dashboards. We recommend Android 2.3 as a minimum target for new apps, as third-party libraries such as Jackson 2.4 and OkHttp require Android 2.3 and newer.

Conclusion

For a complete list of changes, see the Release Notes in JIRA. The reference documentation has also been updated to cover the new features.

Thanks again to everyone that has contributed to the release! Please try this new milestone and report any problems in JIRA or on GitHub.

Read how Cloud Foundry, Spring Boot, and Spring Cloud offer the best tools to commoditize the architecture of the cloud. Download the free O’Reilly eBook today.  Brought to you in partnership with Pivotal.

Topics:

Published at DZone with permission of Pieter Humphrey, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}