diff --git a/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java b/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java index 1d58c77..1170c8a 100644 --- a/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +++ b/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java @@ -1,8 +1,8 @@ package com.getcapacitor.android; import android.content.Context; -import android.support.test.InstrumentationRegistry; -import android.support.test.runner.AndroidJUnit4; +import androidx.test.platform.app.InstrumentationRegistry; +import androidx.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; @@ -19,7 +19,7 @@ public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. - Context appContext = InstrumentationRegistry.getTargetContext(); + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("com.getcapacitor.android", appContext.getPackageName()); } diff --git a/package.json b/package.json index f86f4aa..ca7ff41 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,8 @@ "dist/", "ios/", "android/", + "!android/src/androidTest", + "!android/src/test", "CodetrixStudioCapacitorGoogleAuth.podspec" ], "keywords": [ @@ -62,4 +64,4 @@ "url": "https://github.com/CodetrixStudio/CapacitorGoogleAuth/issues" }, "prettier": "@ionic/prettier-config" -} \ No newline at end of file +}