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

4
Type-safe REST 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 16
  <groupId>com.squareup.retrofit</groupId>
  <artifactId>retrofit</artifactId>
J
Jake Wharton 已提交
17
  <version>1.8.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.retrofit:retrofit:1.8.0'
J
Jake Wharton 已提交
23
```
J
Jake Wharton 已提交
24
Retrofit requires at minimum Java 6 or Android 2.3.
J
Jake Wharton 已提交
25 26


27 28 29
License
=======

J
Jake Wharton 已提交
30
    Copyright 2013 Square, Inc.
J
Jake Wharton 已提交
31

32 33 34
    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 已提交
35

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

38 39 40 41 42
    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 已提交
43 44 45


 [1]: http://square.github.io/retrofit/
46
 [2]: https://search.maven.org/remote_content?g=com.squareup.retrofit&a=retrofit&v=LATEST