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:
@@ -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"
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,4 +19,7 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation project(':capacitor-android')
|
||||
|
||||
// Capacitor annotation processor for automatic plugin discovery
|
||||
annotationProcessor project(':capacitor-android')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user