README.md 1.5 KB
Newer Older
J
Jake Wharton 已提交
1 2 3
Retrofit
========

J
Jake Wharton 已提交
4
Type-safe HTTP client for Android and Java by Square, Inc.
J
Jake Wharton 已提交
5

J
Jake Wharton 已提交
6
For more information please see [the website][1].
J
Jake Wharton 已提交
7 8


J
Jake Wharton 已提交
9 10
Download
--------
J
Jake Wharton 已提交
11

J
Jake Wharton 已提交
12 13 14
Download [the latest JAR][2] or grab via Maven:
```xml
<dependency>
J
Jake Wharton 已提交
15
  <groupId>com.squareup.retrofit2</groupId>
J
Jake Wharton 已提交
16
  <artifactId>retrofit</artifactId>
J
Jake Wharton 已提交
17
  <version>2.3.0</version>
J
Jake Wharton 已提交
18
</dependency>
J
Jake Wharton 已提交
19
```
J
Jake Wharton 已提交
20 21
or Gradle:
```groovy
J
Jake Wharton 已提交
22
compile 'com.squareup.retrofit2:retrofit:2.3.0'
J
Jake Wharton 已提交
23
```
24 25 26

Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].

27
Retrofit requires at minimum Java 7 or Android 2.3.
J
Jake Wharton 已提交
28 29


R
Roman Parshikov 已提交
30 31 32 33 34 35 36 37 38
ProGuard
--------

If you are using ProGuard you might need to add the following options:
```
-dontwarn okio.**
-dontwarn javax.annotation.**
```

39

40 41 42
License
=======

J
Jake Wharton 已提交
43
    Copyright 2013 Square, Inc.
J
Jake Wharton 已提交
44

45 46 47
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
J
Jake Wharton 已提交
48

49
       http://www.apache.org/licenses/LICENSE-2.0
J
Jake Wharton 已提交
50

51 52 53 54 55
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
J
Jake Wharton 已提交
56 57 58


 [1]: http://square.github.io/retrofit/
J
John Carlson 已提交
59
 [2]: https://search.maven.org/remote_content?g=com.squareup.retrofit2&a=retrofit&v=LATEST
60
 [snap]: https://oss.sonatype.org/content/repositories/snapshots/