kotlin.com.datadog.gradle.plugin.internal.sanitizer.ShortUriGitRemoteUrlSanitizer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dd-sdk-android-gradle-plugin Show documentation
Show all versions of dd-sdk-android-gradle-plugin Show documentation
Plugin to upload Proguard/R8 mapping files to Datadog.
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
package com.datadog.gradle.plugin.internal.sanitizer
internal class ShortUriGitRemoteUrlSanitizer : FullUriGitRemoteUrlSanitizer() {
override fun sanitize(url: String): String {
val sanitizedUri = super.sanitize("$SSH_SCHEMA_PREFIX$url")
return sanitizedUri.removePrefix(SSH_SCHEMA_PREFIX)
}
companion object {
const val SSH_SCHEMA_PREFIX = "ssh://"
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy