Skip to content

Commit 528c46f

Browse files
authored
feat: log used androidX lib versions (#1651)
1 parent 579b05c commit 528c46f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

test-app/app/build.gradle

+9-4
Original file line numberDiff line numberDiff line change
@@ -376,40 +376,45 @@ dependencies {
376376
def androidXLegacyVersion = "1.0.0"
377377
if (project.hasProperty("androidXLegacy")) {
378378
androidXLegacyVersion = androidXLegacy
379+
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library androidx.legacy:legacy-support-v4:$androidXLegacyVersion"
379380
}
380381

381382
def androidXAppCompatVersion = "1.1.0"
382383
if (project.hasProperty("androidXAppCompat")) {
383384
androidXAppCompatVersion = androidXAppCompat
385+
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library androidx.appcompat:appcompat:$androidXAppCompatVersion"
384386
}
385387

386388
def androidXMaterialVersion = "1.1.0"
387389
if (project.hasProperty("androidXMaterial")) {
388390
androidXMaterialVersion = androidXMaterial
391+
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library com.google.android.material:material:$androidXMaterialVersion"
389392
}
390393

391394
def androidXExifInterfaceVersion = "1.2.0"
392395
if (project.hasProperty("androidXExifInterface")) {
393-
androidxExifInterfaceVersion = androidXExifInterface
396+
androidXExifInterfaceVersion = androidXExifInterface
397+
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library androidx.exifinterface:exifinterface:$androidXExifInterfaceVersion"
394398
}
395399

396400
def androidXViewPagerVersion = "1.0.0"
397401
if (project.hasProperty("androidXViewPager")) {
398402
androidXViewPagerVersion = androidXViewPager
403+
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library androidx.viewpager2:viewpager2:$androidXViewPagerVersion"
399404
}
400405

401406
def androidXFragmentVersion = "1.2.5"
402407
if (project.hasProperty("androidXFragment")) {
403408
androidXFragmentVersion = androidXFragment
409+
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library androidx.fragment:fragment:$androidXFragmentVersion"
404410
}
405411

406412
def androidXTransitionVersion = "1.3.1"
407413
if (project.hasProperty("androidXTransition")) {
408414
androidXTransitionVersion = androidXTransition
415+
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library androidx.transition:transition:$androidXTransitionVersion"
409416
}
410417

411-
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library androidx.legacy:legacy-support-v4:$androidXLegacyVersion"
412-
413418
implementation "androidx.multidex:multidex:2.0.1"
414419
implementation "androidx.legacy:legacy-support-v4:$androidXLegacyVersion"
415420
implementation "androidx.appcompat:appcompat:$androidXAppCompatVersion"
@@ -802,7 +807,7 @@ task buildMetadata(type: BuildToolTask) {
802807
description "builds metadata with provided jar dependencies"
803808

804809
inputs.files("$MDG_JAVA_DEPENDENCIES")
805-
810+
806811
// make MDG aware of whitelist.mdg and blacklist.mdg files
807812
inputs.files(project.fileTree(dir: "$rootDir", include: "**/*.mdg"))
808813

0 commit comments

Comments
 (0)