File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,6 +96,9 @@ boolean newBrokerDiscoveryEnabledFlag = project.hasProperty("newBrokerDiscoveryE
9696boolean trustDebugBrokerFlag = project. hasProperty(" trustDebugBrokerFlag" )
9797boolean bypassRedirectUriCheck = project. hasProperty(" bypassRedirectUriCheck" )
9898
99+ def robolectricRepoUsername = System . getenv(" ENV_VSTS_MVN_CRED_USERNAME" ) != null ? System . getenv(" ENV_VSTS_MVN_CRED_USERNAME" ) : project. findProperty(" vstsUsername" )
100+ def robolectricRepoPassword = System . getenv(" ENV_VSTS_MVN_CRED_ACCESSTOKEN" ) != null ? System . getenv(" ENV_VSTS_MVN_CRED_ACCESSTOKEN" ) : project. findProperty(" vstsMavenAccessToken" )
101+
99102android {
100103 compileSdk rootProject. ext. compileSdkVersion
101104 defaultConfig {
@@ -160,6 +163,11 @@ android {
160163 unitTests. all {
161164 exclude ' com/microsoft/identity/common/integration'
162165 exclude ' com/microsoft/identity/common/ropc'
166+ if (robolectricRepoUsername?. toString()?. trim() && robolectricRepoPassword?. toString()?. trim()) {
167+ it. systemProperty(" robolectric.dependency.repo.url" , " https://identitydivision.pkgs.visualstudio.com/_packaging/NewAndroid/maven/v1" )
168+ it. systemProperty(" robolectric.dependency.repo.username" , robolectricRepoUsername)
169+ it. systemProperty(" robolectric.dependency.repo.password" , robolectricRepoPassword)
170+ }
163171 }
164172 }
165173
You can’t perform that action at this time.
0 commit comments