Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KTOR-7490 Improved source file definitions #142

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bjhham
Copy link
Collaborator

@bjhham bjhham commented Oct 3, 2024

This tackles this issue:

  • KTOR-7490 Project generator: source file definitions

It was noticed by @Mr3zee when attempting to introduce the kRPC plugin. With this change, you can now add multiple source files to the plugin's sample code, and also target which module you'd like it in when using multi-platform support (i.e., "common"), which should make a little more sense in the next PR for the back end.

@bjhham bjhham requested review from osipxd and e5l October 3, 2024 10:31
@bjhham bjhham force-pushed the bjhham/multiplatform-support branch from af6b5cf to 04e5f32 Compare October 3, 2024 12:15
Copy link
Member

@e5l e5l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -9,4 +9,5 @@ prerequisites:
installation:
default: install.kt
outside_app: outside_app.kt
source_file_kt: CitySchema.kt
sources:
- file: CitySchema.kt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also can support mustache templates in the future to make generated files customizable

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, good idea!

Copy link
Member

@osipxd osipxd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
Now I know how to add support of build.gradle.kts modifying :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants