Skip to content

Commit

Permalink
Merge pull request #1501 from AzureAD/release/2.2.0
Browse files Browse the repository at this point in the history
Merge 2.2.0 to master for release
  • Loading branch information
iambmelt authored Aug 26, 2021
2 parents 36f3c5c + 2aeccbe commit a1a2e24
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 9 deletions.
5 changes: 5 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
MSAL Wiki : https://github.com/AzureAD/microsoft-authentication-library-for-android/wiki

Version 2.2.0
----------
- Picks up [email protected]

Version 2.1.0
----------
- Picks up [email protected]
Expand Down
2 changes: 1 addition & 1 deletion common
Submodule common updated 39 files
+20 −0 changelog.txt
+0 −2 common/src/androidTest/java/com/microsoft/identity/common/BrokerOAuth2TokenCacheTest.java
+48 −2 common/src/androidTest/java/com/microsoft/identity/common/CommandDispatcherTest.java
+56 −66 common/src/androidTest/java/com/microsoft/identity/common/DefaultSharedPrefsFileManagerReencrypterTest.java
+0 −1 common/src/androidTest/java/com/microsoft/identity/common/MsalOAuth2TokenCacheTest.java
+0 −1 common/src/androidTest/java/com/microsoft/identity/common/SharedPreferencesAccountCredentialCacheTest.java
+5 −6 common/src/androidTest/java/com/microsoft/identity/common/SharedPreferencesFileManagerTests.java
+0 −5 ...n/src/androidTest/java/com/microsoft/identity/common/internal/platform/DevicePoPManagerEncryptionTests.java
+2 −30 common/src/androidTest/java/com/microsoft/identity/common/internal/platform/DevicePoPManagerSigningTests.java
+10 −10 common/src/androidTest/java/com/microsoft/identity/common/internal/platform/DevicePoPManagerTests.java
+35 −0 common/src/main/java/com/microsoft/identity/common/adal/internal/AuthenticationConstants.java
+3 −3 common/src/main/java/com/microsoft/identity/common/adal/internal/tokensharing/SSOStateSerializer.java
+2 −1 common/src/main/java/com/microsoft/identity/common/exception/BaseException.java
+42 −0 common/src/main/java/com/microsoft/identity/common/exception/IErrorInformation.java
+65 −0 common/src/main/java/com/microsoft/identity/common/exception/TerminalException.java
+9 −3 common/src/main/java/com/microsoft/identity/common/internal/authorities/Authority.java
+0 −1 common/src/main/java/com/microsoft/identity/common/internal/cache/ADALOAuth2TokenCache.java
+1 −7 common/src/main/java/com/microsoft/identity/common/internal/cache/BrokerOAuth2TokenCache.java
+1 −0 ...on/src/main/java/com/microsoft/identity/common/internal/cache/DefaultSharedPrefsFileManagerReencrypter.java
+1 −1 common/src/main/java/com/microsoft/identity/common/internal/cache/HelloCache.java
+1 −0 common/src/main/java/com/microsoft/identity/common/internal/cache/ISharedPrefsFileManagerReencrypter.java
+0 −1 common/src/main/java/com/microsoft/identity/common/internal/cache/MsalOAuth2TokenCache.java
+16 −1 common/src/main/java/com/microsoft/identity/common/internal/cache/SharedPreferencesFileManager.java
+12 −2 .../src/main/java/com/microsoft/identity/common/internal/commands/parameters/SilentTokenCommandParameters.java
+2 −8 common/src/main/java/com/microsoft/identity/common/internal/controllers/CommandDispatcher.java
+11 −0 common/src/main/java/com/microsoft/identity/common/internal/controllers/ExceptionAdapter.java
+28 −0 common/src/main/java/com/microsoft/identity/common/internal/platform/Device.java
+85 −40 common/src/main/java/com/microsoft/identity/common/internal/platform/DevicePopManager.java
+1 −41 common/src/main/java/com/microsoft/identity/common/internal/platform/IDevicePopManager.java
+9 −1 ...a/com/microsoft/identity/common/internal/providers/microsoft/azureactivedirectory/AzureActiveDirectory.java
+22 −0 common/src/main/java/com/microsoft/identity/common/internal/providers/oauth2/AuthorizationActivityFactory.java
+0 −1 common/src/main/java/com/microsoft/identity/common/internal/util/ClockSkewManager.java
+209 −0 common/src/main/java/com/microsoft/identity/common/migration/DefaultSharedPrefsFileManagerReencrypter.java
+56 −0 common/src/main/java/com/microsoft/identity/common/migration/IMigrationOperationResult.java
+143 −0 common/src/main/java/com/microsoft/identity/common/migration/ISharedPrefsFileManagerReencrypter.java
+79 −0 common/src/main/java/com/microsoft/identity/common/migration/MigrationOperationResult.java
+1 −1 common/versioning/version.properties
+0 −1 testutils/build.gradle
+2 −11 testutils/src/main/java/com/microsoft/identity/internal/testutils/TestUtils.java
4 changes: 2 additions & 2 deletions msal/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ dependencies {
transitive = false
}

