Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,11 @@ final class ObjCClassGenerator {
func ensureTypeAvailability(type: IOSType) {
apiHeader.addImport(path: type.importHeaderStatement(kind: .apiOnly))
header.addImport(path: type.importHeaderStatement(kind: .withUtilities))
let safeTypeName = type.name.replacingOccurrences(of: "-", with: "_")
if type.kind == .interface {
apiHeader.addForwardDeclaration(type: "@protocol \(type.name);")
apiHeader.addForwardDeclaration(type: "@protocol \(safeTypeName);")
} else if type.kind == .class {
apiHeader.addForwardDeclaration(type: "@class \(type.name);")
apiHeader.addForwardDeclaration(type: "@class \(safeTypeName);")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ObjCViewClassGenerator: LanguageSpecificViewClassGenerator {
componentContextClass: IOSType?) {
self.bundleInfo = bundleInfo
self.iosType = iosType
self.className = iosType.name
self.className = iosType.name.replacingOccurrences(of: "-", with: "_")
self.componentPath = componentPath
self.sourceFilename = sourceFilename
self.viewModelClass = viewModelClass
Expand Down Expand Up @@ -71,7 +71,7 @@ class ObjCViewClassGenerator: LanguageSpecificViewClassGenerator {
header.appendBody("@property (readonly, nonatomic) \(className) * _Nullable \(nodeId.camelCased);\n")
// TODO(3521): Update to SCValdiView
if !className.hasPrefix("UI") && className != "SCValdiView" {
header.appendHeader("@class \(className);\n")
header.appendHeader("@class \(className.replacingOccurences(of: "-", with: "_");\n")
}

impl.appendBody("""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class ObjCModelGenerator {
init(iosType: IOSType, bundleInfo: CompilationItem.BundleInfo, typeParameters: [ValdiTypeParameter]?, properties: [ValdiModelProperty], classMapping: ResolvedClassMapping, sourceFileName: GeneratedSourceFilename, isInterface: Bool, emitLegacyConstructors: Bool, comments: String?) {
self.iosType = iosType
self.bundleInfo = bundleInfo
self.className = iosType.name
self.className = iosType.name.replacingOccurrences(of: "-", with: "_")
self.typeParameters = typeParameters
self.properties = properties
self.classMapping = classMapping
Expand Down
Binary file added libtinfo5_6.3-2ubuntu0.1_amd64.deb
Binary file not shown.