Remove unnecessary test file, fix android build commands

This commit is contained in:
Alex Gleason committed 2025-10-03 15:49:44 -05:00
1 parent bf8f9a07e7
commit 88c2ce39b6
3 files changed
+4 -28

No files matched your search

+2
View File
@@ -13,6 +13,8 @@ dist-ssr
*.local
.ai-history/
.tmp.webmanifest
*.apk
*.aab
# Editor directories and files
.idea
@@ -1,26 +0,0 @@
package com.getcapacitor.myapp;
import static org.junit.Assert.*;
import android.content.Context;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.platform.app.InstrumentationRegistry;
import org.junit.Test;
import org.junit.runner.RunWith;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.getcapacitor.app", appContext.getPackageName());
}
}
+2 -2
View File
@@ -9,8 +9,8 @@
"typecheck": "npm i --silent && tsc --noEmit",
"test": "npm i --silent && eslint && vitest run --reporter=dot --silent && echo 'All tests passed!'",
"deploy": "npm run build && npx -y nostr-deploy-cli deploy --skip-setup",
"android:build": "npm run android:sync && cd android && ./gradlew bundleRelease",
"android:apk": "npm run android:sync && cd android && ./gradlew assembleRelease",
"android:aab": "npm run android:sync && cd android && ./gradlew bundleRelease && cd .. && cp android/app/build/outputs/bundle/release/app-release.aab shakespeare.aab",
"android:apk": "npm run android:sync && cd android && ./gradlew assembleRelease && cd .. && cp android/app/build/outputs/apk/release/app-release.apk shakespeare.apk",
"android:open": "npx cap open android",
"android:sync": "npm run build && npx cap sync android && npm run android:assets",
"android:run": "npm run android:sync && npx cap run android",