mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
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:
committed by
GitHub
parent
55399798b6
commit
9b5b76203f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user