Skip to content

Commit f9cf235

Browse files
committed
- adds link to v1 and lints
1 parent a621d63 commit f9cf235

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,33 @@
55

66
Get started with the Microsoft Graph SDK for Java by integrating the [Microsoft Graph API](https://graph.microsoft.io/en-us/getting-started) into your Java application!
77

8+
> **Note:** this SDK allows you to build applications using the [beta](https://docs.microsoft.com/en-us/graph/use-the-api#version) of Microsoft Graph. If you want to use the production supported Microsoft Graph APIs under v1.0, use our [v1.0 SDK](https://github.com/microsoftgraph/msgraph-sdk-java) instead.
9+
810
## 1. Installation
911

1012
### 1.1 Install via Gradle
1113

1214
Add the repository and a compile dependency for `microsoft-graph-beta` to your project's `build.gradle`:
1315

1416
```gradle
15-
repository {
17+
repositories {
1618
jcenter()
1719
jcenter{
1820
url 'https://oss.jfrog.org/artifactory/oss-snapshot-local'
1921
}
2022
}
2123
22-
dependency {
24+
dependencies {
2325
// Include the sdk as a dependency
24-
compile('com.microsoft.graph:microsoft-graph-beta:0.1.0-SNAPSHOT')
26+
implementation 'com.microsoft.graph:microsoft-graph-beta:0.1.0-SNAPSHOT'
2527
}
2628
```
2729

2830
### 1.2 Install via Maven
31+
2932
Add the dependency in `dependencies` in pom.xml
30-
```dependency
33+
34+
```xml
3135
<dependency>
3236
<groupId>com.microsoft.graph</groupId>
3337
<artifactId>microsoft-graph-beta</artifactId>
@@ -36,6 +40,7 @@ Add the dependency in `dependencies` in pom.xml
3640
```
3741

3842
### 1.3 Enable ProGuard (Android)
43+
3944
The nature of the Graph API is such that the SDK needs quite a large set of classes to describe its functionality. You need to ensure that [ProGuard](https://developer.android.com/studio/build/shrink-code.html) is enabled on your project. Otherwise, you will incur long build times for functionality that is not necessarily relevant to your particular application. If you are still hitting the 64K method limit, you can also enable [multidexing](https://developer.android.com/studio/build/multidex.html).
4045

4146
## 2. Getting started
@@ -51,6 +56,7 @@ An instance of the **GraphServiceClient** class handles building requests, sendi
5156
For an example of authentication in a Java desktop client application, see the [Preview msgraph-sdk-java-auth](https://github.com/microsoftgraph/msgraph-sdk-android-msa-auth-for-android-adapter) and for an Android application see [Preview msgraph-sdk-android-auth](https://github.com/microsoftgraph/msgraph-sdk-android-auth).
5257

5358
### 2.3 Get a GraphServiceClient object
59+
5460
After you have set the correct application ID and URL, you must get a **GraphServiceClient** object to make requests against the service. The SDK stores the account information for you, but when a user signs in for the first time, it invokes the UI to get the user's account information.
5561

5662
```java
@@ -118,7 +124,7 @@ Thanks to everyone who has already devoted time to improving the library:
118124
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind are welcome!
119125

120126
## 7. Supported Java versions
121-
The Microsoft Graph Beta SDK for Java library is supported at runtime for Java 8+ and [Android API revision 15](http://source.android.com/source/build-numbers.html) and greater.
127+
The Microsoft Graph beta SDK for Java library is supported at runtime for Java 8+ and [Android API revision 15](http://source.android.com/source/build-numbers.html) and greater through [desugaring](https://developer.android.com/studio/write/java8-support.html#library-desugaring).
122128

123129
## 8. License
124130

0 commit comments

Comments
 (0)