snapshotApi(group: 'com.microsoft.identity', name: 'common', version: '3.4.4', changing: true)
snapshotApi(group: 'com.microsoft.identity', name: 'common', version: '3.6.0', changing: true)

distApi("com.microsoft.identity:common:3.4.4") {
distApi("com.microsoft.identity:common:3.6.0") {
transitive = false
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.robolectric.RobolectricTestRunner;

import java.io.File;
Expand All @@ -62,7 +63,8 @@ public class CommandParametersTest {
@Before
public void setup() {
mContext = ApplicationProvider.getApplicationContext();
mActivity = TestUtils.getMockActivity(mContext);
mActivity = Mockito.mock(Activity.class);
Mockito.when(mActivity.getApplicationContext()).thenReturn(mContext);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.robolectric.ParameterizedRobolectricTestRunner;

import java.util.Arrays;
Expand Down Expand Up @@ -78,7 +79,8 @@ public static Collection<Object[]> data() {
@Before
public void setup() {
mContext = ApplicationProvider.getApplicationContext();
mActivity = TestUtils.getMockActivity(mContext);
mActivity = Mockito.mock(Activity.class);
Mockito.when(mActivity.getApplicationContext()).thenReturn(mContext);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.robolectric.ParameterizedRobolectricTestRunner;

import java.util.Arrays;
Expand Down Expand Up @@ -90,7 +91,8 @@ public static Collection<Object[]> data() {
@Before
public void setup() {
mContext = ApplicationProvider.getApplicationContext();
mActivity = TestUtils.getMockActivity(mContext);
mActivity = Mockito.mock(Activity.class);
Mockito.when(mActivity.getApplicationContext()).thenReturn(mContext);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
import com.microsoft.identity.client.PublicClientApplication;
import com.microsoft.identity.client.exception.MsalException;
import com.microsoft.identity.common.internal.controllers.CommandDispatcherHelper;
import com.microsoft.identity.internal.testutils.TestUtils;

import org.junit.Before;
import org.mockito.Mockito;

import java.io.File;

Expand All @@ -52,7 +52,8 @@ public abstract class PublicClientApplicationAbstractTest implements IPublicClie
@Before
public void setup() {
mContext = ApplicationProvider.getApplicationContext();
mActivity = TestUtils.getMockActivity(mContext);
mActivity = Mockito.mock(Activity.class);
Mockito.when(mActivity.getApplicationContext()).thenReturn(mContext);
setupPCA();
Logger.getInstance().setEnableLogcatLog(true);
Logger.getInstance().setEnablePII(true);
Expand Down
2 changes: 1 addition & 1 deletion msal/versioning/version.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Wed Aug 01 15:24:11 PDT 2018
versionName=2.1.0
versionName=2.2.0
versionCode=0

0 comments on commit a1a2e24

Please sign in to comment.