Skip to content

Commit 44b39d9

Browse files
authored
Merge pull request #28 from microsoftgraph/beta/pipelinebuild/3725375
Generated beta models and request builders using Typewriter
2 parents d2a31fb + 95c6074 commit 44b39d9

File tree

13,034 files changed

+99199
-19458
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

13,034 files changed

+99199
-19458
lines changed

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["vscjava.vscode-java-pack"]
3+
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"java.configuration.updateBuildConfiguration": "interactive"
2+
"java.configuration.updateBuildConfiguration": "automatic"
33
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Microsoft Graph SDK for Java
22

3-
[ ![Download](https://api.bintray.com/packages/microsoftgraph/Maven/microsoft-graph-beta/images/download.svg) ](https://bintray.com/microsoftgraph/Maven/microsoft-graph/_latestVersion)
3+
[![Download](https://api.bintray.com/packages/microsoftgraph/Maven/microsoft-graph-beta/images/download.svg) ](https://bintray.com/microsoftgraph/Maven/microsoft-graph/_latestVersion)
44

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!
@@ -41,7 +41,7 @@ Add the dependency in `dependencies` in pom.xml
4141

4242
### 1.3 Enable ProGuard (Android)
4343

44-
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).
44+
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). Checkout the [recommended rules](./docs/proguard-rules.txt).
4545

4646
## 2. Getting started
4747

docs/proguard-rules.txt

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
-keep class com.microsoft.** { *; }
2+
3+
## GSON 2.2.4 specific rules ##
4+
# Source: https://github.com/google/gson/blob/master/examples/android-proguard-example/proguard.cfg
5+
# Gson uses generic type information stored in a class file when working with fields. Proguard
6+
# removes such information by default, so configure it to keep all of it.
7+
-keepattributes Signature
8+
# For using GSON @Expose annotation
9+
-keepattributes *Annotation*
10+
-keepattributes EnclosingMethod
11+
# Gson specific classes
12+
-keep class sun.misc.Unsafe { *; }
13+
-keep class com.google.gson.stream.** { *; }
14+
# Gson specific classes used by Broker.
15+
-keep class * implements com.google.gson.TypeAdapterFactory
16+
-keep class * implements com.google.gson.JsonSerializer
17+
-keep class * implements com.google.gson.JsonDeserializer
18+
19+
-dontnote sun.misc.Unsafe
20+
-dontnote com.google.gson.**
21+
22+
# JUnit
23+
-dontwarn org.junit.**
24+
-dontwarn junit.**
25+
26+
# okhttp
27+
28+
-keepattributes Signature
29+
-keepattributes *Annotation*
30+
-keep class okhttp3.** { *; }
31+
-keep interface okhttp3.** { *; }
32+
-dontwarn okhttp3.**
33+
34+
# okio
35+
36+
-keep class sun.misc.Unsafe { *; }
37+
-dontwarn java.nio.file.*
38+
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
39+
-dontwarn okio.**

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# The size of the library demands a large amount of RAM to build. Increase as necessary if you get GC errors
2121
## linux requires 10G, OSX requires 11G
2222
org.gradle.jvmargs=-XX:MaxPermSize=512m -Xmx2g
23+
org.gradle.caching=true
2324

2425
mavenGroupId = com.microsoft.graph
2526
mavenArtifactId = microsoft-graph-beta

src/main/java/com/microsoft/graph/callrecords/models/extensions/CallRecord.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@
1818

1919

2020
import com.google.gson.JsonObject;
21-
import com.google.gson.JsonElement;
2221
import com.google.gson.annotations.SerializedName;
2322
import com.google.gson.annotations.Expose;
24-
import java.util.HashMap;
25-
import java.util.Map;
2623

2724
// **NOTE** This file was generated by a tool and any changes will be overwritten.
2825

src/main/java/com/microsoft/graph/callrecords/models/extensions/ClientUserAgent.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@
1414

1515

1616
import com.google.gson.JsonObject;
17-
import com.google.gson.JsonElement;
1817
import com.google.gson.annotations.SerializedName;
1918
import com.google.gson.annotations.Expose;
20-
import java.util.HashMap;
21-
import java.util.Map;
2219

2320
// **NOTE** This file was generated by a tool and any changes will be overwritten.
2421

src/main/java/com/microsoft/graph/callrecords/models/extensions/DeviceInfo.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@
1111

1212

1313
import com.google.gson.JsonObject;
14-
import com.google.gson.JsonElement;
1514
import com.google.gson.annotations.SerializedName;
1615
import com.google.gson.annotations.Expose;
17-
import java.util.HashMap;
18-
import java.util.Map;
1916

2017
// **NOTE** This file was generated by a tool and any changes will be overwritten.
2118

src/main/java/com/microsoft/graph/callrecords/models/extensions/DirectRoutingLogRow.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@
1111

1212

1313
import com.google.gson.JsonObject;
14-
import com.google.gson.JsonElement;
1514
import com.google.gson.annotations.SerializedName;
1615
import com.google.gson.annotations.Expose;
17-
import java.util.HashMap;
18-
import java.util.Map;
1916

2017
// **NOTE** This file was generated by a tool and any changes will be overwritten.
2118

src/main/java/com/microsoft/graph/callrecords/models/extensions/Endpoint.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@
1212

1313

1414
import com.google.gson.JsonObject;
15-
import com.google.gson.JsonElement;
1615
import com.google.gson.annotations.SerializedName;
1716
import com.google.gson.annotations.Expose;
18-
import java.util.HashMap;
19-
import java.util.Map;
2017

2118
// **NOTE** This file was generated by a tool and any changes will be overwritten.
2219

0 commit comments

Comments
 (0)