feat(android): add Capacitor setup for Android APK builds

- Migrate web assets from root to www/ directory
- Add Android native project with Capacitor 8
- Add GitHub Actions workflow for automated APK builds
- Configure app identity and splash screens
This commit is contained in:
2026-01-21 18:08:57 +01:00
parent 49e981a4b5
commit fd06e2fe83
87 changed files with 2416 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
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());
}
}