diff --git a/Package.swift b/Package.swift index 56463cf..644e7d0 100644 --- a/Package.swift +++ b/Package.swift @@ -43,6 +43,7 @@ let defaultSwiftSettings: [SwiftSetting] = [ .swiftLanguageMode(.v6), .enableUpcomingFeature("ExistentialAny"), .enableUpcomingFeature("InternalImportsByDefault"), + .enableUpcomingFeature("MemberImportVisibility"), ] let targets: [Target] = [ diff --git a/Sources/protoc-gen-grpc-swift/Options.swift b/Sources/protoc-gen-grpc-swift/Options.swift index aeb59c3..05bf131 100644 --- a/Sources/protoc-gen-grpc-swift/Options.swift +++ b/Sources/protoc-gen-grpc-swift/Options.swift @@ -88,14 +88,14 @@ struct GeneratorOptions { } case "Server": - if let value = Bool(pair.value) { + if let value = Bool(pair.value.lowercased()) { self.generateServer = value } else { throw GenerationError.invalidParameterValue(name: pair.key, value: pair.value) } case "Client": - if let value = Bool(pair.value) { + if let value = Bool(pair.value.lowercased()) { self.generateClient = value } else { throw GenerationError.invalidParameterValue(name: pair.key, value: pair.value) @@ -142,14 +142,14 @@ struct GeneratorOptions { } case "ReflectionData": - if let value = Bool(pair.value) { + if let value = Bool(pair.value.lowercased()) { self.generateReflectionData = value } else { throw GenerationError.invalidParameterValue(name: pair.key, value: pair.value) } case "UseAccessLevelOnImports": - if let value = Bool(pair.value) { + if let value = Bool(pair.value.lowercased()) { self.useAccessLevelOnImports = value } else { throw GenerationError.invalidParameterValue(name: pair.key, value: pair.value)