fix(test-app): resolve plugin detection and remove unused HomeViewSimple

- Fix System Status card to show correct plugin availability
- Add automatic status check on component mount
- Remove HomeViewSimple.vue (no longer needed)
- Fix Vue 3 compatibility issues (@click.native removal)
- Add comprehensive plugin diagnostics with all available plugins
- Implement post-sync script to maintain capacitor.plugins.json
- Add annotation processor for automatic plugin discovery

The DailyNotification plugin now loads correctly and both System Status
and Plugin Diagnostics show consistent, accurate information.
This commit is contained in:
Matthew Raymer
2025-10-17 10:13:50 +00:00
parent 64b65f8a94
commit 200f85a1fb
8 changed files with 154 additions and 285 deletions

View File

@@ -40,6 +40,10 @@ dependencies {
implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
implementation project(':capacitor-android')
// Capacitor annotation processor for automatic plugin discovery
annotationProcessor project(':capacitor-android')
testImplementation "junit:junit:$junitVersion"
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"

View File

@@ -1,24 +1,10 @@
package com.timesafari.dailynotification.test;
import com.getcapacitor.BridgeActivity;
import com.timesafari.dailynotification.DailyNotificationPlugin;
public class MainActivity extends BridgeActivity {
@Override
public void onCreate(android.os.Bundle savedInstanceState) {
android.util.Log.d("MainActivity", "MainActivity.onCreate() called - START");
// Register the DailyNotification plugin BEFORE calling super.onCreate()
android.util.Log.d("MainActivity", "Registering DailyNotification plugin...");
try {
registerPlugin(DailyNotificationPlugin.class);
android.util.Log.d("MainActivity", "DailyNotification plugin registered successfully");
} catch (Exception e) {
android.util.Log.e("MainActivity", "Failed to register DailyNotification plugin", e);
}
super.onCreate(savedInstanceState);
android.util.Log.d("MainActivity", "MainActivity.onCreate() - after super.onCreate()");
android.util.Log.d("MainActivity", "MainActivity.onCreate() called - END");
}
}