Skip to content

Commit e946ccd

Browse files
mohitc1Azure DevOps Pipelinefadidurah
authored
Working/release/21.1.0 to release/21.1.0 (#2638)
Co-authored-by: Azure DevOps Pipeline <[email protected]> Co-authored-by: fadidurah <[email protected]>
1 parent de62fe8 commit e946ccd

File tree

7 files changed

+24
-6
lines changed

7 files changed

+24
-6
lines changed

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
vNext
22
----------
3+
4+
Version 21.1.0
5+
----------
36
- [PATCH] Allow generating wrapping key without PURPOSE_WRAP_KEY with Flight (#2633))
47
- [MINOR] Adding a state parameter to prevent phish attacks, in “switch_browser” flow. (#2631)
58
- [MINOR] Move camera logic to CameraPermissionRequestHandler and add SdmQrPinManager (#2630)

common/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ codeCoverageReport {
3131

3232
// In dev, we want to keep the dependencies(common4j, broker4j, common) to 1.0.+ to be able to be consumed by daily dev pipeline.
3333
// In release/*, we change these to specific versions being consumed.
34-
def common4jVersion = "1.0.+"
34+
def common4jVersion = "21.1.0"
3535
if (project.hasProperty("distCommon4jVersion") && project.distCommon4jVersion != '') {
3636
common4jVersion = project.distCommon4jVersion
3737
}

common4j/src/main/com/microsoft/identity/common/java/flighting/CommonFlight.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public enum CommonFlight implements IFlightConfig {
109109
/**
110110
* Flight to enable adding x-client-MN and x-client-WPAvailable extra query parameters
111111
*/
112-
ENABLE_AM_API_WORKPROFILE_EXTRA_QUERY_PARAMETERS("EnableAmApiWorkProfileExtraQueryParameters", false),
112+
ENABLE_AM_API_WORKPROFILE_EXTRA_QUERY_PARAMETERS("EnableAmApiWorkProfileExtraQueryParameters", true),
113113

114114
/** Flight to enable the new key generation without PURPOSE_WRAP_KEY. Default is true.
115115
* This is applicable for API >= 23

common4j/src/main/com/microsoft/identity/common/java/platform/Device.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static void clearDeviceMetadata(){
7979
}
8080

8181
@GuardedBy("sLock")
82-
public static void setIsInPersonalProfileButClouddpcWorkProfileAvailable(final boolean isWorkProfileAvailable) {
82+
public static void setIsInPersonalProfileButClouddpcWorkProfileAvailable(final Boolean isWorkProfileAvailable) {
8383
sLock.writeLock().lock();
8484
try {
8585
sIsInPersonalProfileButClouddpcWorkProfileAvailable = isWorkProfileAvailable;
@@ -89,7 +89,7 @@ public static void setIsInPersonalProfileButClouddpcWorkProfileAvailable(final b
8989
}
9090

9191
@GuardedBy("sLock")
92-
public static boolean isInPersonalProfileButClouddpcWorkProfileAvailable() {
92+
public static Boolean isInPersonalProfileButClouddpcWorkProfileAvailable() {
9393
sLock.readLock().lock();
9494
try {
9595
return sIsInPersonalProfileButClouddpcWorkProfileAvailable;

common4j/src/test/com/microsoft/identity/common/java/platform/DeviceTest.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public class DeviceTest {
4545
@After
4646
public void tearDown() {
4747
Device.clearDeviceMetadata();
48+
Device.setIsInPersonalProfileButClouddpcWorkProfileAvailable(null);
4849
}
4950

5051
@Test
@@ -135,5 +136,19 @@ public void testGetAllMetadata(){
135136
MockDeviceMetadata.TEST_OS_DRS;
136137
Assert.assertEquals(expectedResult, deviceMetadata.getAllMetadata());
137138
}
139+
140+
@Test
141+
public void testGetWorkProfileField(){
142+
Assert.assertNull(Device.isInPersonalProfileButClouddpcWorkProfileAvailable());
143+
144+
Device.setIsInPersonalProfileButClouddpcWorkProfileAvailable(false);
145+
Assert.assertFalse(Device.isInPersonalProfileButClouddpcWorkProfileAvailable());
146+
147+
Device.setIsInPersonalProfileButClouddpcWorkProfileAvailable(true);
148+
Assert.assertTrue(Device.isInPersonalProfileButClouddpcWorkProfileAvailable());
149+
150+
Device.setIsInPersonalProfileButClouddpcWorkProfileAvailable(null);
151+
Assert.assertNull(Device.isInPersonalProfileButClouddpcWorkProfileAvailable());
152+
}
138153
}
139154

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#Wed May 12 20:08:39 UTC 2021
2-
versionName=21.0.0
2+
versionName=21.1.0
33
versionCode=1
44
latestPatchVersion=227

versioning/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#Tue Apr 06 22:55:08 UTC 2021
2-
versionName=21.0.0
2+
versionName=21.1.0
33
versionCode=1
44
latestPatchVersion=234

0 commit comments

Comments
 (0)