create-capacitor-plugin
create-capacitor-plugin copied to clipboard
(feat) Add Option to Select Programming Language (Kotlin or Java) for Android Plugins
Title:
(feat) Add Option to Select Programming Language (Kotlin or Java) for Android Plugins
Description:
This pull request introduces the ability to select the programming language (Kotlin or Java) when working with Android plugins.
Key Changes:
-
Kotlin Templates:
- Added templates for Kotlin as an alternative to the existing Java templates.
- Developers can now choose Kotlin during plugin creation, providing greater flexibility and allowing the use of Kotlin's modern features.
-
Dependency Management:
- When Kotlin is selected, the necessary dependencies for Kotlin support are automatically added to the
build.gradlefile. - This ensures the generated project is correctly configured for Kotlin development without manual intervention.
- When Kotlin is selected, the necessary dependencies for Kotlin support are automatically added to the
-
Enhanced Development Workflow:
- This new feature streamlines the development of plugins by providing an easy choice between Java and Kotlin, based on developer preference or project requirements.
Changelog:
- Added: Kotlin templates for Android plugin development.
-
Updated: Build configuration (
build.gradle) to include Kotlin dependencies when Kotlin is selected. - Enhanced: Plugin creation workflow to allow selecting between Java and Kotlin.
Notes:
- Ensure to test the new workflow with both Kotlin and Java templates to verify correctness and compatibility.
- The Kotlin dependencies added to
build.gradleinclude standard configurations required for compatibility with Android projects.
Let me know if you need further edits or details!