From b191797a2bcb49a4c282346308de13e9299958e5 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Sat, 25 Nov 2023 18:20:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Handle=20all=20examples=20with?= =?UTF-8?q?=20melos=20(#2041)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `plugins/native_dio_adapter/example` was not handled by melos previously. ### New Pull Request Checklist - [x] I have read the [Documentation](https://pub.dev/documentation/dio/latest/) - [x] I have searched for a similar pull request in the [project](https://github.com/cfug/dio/pulls) and found none - [x] I have updated this branch with the latest `main` branch to avoid conflicts (via merge from master or rebase) - [ ] I have added the required tests to prove the fix/feature I'm adding - [ ] I have updated the documentation (if necessary) - [x] I have run the tests without failures - [ ] I have updated the `CHANGELOG.md` in the corresponding package --- example_flutter_app/android/build.gradle | 2 +- melos.yaml | 6 +++--- .../native_dio_adapter/example/android/build.gradle | 2 +- .../example/linux/flutter/generated_plugins.cmake | 1 + .../example/windows/flutter/generated_plugins.cmake | 1 + plugins/native_dio_adapter/native_dio_adapter.iml | 13 +++++++++++++ 6 files changed, 20 insertions(+), 5 deletions(-) diff --git a/example_flutter_app/android/build.gradle b/example_flutter_app/android/build.gradle index ac477c248..adabcc1f1 100644 --- a/example_flutter_app/android/build.gradle +++ b/example_flutter_app/android/build.gradle @@ -24,6 +24,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/melos.yaml b/melos.yaml index 87bed215c..d29438ca4 100644 --- a/melos.yaml +++ b/melos.yaml @@ -2,9 +2,9 @@ name: dio_workspace repository: https://github.com/cfug/dio packages: - - dio - - plugins/* - - example* + - 'dio' + - 'plugins/*' + - '**/example*' ide: intellij: diff --git a/plugins/native_dio_adapter/example/android/build.gradle b/plugins/native_dio_adapter/example/android/build.gradle index 83ae22004..3cdaac958 100644 --- a/plugins/native_dio_adapter/example/android/build.gradle +++ b/plugins/native_dio_adapter/example/android/build.gradle @@ -26,6 +26,6 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/plugins/native_dio_adapter/example/linux/flutter/generated_plugins.cmake b/plugins/native_dio_adapter/example/linux/flutter/generated_plugins.cmake index 2e1de87a7..be1ee3e5b 100644 --- a/plugins/native_dio_adapter/example/linux/flutter/generated_plugins.cmake +++ b/plugins/native_dio_adapter/example/linux/flutter/generated_plugins.cmake @@ -6,6 +6,7 @@ list(APPEND FLUTTER_PLUGIN_LIST ) list(APPEND FLUTTER_FFI_PLUGIN_LIST + jni ) set(PLUGIN_BUNDLED_LIBRARIES) diff --git a/plugins/native_dio_adapter/example/windows/flutter/generated_plugins.cmake b/plugins/native_dio_adapter/example/windows/flutter/generated_plugins.cmake index b93c4c30c..3ad69c612 100644 --- a/plugins/native_dio_adapter/example/windows/flutter/generated_plugins.cmake +++ b/plugins/native_dio_adapter/example/windows/flutter/generated_plugins.cmake @@ -6,6 +6,7 @@ list(APPEND FLUTTER_PLUGIN_LIST ) list(APPEND FLUTTER_FFI_PLUGIN_LIST + jni ) set(PLUGIN_BUNDLED_LIBRARIES) diff --git a/plugins/native_dio_adapter/native_dio_adapter.iml b/plugins/native_dio_adapter/native_dio_adapter.iml index c42820fc8..05a0597a0 100644 --- a/plugins/native_dio_adapter/native_dio_adapter.iml +++ b/plugins/native_dio_adapter/native_dio_adapter.iml @@ -10,9 +10,22 @@ + + + + + + + + + + + + + \ No newline at end of file