File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
android/src/androidTest/java/com/getcapacitor/android Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11package com .getcapacitor .android ;
22
33import android .content .Context ;
4- import android . support . test .InstrumentationRegistry ;
5- import android . support .test .runner .AndroidJUnit4 ;
4+ import androidx . test . platform . app .InstrumentationRegistry ;
5+ import androidx .test .runner .AndroidJUnit4 ;
66
77import org .junit .Test ;
88import org .junit .runner .RunWith ;
@@ -19,7 +19,7 @@ public class ExampleInstrumentedTest {
1919 @ Test
2020 public void useAppContext () throws Exception {
2121 // Context of the app under test.
22- Context appContext = InstrumentationRegistry .getTargetContext ();
22+ Context appContext = InstrumentationRegistry .getInstrumentation (). getTargetContext ();
2323
2424 assertEquals ("com.getcapacitor.android" , appContext .getPackageName ());
2525 }
Original file line number Diff line number Diff line change 3232 " dist/" ,
3333 " ios/" ,
3434 " android/" ,
35+ " !android/src/androidTest" ,
36+ " !android/src/test" ,
3537 " CodetrixStudioCapacitorGoogleAuth.podspec"
3638 ],
3739 "keywords" : [
6264 "url" : " https://github.com/CodetrixStudio/CapacitorGoogleAuth/issues"
6365 },
6466 "prettier" : " @ionic/prettier-config"
65- }
67+ }
You can’t perform that action at this time.
0 commit comments