Repository navigation
Expand file tree
/
Copy pathsettings.gradle
More file actions
333 lines (269 loc) · 15.8 KB
/
Copy pathsettings.gradle
File metadata and controls
333 lines (269 loc) · 15.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
/*
* This file was generated by the Gradle 'init' task.
*
* The settings file is used to specify which projects to include in your build.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user guide at https://docs.gradle.org/5.1.1/userguide/multi_project_builds.html
*/
pluginManagement {
// ---------------------------------------------------------------------------
// Authenticator App opt-in flag.
// Computed once here (inside pluginManagement because Gradle requires
// pluginManagement to be the first statement in settings.gradle) and
// stashed on settings.ext for reuse by the module-include section below.
// Priority (highest wins):
// 1. Command line: ./gradlew -PincludeAuthenticatorApp=true ...
// 2. ~/.gradle/gradle.properties (per-user, never committed)
// 3. gradle.properties (committed project default)
// 4. local.properties (per-checkout, gitignored — fallback only)
// providers.gradleProperty() already resolves 1-3, so we only fall back to
// local.properties when none of those are set.
// ---------------------------------------------------------------------------
def __localProps = new Properties()
def __localPropsFile = new File(settings.rootDir, 'local.properties')
if (__localPropsFile.exists()) {
__localPropsFile.withInputStream { __localProps.load(it) }
}
def includeAuthenticatorApp = (providers.gradleProperty('includeAuthenticatorApp').getOrNull()
?: __localProps.getProperty('includeAuthenticatorApp') ?: 'false').toString() == 'true'
settings.ext.includeAuthenticatorApp = includeAuthenticatorApp
// ---------------------------------------------------------------------------
// Authenticator plugin versions — loaded from authenticator/PhoneFactor/gradle.properties
// so we don't duplicate / drift from Authenticator's canonical versions.
// Falls back to sensible defaults when Authenticator isn't checked out (the plugins
// are still declared `apply false` in the root build.gradle, but never applied).
// ---------------------------------------------------------------------------
def __authProps = new Properties()
def __authPropsFile = new File(settings.rootDir, 'authenticator/PhoneFactor/gradle.properties')
if (__authPropsFile.exists()) {
__authPropsFile.withInputStream { __authProps.load(it) }
}
def __kotlinVersion = __authProps.getProperty('kotlin_version') ?: '2.0.21'
def __roomVersion = __authProps.getProperty('androidx_room_persistence_version') ?: '2.6.1'
// KSP is coupled to BOTH kotlin_version AND its own increment suffix, so it must stay
// pinned as a whole string. Kept in one place here as the single source of truth.
def __kspVersion = '2.0.21-1.0.27'
resolutionStrategy {
eachPlugin {
switch (requested.id.id) {
case 'com.google.devtools.ksp':
useVersion(__kspVersion); break
case 'org.jetbrains.kotlin.plugin.compose':
useVersion(__kotlinVersion); break
case 'androidx.room':
useVersion(__roomVersion); break
}
}
}
repositories {
mavenLocal()
google()
// If you don't have access to the package feed below, uncomment the maven central repo
// mavenCentral()
gradlePluginPortal()
maven {
// msazure and aria are consumed via upstream sources of the NewAndroid feed.
name "vsts-maven-new-android"
url "https://identitydivision.pkgs.visualstudio.com/_packaging/NewAndroid/maven/v1"
credentials {
username System.getenv("ENV_VSTS_MVN_CRED_USERNAME") != null ? System.getenv("ENV_VSTS_MVN_CRED_USERNAME") : vstsUsername
password System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") != null ? System.getenv("ENV_VSTS_MVN_CRED_ACCESSTOKEN") : vstsMavenAccessToken
}
}
// Authenticator App feed — only registered when Authenticator modules are enabled.
if (includeAuthenticatorApp) {
maven {
name "vsts-maven-authapp"
url "https://msazure.pkgs.visualstudio.com/One/_packaging/AuthApp/maven/v1"
credentials {
username "VSTS"
password System.getenv("SYSTEM_ACCESSTOKEN") != null ? System.getenv("SYSTEM_ACCESSTOKEN") : providers.gradleProperty("adoMsazureAuthAppAccessToken").getOrElse("")
}
// Accept artifacts without POMs. DexGuard is stored in external feed without POM.
metadataSources {
mavenPom() // Try to find the POM first (preferred)
artifact() // If no POM, accept the JAR anyway (fallback)
}
}
}
}
}
// Re-bind the Authenticator opt-in flag (computed inside pluginManagement) to a
// local variable so the module-include section below reads naturally.
def includeAuthenticatorApp = settings.ext.includeAuthenticatorApp
// Fail fast when the opt-in flag is set but the authenticator/ checkout is missing
// or incomplete. Without this, Gradle would emit a confusing cascade of "project
// directory does not exist" errors deep in the include() calls below.
def __authenticatorDir = new File(settings.rootDir, 'authenticator')
def __authenticatorPhoneFactorDir = new File(__authenticatorDir, 'PhoneFactor')
if (includeAuthenticatorApp && !__authenticatorPhoneFactorDir.isDirectory()) {
def __msg
if (!__authenticatorDir.exists()) {
// Case 1: nothing cloned yet.
__msg = "includeAuthenticatorApp=true but authenticator/ is not checked out.\n" +
" Fix: re-run git droidSetup (clones only what's missing)."
} else {
// Case 2: authenticator/ exists but is empty / partial / wrong contents.
// git clone refuses to write into a non-empty directory, so droidSetup alone
// won't recover — the stale folder has to be removed first.
__msg = "includeAuthenticatorApp=true and authenticator/ exists, but " +
"authenticator/PhoneFactor/ is missing (partial or stale checkout).\n" +
" Fix: delete the folder and re-run droidSetup:\n" +
" rm -rf authenticator && git droidSetup"
}
throw new GradleException(
__msg + "\n" +
" To build without Authenticator instead, set includeAuthenticatorApp=false " +
"in gradle.properties (or ~/.gradle/gradle.properties).")
}
rootProject.name = 'android_auth'
// Android DevX Projects
include ':adal'
project(':adal').projectDir = new File('adal/adal')
include(':msal')
project(':msal').projectDir = new File('msal/msal')
include(':common')
project(':common').projectDir = new File('common/common')
include(':AADAuthenticator')
project(':AADAuthenticator').projectDir = new File('broker/AADAuthenticator')
include(":brokerHost")
project(':brokerHost').projectDir = new File('broker/userapp')
include(":adalTestApp")
project(':adalTestApp').projectDir = new File('adal/userappwithbroker')
include(":msalTestApp")
project(':msalTestApp').projectDir = new File('msal/testapps/testapp')
include(":package-inspector")
project(':package-inspector').projectDir = new File('msal/package-inspector')
//include(":pop-benchmarker")
//project(':pop-benchmarker').projectDir = new File('msal/pop-benchmarker')
include(":testutils")
project(':testutils').projectDir = new File('common/testutils')
include(":msalautomationapp")
project(':msalautomationapp').projectDir = new File('msal/msalautomationapp')
include(":uiautomationutilities")
project(':uiautomationutilities').projectDir = new File('common/uiautomationutilities')
include(":brokerautomationapp")
project(':brokerautomationapp').projectDir = new File('broker/brokerautomationapp')
//include(":oneauth")
//project(':oneauth').projectDir = new File('oneauth/sources/android/gradle')
//
//include(":oneauthtestapp")
//project(':oneauthtestapp').projectDir = new File('oneauth/testapps/android/oneauthtestapp/app')
//include(":msalcpptesthost")
//project(':msalcpptesthost').projectDir = new File('msalcpp/test/android/testhost/app')
// Pure Java DevX Projects
include(':common4j')
project(':common4j').projectDir = new File('common/common4j')
include(":labapi")
project(':labapi').projectDir = new File('common/labapi')
include(":keyvault")
project(':keyvault').projectDir = new File('common/keyvault')
include(":AcaPlugin")
project(':AcaPlugin').projectDir = new File('plugins/buildsystem')
include(":broker4j")
project(':broker4j').projectDir = new File('broker/broker4j')
include(':LabApiUtilities')
project(':LabApiUtilities').projectDir = new File('common/LabApiUtilities')
include(":AzureSample")
project(':AzureSample').projectDir = new File('azuresample/app')
include(":mockauthapp")
project(':mockauthapp').projectDir = new File('broker/mockbrokers/mockauthapp')
include(":mockcp")
project(':mockcp').projectDir = new File('broker/mockbrokers/mockcp')
include(":mockltw")
project(':mockltw').projectDir = new File('broker/mockbrokers/mockltw')
include(":mockbrokerapplib")
project(':mockbrokerapplib').projectDir = new File('broker/mockbrokers/mockbrokerapplib')
include(":NativeAuthSample")
project(':NativeAuthSample').projectDir = new File('nativeauthsample/app')
// Authenticator App Projects — only included when the opt-in flag is set.
if (includeAuthenticatorApp) {
// Main Authenticator app module (entry point with MainActivity, UI, and app lifecycle)
include ':MSAuthenticator'
project(':MSAuthenticator').projectDir = new File('authenticator/PhoneFactor/app')
// AAD Next-Generation Credentials (NGC) — remote passwordless key registration and deletion
include ':AadRemoteNgcLibrary'
project(':AadRemoteNgcLibrary').projectDir = new File('authenticator/PhoneFactor/AadRemoteNgcLibrary')
// Shared Android instrumented test utilities (Espresso helpers, test rules, logcat)
include ':AndroidTestUtilitiesLibrary'
project(':AndroidTestUtilitiesLibrary').projectDir = new File('authenticator/PhoneFactor/AndroidTestUtilitiesLibrary')
// User credential policy enforcement and auth app state persistence
include ':AuthenticatorPolicyChannel'
project(':AuthenticatorPolicyChannel').projectDir = new File('authenticator/PhoneFactor/AuthenticatorPolicyChannel')
// Credential history signals collection and storage for risk assessment
include ':AuthenticatorSignalsLibrary'
project(':AuthenticatorSignalsLibrary').projectDir = new File('authenticator/PhoneFactor/AuthenticatorSignalsLibrary')
// Bastion validation processing and response handling for secure auth flows
include ':BastionLibrary'
project(':BastionLibrary').projectDir = new File('authenticator/PhoneFactor/BastionLibrary')
// Shared UI components, dialogs, View extensions, and device screen-unlock activity
include ':CommonUiLibrary'
project(':CommonUiLibrary').projectDir = new File('authenticator/PhoneFactor/CommonUiLibrary')
// FIDO2/CTAP passkey management — storage, registration, and assertion handling
include ':CtapLibrary'
project(':CtapLibrary').projectDir = new File('authenticator/PhoneFactor/CtapLibrary')
// ECS (Experimentation & Configuration Service) feature-flag provider integration
include ':ExperimentationLibrary'
project(':ExperimentationLibrary').projectDir = new File('authenticator/PhoneFactor/ExperimentationLibrary')
// Microsoft Graph API client for auth methods policy and public key credential operations
include ':GraphClient'
project(':GraphClient').projectDir = new File('authenticator/PhoneFactor/GraphClient')
// Location permission management and GPS-signal UI for conditional-access scenarios
include ':LocationLibrary'
project(':LocationLibrary').projectDir = new File('authenticator/PhoneFactor/LocationLibrary')
// MFA SDK — push-notification registration, PIN encryption, and device-notification validation
include ':MfaLibrary'
project(':MfaLibrary').projectDir = new File('authenticator/PhoneFactor/MfaLibrary')
// Macrobenchmark references ':app' internally — excluded since it's not needed for local dev.
// include ':Macrobenchmark'
// project(':Macrobenchmark').projectDir = new File('authenticator/PhoneFactor/Macrobenchmark')
// Microsoft Account (MSA) management — ticket acquisition and MSA account operations
include ':MsaAccountLibrary'
project(':MsaAccountLibrary').projectDir = new File('authenticator/PhoneFactor/MsaAccountLibrary')
// MSA SDK wrapper (debug build variant)
include ':MsaSdkDebug'
project(':MsaSdkDebug').projectDir = new File('authenticator/PhoneFactor/MsaSdkDebug')
// MSA SDK wrapper (release build variant)
include ':MsaSdkRelease'
project(':MsaSdkRelease').projectDir = new File('authenticator/PhoneFactor/MsaSdkRelease')
// Native crash reporting via Breakpad for Authenticator's native code
include ':NativeLibrary'
project(':NativeLibrary').projectDir = new File('authenticator/PhoneFactor/NativeLibrary')
// NGC key provider — Android Keystore-backed key generation and credential management
include ':NgcProviderLibrary'
project(':NgcProviderLibrary').projectDir = new File('authenticator/PhoneFactor/NgcProviderLibrary')
// Rooted/compromised device detection and telemetry
include ':RootDetectionLibrary'
project(':RootDetectionLibrary').projectDir = new File('authenticator/PhoneFactor/RootDetectionLibrary')
// QR code scanning UI and result-handling pipeline
include ':ScanQrCodeLibrary'
project(':ScanQrCodeLibrary').projectDir = new File('authenticator/PhoneFactor/ScanQrCodeLibrary')
// Secure asymmetric key-pair generation (ECC/RSA) and Keystore access layer
include ':SecureKeystoreLibrary'
project(':SecureKeystoreLibrary').projectDir = new File('authenticator/PhoneFactor/SecureKeystoreLibrary')
// Core crypto, encryption interfaces, and shared utilities across Authenticator modules
include ':SharedCoreLibrary'
project(':SharedCoreLibrary').projectDir = new File('authenticator/PhoneFactor/SharedCoreLibrary')
// Silent push-notification channel for background MFA approval
include ':SilentNotificationChannelLibrary'
project(':SilentNotificationChannelLibrary').projectDir = new File('authenticator/PhoneFactor/SilentNotificationChannelLibrary')
// Unit-test utilities and helpers for Authenticator modules
include ':TestUtilitiesLibrary'
project(':TestUtilitiesLibrary').projectDir = new File('authenticator/PhoneFactor/TestUtilitiesLibrary')
// Decentralized identity (DID) SDK — issuance, presentation, and revocation of verifiable credentials
include ':VerifiableCredential-SDK'
project(':VerifiableCredential-SDK').projectDir = new File('authenticator/PhoneFactor/VerifiableCredential-SDK/sdk')
// Verifiable credential wallet — VC storage, display, and sharing UI
include ':VerifiableCredential-Wallet'
project(':VerifiableCredential-Wallet').projectDir = new File('authenticator/PhoneFactor/VerifiableCredential-Wallet')
// Entra Verified ID wallet — holder identifier management and credential extensions
include ':WalletLibrary'
project(':WalletLibrary').projectDir = new File('authenticator/PhoneFactor/WalletLibrary/walletlibrary')
// FaceCheck biometric liveness extension for Entra Verified ID presentations
include ':WalletLibrary-FaceCheck-Extension'
project(':WalletLibrary-FaceCheck-Extension').projectDir = new File('authenticator/PhoneFactor/WalletLibrary-FaceCheck-Extension/FaceCheck')
// UI Automator end-to-end smoke tests for Authenticator app
include ':uiautomator-tests'
project(':uiautomator-tests').projectDir = new File('authenticator/PhoneFactor/uiautomator-tests')
}