You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.3 KiB
27 lines
1.3 KiB
include ':app'
|
|
// Note: capacitor-cordova-android-plugins is not needed for standalone Android test app
|
|
// It's only generated by Capacitor CLI for Capacitor apps
|
|
|
|
// Include Capacitor Android (required for plugin)
|
|
// Try to find Capacitor from the Vue test app's node_modules
|
|
def capacitorPath = new File(settingsDir, '../daily-notification-test/node_modules/@capacitor/android/capacitor')
|
|
if (capacitorPath.exists()) {
|
|
include ':capacitor-android'
|
|
project(':capacitor-android').projectDir = capacitorPath
|
|
} else {
|
|
throw new GradleException("Capacitor not found at ${capacitorPath.absolutePath}. Please run 'npm install' in test-apps/daily-notification-test/ first.")
|
|
}
|
|
|
|
// Reference plugin from parent directory (for local development)
|
|
// Path: test-apps/android-test-app/../../android = root/android
|
|
// settingsDir = test-apps/android-test-app/
|
|
// settingsDir.parentFile = test-apps/
|
|
// settingsDir.parentFile.parentFile = root project directory
|
|
def pluginPath = new File(settingsDir.parentFile.parentFile, 'android')
|
|
if (pluginPath.exists() && new File(pluginPath, 'build.gradle').exists()) {
|
|
include ':daily-notification-plugin'
|
|
project(':daily-notification-plugin').projectDir = pluginPath
|
|
} else {
|
|
throw new GradleException("Plugin not found at ${pluginPath.absolutePath}. Please ensure the plugin is at the correct location.")
|
|
}
|
|
|
|
|