SplashFragment: Fix parsing shared app link
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -22,8 +22,6 @@ package com.aurora.extensions
|
||||
import android.graphics.Color
|
||||
import android.text.format.DateFormat
|
||||
import androidx.annotation.ColorInt
|
||||
import java.io.PrintWriter
|
||||
import java.io.StringWriter
|
||||
import java.util.Calendar
|
||||
import java.util.Locale
|
||||
import javax.annotation.Nullable
|
||||
@@ -34,19 +32,6 @@ fun Long.toDate(): String {
|
||||
return DateFormat.format("dd/MM/yy", calendar).toString()
|
||||
}
|
||||
|
||||
fun Throwable.stackTraceToString(): String {
|
||||
val stringWriter = StringWriter(1024)
|
||||
val printWriter = PrintWriter(stringWriter)
|
||||
printStackTrace(printWriter)
|
||||
printWriter.close()
|
||||
return stringWriter.toString()
|
||||
}
|
||||
|
||||
fun isValidPackageName(packageName: String): Boolean {
|
||||
val packageRegex = "^[a-zA-Z][a-zA-Z0-9_]*(\\.[a-zA-Z][a-zA-Z0-9_]*)*$".toRegex()
|
||||
return packageName.matches(packageRegex)
|
||||
}
|
||||
|
||||
/**
|
||||
* Computes a darker color from the given color.
|
||||
* @param color The color to darken.
|
||||
|
||||
Reference in New Issue
Block a user