The manifest launches org.skatespots.app.MainActivity; when that class was missing/wrong the app crashed on startup. Add a STOCK MainActivity (extends BridgeActivity, no WebViewClient override) plus an idempotent injector that guarantees it's always present after cap add / rm -rf android. This is the safe default — the earlier custom version broke startup. Delete fix (setPackageName) remains intact. Bump to 1.2.11. Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
20 lines
770 B
Java
20 lines
770 B
Java
package org.skatespots.app;
|
|
|
|
import com.getcapacitor.BridgeActivity;
|
|
|
|
/**
|
|
* Default Capacitor launcher activity.
|
|
*
|
|
* This is the STOCK Capacitor MainActivity — it does NOT override the
|
|
* WebViewClient or anything else. An earlier custom version overrode the
|
|
* WebViewClient and wiped out the client Capacitor needs to load the web layer,
|
|
* causing a black-screen crash on launch. This minimal version simply exists so
|
|
* the AndroidManifest has a valid launcher class to point at, and lets Capacitor
|
|
* boot normally.
|
|
*
|
|
* Injected into the generated android/ project at build time by
|
|
* scripts/inject-main-activity.mjs so the correct class is always present even
|
|
* after `rm -rf android` / `cap add`.
|
|
*/
|
|
public class MainActivity extends BridgeActivity {
|
|
}
|