Use secret Sentry DSN value (#4210)
* Use secret Sentry DSN value. We realised our DSN entry has been shipped along with the code and it was being used in several forks as is, resulting in wrong bug reports coming into our Sentry dashboard and making it very hard to debug actual issues in the app.
This commit is contained in:
parent
55399798b6
commit
9b5b76203f
11 changed files with 52 additions and 14 deletions
|
|
@ -13,6 +13,7 @@ import org.gradle.api.provider.ValueSourceParameters
|
|||
import org.gradle.process.ExecOperations
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.io.IOException
|
||||
import java.util.Properties
|
||||
import javax.inject.Inject
|
||||
|
||||
abstract class GitRevisionValueSource : ValueSource<String, ValueSourceParameters.None> {
|
||||
|
|
@ -47,3 +48,10 @@ private fun ExecOperations.runCommand(cmd: String): String {
|
|||
}
|
||||
return String(outputStream.toByteArray()).trim()
|
||||
}
|
||||
|
||||
fun Project.readLocalProperty(name: String): String? = Properties().apply {
|
||||
try {
|
||||
load(rootProject.file("local.properties").reader())
|
||||
} catch (ignored: IOException) {
|
||||
}
|
||||
}.getProperty(name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue