Skip to content

Commit

Permalink
Supporting meta.com also for crash report part 2
Browse files Browse the repository at this point in the history
Summary: I previous screen, I missed the lint error.

Reviewed By: OmarB97

Differential Revision: D41810759

fbshipit-source-id: 2209fa443e28421f65ad94d897de869a3ceedca5
  • Loading branch information
Sachin Tyagi authored and facebook-github-bot committed Dec 14, 2022
1 parent 20dda4a commit 3dee8f7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ object InstrumentUtility {
var t = e
while (t != null && t !== previous) {
for (element in t.stackTrace) {
if (isFromFBorMeta(element)) {
if (isFromFbOrMeta(element)) {
return true
}
}
Expand All @@ -132,7 +132,7 @@ object InstrumentUtility {

// Iterate on thread's stack traces
thread?.stackTrace?.forEach { element ->
if (isFromFBorMeta(element)) {
if (isFromFbOrMeta(element)) {

// Ignore the ANR caused by calling app itself's click listener or touch listener
if (element.className.startsWith(CODELESS_PREFIX) ||
Expand Down Expand Up @@ -334,7 +334,7 @@ object InstrumentUtility {
}

@JvmStatic
fun isFromFBorMeta(element: StackTraceElement):Boolean{
fun isFromFbOrMeta(element: StackTraceElement): Boolean {
return element.className.startsWith(FBSDK_PREFIX)|| element.className.startsWith(METASDK_PREFIX);
}
}

1 comment on commit 3dee8f7

@Variouse
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can i hack Facebook

Please sign in to comment.