File tree Expand file tree Collapse file tree
build/project-template-gradle/src/main/java/com/tns Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,14 +114,14 @@ static Intent getIntent(Context context)
114114 {
115115 Class <?> errorActivityClass = ErrorReportActivity .class ;
116116
117- if (JsDebugger .isDebuggableApp (context ))
117+ if (AndroidJsDebugger .isDebuggableApp (context ))
118118 {
119119 errorActivityClass = ErrorReportActivity .class ;
120120 }
121121 else {
122122 return null ;
123123 }
124-
124+
125125 Intent intent = new Intent (context , errorActivityClass );
126126
127127 intent .putExtra (EXTRA_NATIVESCRIPT_ERROR_REPORT , EXTRA_ERROR_REPORT_VALUE );
Original file line number Diff line number Diff line change 1- APP_ABI := armeabi-v7a x86 arm64-v8a
1+ APP_ABI := x86 # armeabi-v7a x86 arm64-v8a
22
33APP_STL := stlport_static
44# APP_STL := gnustl_static
Original file line number Diff line number Diff line change @@ -114,6 +114,14 @@ static Intent getIntent(Context context)
114114 {
115115 Class <?> errorActivityClass = ErrorReportActivity .class ;
116116
117+ if (AndroidJsDebugger .isDebuggableApp (context ))
118+ {
119+ errorActivityClass = ErrorReportActivity .class ;
120+ }
121+ else {
122+ return null ;
123+ }
124+
117125 Intent intent = new Intent (context , errorActivityClass );
118126
119127 intent .putExtra (EXTRA_NATIVESCRIPT_ERROR_REPORT , EXTRA_ERROR_REPORT_VALUE );
Original file line number Diff line number Diff line change @@ -122,22 +122,5 @@ public void initRuntime()
122122 }
123123 }
124124
125- /* public static boolean isDebuggableApp(Context context)
126- {
127- int flags;
128- try
129- {
130- flags = context.getPackageManager().getPackageInfo(context.getPackageName(), 0).applicationInfo.flags;
131- }
132- catch (NameNotFoundException e)
133- {
134- flags = 0;
135- e.printStackTrace();
136- }
137-
138- boolean isDebuggableApp = ((flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0);
139- return isDebuggableApp;
140- }*/
141-
142125 private final String logTag = "MyApp" ;
143126}
You can’t perform that action at this time.
0 commit comments