File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
protoc-gen/src/main/kotlin/kotlinx/rpc/protobuf Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -152,15 +152,6 @@ rpc {
152152 }
153153
154154 project.tasks.withType<BufGenerateTask >().configureEach {
155-
156- // TODO: Remove this once we remove JVM generation
157- // Set compile for common(native) option
158- if (name.endsWith(" CommonTest" )) {
159- protocPlugins.kotlinMultiplatform {
160- options.put(" targetMode" , " common" )
161- }
162- }
163-
164155 if (name.endsWith(" Test" )) {
165156 dependsOn(gradle.includedBuild(" protoc-gen" ).task(" :jar" ))
166157 }
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ fun CodeGeneratorRequest.toModel(): Model {
2121 val protoFileMap = protoFileList.associateBy { it.name }
2222 val fileDescriptors = mutableMapOf<String , Descriptors .FileDescriptor >()
2323
24- val files = protoFileList.map { protoFile -> protoFile.toDescriptor(protoFileMap, fileDescriptors) }
24+ val files = fileToGenerateList.map { protoFileMap[it]!! }
25+ .map { protoFile -> protoFile.toDescriptor(protoFileMap, fileDescriptors) }
2526
2627 return Model (
2728 files = files.map { it.toModel() }
You can’t perform that action at this time.
0 commit comments