Skip to content

Commit d41b575

Browse files
committed
Merge branch 'dev' into vidadhee/AdditionalDataManagerTest
2 parents d4f2c0f + bf818dc commit d41b575

File tree

2,903 files changed

+20153
-4657
lines changed

Some content is hidden

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

2,903 files changed

+20153
-4657
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Add the dependency in `dependencies` in pom.xml
3737

3838
### 1.3 Enable ProGuard (Android)
3939

40-
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).
40+
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).
4141

4242
## 2. Getting started
4343

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies {
3636
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
3737

3838
// Core Http library
39-
implementation 'com.microsoft.graph:microsoft-graph-core:1.0.3'
39+
implementation 'com.microsoft.graph:microsoft-graph-core:1.0.4'
4040
}
4141

4242
def pomConfig = {

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.**

src/main/java/com/microsoft/graph/callrecords/requests/extensions/CallRecordCollectionRequestBuilder.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,22 @@ public CallRecordCollectionRequestBuilder(final String requestUrl, final IBaseCl
3636
super(requestUrl, client, requestOptions);
3737
}
3838

39-
public ICallRecordCollectionRequest buildRequest() {
40-
return buildRequest(getOptions());
39+
/**
40+
* Creates the request
41+
*
42+
* @param requestOptions the options for this request
43+
* @return the IUserRequest instance
44+
*/
45+
public ICallRecordCollectionRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions) {
46+
return buildRequest(getOptions(requestOptions));
4147
}
4248

49+
/**
50+
* Creates the request
51+
*
52+
* @param requestOptions the options for this request
53+
* @return the IUserRequest instance
54+
*/
4355
public ICallRecordCollectionRequest buildRequest(final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
4456
return new CallRecordCollectionRequest(getRequestUrl(), getClient(), requestOptions);
4557
}

src/main/java/com/microsoft/graph/callrecords/requests/extensions/CallRecordRequestBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ public CallRecordRequestBuilder(final String requestUrl, final IBaseClient clien
3838
/**
3939
* Creates the request
4040
*
41+
* @param requestOptions the options for this request
4142
* @return the ICallRecordRequest instance
4243
*/
43-
public ICallRecordRequest buildRequest() {
44-
return buildRequest(getOptions());
44+
public ICallRecordRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions) {
45+
return buildRequest(getOptions(requestOptions));
4546
}
4647

4748
/**

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ICallRecordCollectionRequestBuilder.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,20 @@
2323
*/
2424
public interface ICallRecordCollectionRequestBuilder extends IRequestBuilder {
2525

26-
ICallRecordCollectionRequest buildRequest();
27-
26+
/**
27+
* Creates the request
28+
*
29+
* @param requestOptions the options for this request
30+
* @return the IUserRequest instance
31+
*/
32+
ICallRecordCollectionRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions);
33+
34+
/**
35+
* Creates the request
36+
*
37+
* @param requestOptions the options for this request
38+
* @return the IUserRequest instance
39+
*/
2840
ICallRecordCollectionRequest buildRequest(final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions);
2941

3042
ICallRecordRequestBuilder byId(final String id);

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ICallRecordRequestBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ public interface ICallRecordRequestBuilder extends IRequestBuilder {
2222
/**
2323
* Creates the request
2424
*
25+
* @param requestOptions the options for this request
2526
* @return the ICallRecordRequest instance
2627
*/
27-
ICallRecordRequest buildRequest();
28+
ICallRecordRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions);
2829

2930
/**
3031
* Creates the request with specific options instead of the existing options

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ISegmentCollectionRequestBuilder.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,20 @@
2323
*/
2424
public interface ISegmentCollectionRequestBuilder extends IRequestBuilder {
2525

26-
ISegmentCollectionRequest buildRequest();
27-
26+
/**
27+
* Creates the request
28+
*
29+
* @param requestOptions the options for this request
30+
* @return the IUserRequest instance
31+
*/
32+
ISegmentCollectionRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions);
33+
34+
/**
35+
* Creates the request
36+
*
37+
* @param requestOptions the options for this request
38+
* @return the IUserRequest instance
39+
*/
2840
ISegmentCollectionRequest buildRequest(final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions);
2941

3042
ISegmentRequestBuilder byId(final String id);

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ISegmentRequestBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ public interface ISegmentRequestBuilder extends IRequestBuilder {
2020
/**
2121
* Creates the request
2222
*
23+
* @param requestOptions the options for this request
2324
* @return the ISegmentRequest instance
2425
*/
25-
ISegmentRequest buildRequest();
26+
ISegmentRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions);
2627

2728
/**
2829
* Creates the request with specific options instead of the existing options

src/main/java/com/microsoft/graph/callrecords/requests/extensions/ISessionCollectionRequestBuilder.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,20 @@
2323
*/
2424
public interface ISessionCollectionRequestBuilder extends IRequestBuilder {
2525

26-
ISessionCollectionRequest buildRequest();
27-
26+
/**
27+
* Creates the request
28+
*
29+
* @param requestOptions the options for this request
30+
* @return the IUserRequest instance
31+
*/
32+
ISessionCollectionRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions);
33+
34+
/**
35+
* Creates the request
36+
*
37+
* @param requestOptions the options for this request
38+
* @return the IUserRequest instance
39+
*/
2840
ISessionCollectionRequest buildRequest(final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions);
2941

3042
ISessionRequestBuilder byId(final String id);

0 commit comments

Comments
 (0)