@@ -218,18 +218,16 @@ fun AndroidComponentsExtension<*, *, *>.configure(
218
218
)
219
219
.toTransform(SingleArtifact .MERGED_MANIFEST )
220
220
}
221
- }
222
- if (extension.sizeAnalysis.enabled.get() == true ) {
223
- val sentryTelemetryProvider =
224
- variant.configureTelemetry(project, extension, cliExecutable, sentryOrg, buildEvents)
225
- variant.configureUploadAppTasks(
226
- project,
227
- extension,
228
- sentryTelemetryProvider,
229
- cliExecutable,
230
- sentryOrg,
231
- sentryProject,
232
- )
221
+ if (extension.sizeAnalysis.enabled.get() == true ) {
222
+ variant.configureUploadAppTasks(
223
+ project,
224
+ extension,
225
+ sentryTelemetryProvider,
226
+ cliExecutable,
227
+ sentryOrg,
228
+ sentryProject,
229
+ )
230
+ }
233
231
}
234
232
}
235
233
}
@@ -365,11 +363,11 @@ private fun Variant.configureProguardMappingsTasks(
365
363
releaseInfo = releaseInfo,
366
364
)
367
365
368
- generateUuidTask.hookWithMinifyTasks(
369
- project,
370
- name,
371
- dexguardEnabled && GroovyCompat .isDexguardEnabledForVariant(project, name),
372
- )
366
+ generateUuidTask.hookWithMinifyTasks(
367
+ project,
368
+ name,
369
+ dexguardEnabled && GroovyCompat .isDexguardEnabledForVariant(project, name),
370
+ )
373
371
374
372
uploadMappingsTask.hookWithAssembleTasks(project, variant)
375
373
@@ -380,7 +378,8 @@ private fun Variant.configureProguardMappingsTasks(
380
378
}
381
379
382
380
/* *
383
- * Configure the upload AAB and APK tasks and set them up as finalizers on the respective producer tasks
381
+ * Configure the upload AAB and APK tasks and set them up as finalizers on the respective producer
382
+ * tasks
384
383
*/
385
384
fun Variant.configureUploadAppTasks (
386
385
project : Project ,
@@ -408,7 +407,8 @@ fun Variant.configureUploadAppTasks(
408
407
sentryProperties = sentryProps,
409
408
taskSuffix = name.capitalized,
410
409
)
411
- // TODO we can use the listToArtifacts API in AGP 8.3+ https://github.com/android/gradle-recipes/tree/agp-8.10/listenToArtifacts
410
+ // TODO we can use the listToArtifacts API in AGP 8.3+
411
+ // https://github.com/android/gradle-recipes/tree/agp-8.10/listenToArtifacts
412
412
project.afterEvaluate {
413
413
getBundleTask(project, variant.name)!! .configure { it.finalizedBy(uploadBundleTask) }
414
414
getAssembleTaskProvider(project, variant)!! .configure { it.finalizedBy(uploadApkTask) }
0 commit comments