File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
example/android/app/src/androidTest/java/com/example/InstabugSample Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 7
7
import org .junit .Test ;
8
8
import org .junit .runner .RunWith ;
9
9
10
- import java .lang .reflect .InvocationTargetException ;
11
- import java .lang .reflect .Method ;
12
-
13
10
import static androidx .test .espresso .Espresso .onView ;
14
11
import static androidx .test .espresso .action .ViewActions .click ;
15
12
import static androidx .test .espresso .action .ViewActions .replaceText ;
@@ -41,25 +38,5 @@ public void ensureInstabugInvocati1on() throws InterruptedException {
41
38
private void disableScreenShotByMediaProjection () {
42
39
InstabugFlutterPlugin .enableScreenShotByMediaProjection (false );
43
40
}
44
-
45
- public static Method getMethod (Class clazz , String methodName , Class ... parameterType ) {
46
- final Method [] methods = clazz .getDeclaredMethods ();
47
- for (Method method : methods ) {
48
- if (method .getName ().equals (methodName ) && method .getParameterTypes ().length ==
49
- parameterType .length ) {
50
- for (int i = 0 ; i < parameterType .length ; i ++) {
51
- if (method .getParameterTypes ()[i ] == parameterType [i ]) {
52
- if (i == method .getParameterTypes ().length - 1 ) {
53
- method .setAccessible (true );
54
- return method ;
55
- }
56
- } else {
57
- break ;
58
- }
59
- }
60
- }
61
- }
62
- return null ;
63
- }
64
41
}
65
42
You can’t perform that action at this time.
0 commit comments