diff --git a/.gitignore b/.gitignore index f302c8bf..d675526e 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,8 @@ dist-ssr *.local .ai-history/ .tmp.webmanifest +*.apk +*.aab # Editor directories and files .idea diff --git a/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java b/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java deleted file mode 100644 index f2c2217e..00000000 --- a/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +++ /dev/null @@ -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 Testing documentation - */ -@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()); - } -} diff --git a/package.json b/package.json index 7ec80859..591e680f 100644 --- a/package.json +++ b/package.json @@ -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",