summaryrefslogtreecommitdiff
path: root/android-lint/src
diff options
context:
space:
mode:
authorYuriy Solodkyy <solodkyy@google.com>2021-10-25 13:31:36 +0100
committerYuriy Solodkyy <solodkyy@google.com>2021-10-25 15:47:37 +0000
commit502e7fb34eceeafa15c33d77d29cd7dc44b90b48 (patch)
treedff64ab45c69e98540fd0b99dc3a9849cf5a22bf /android-lint/src
parentfdf65e2b70bf096103f71020a899290f027412d0 (diff)
downloadidea-502e7fb34eceeafa15c33d77d29cd7dc44b90b48.tar.gz
Replace current SDK version with a placeholder
in IDE model snapshots. Bug: 203803107 Test: n/a Change-Id: I3d5be37ff5fd7d0ccd479a8d10928af9293b4a1b
Diffstat (limited to 'android-lint/src')
-rw-r--r--android-lint/src/com/android/tools/idea/lint/model/LintModelDumper.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/android-lint/src/com/android/tools/idea/lint/model/LintModelDumper.kt b/android-lint/src/com/android/tools/idea/lint/model/LintModelDumper.kt
index eab671e10e7..a3721d9073b 100644
--- a/android-lint/src/com/android/tools/idea/lint/model/LintModelDumper.kt
+++ b/android-lint/src/com/android/tools/idea/lint/model/LintModelDumper.kt
@@ -69,9 +69,9 @@ private fun ProjectDumper.dump(lintModelModule: LintModelModule) {
lintModelModule.lintRuleJars.forEach { prop("- LintRuleJars") { it.path.toPrintablePath() } }
prop("ResourcePrefix") { lintModelModule.resourcePrefix }
lintModelModule.dynamicFeatures.forEach { prop("- DynamicFeatures") { it } }
- lintModelModule.bootClassPath.forEach { prop("- BootClassPath") { it.path.toPrintablePath() } }
+ lintModelModule.bootClassPath.forEach { prop("- BootClassPath") { it.path.toPrintablePath().replaceCurrentSdkVersion() } }
prop("JavaSourceLevel") { lintModelModule.javaSourceLevel }
- prop("CompileTarget") { lintModelModule.compileTarget }
+ prop("CompileTarget") { lintModelModule.compileTarget.replaceCurrentSdkVersion() }
this.dump(lintModelModule.lintOptions)
lintModelModule.variants.forEach { dump(it) }
}