Skip to content

Commit be4d94b

Browse files
committed
[ADD] Use customTypeMappings also for SwiftFiles in SwiftReferenceDescriptor
1 parent fbe0015 commit be4d94b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/src/main/java/com/readdle/codegen/SwiftReferenceDescriptor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ class SwiftReferenceDescriptor {
5959
isAndroidPackage = true;
6060
}
6161

62+
if (processor.moduleDescriptor.customTypeMappings != null && processor.moduleDescriptor.customTypeMappings.containsKey(javaFullName.replace("/","."))){
63+
simpleTypeName = processor.moduleDescriptor.customTypeMappings.get(javaFullName.replace("/","."));
64+
}
65+
6266
Element enclosingElement = classElement.getEnclosingElement();
6367
while (enclosingElement != null && enclosingElement.getKind() == ElementKind.CLASS) {
6468
javaFullName = JavaSwiftProcessor.replaceLast(javaFullName, '/', '$');

0 commit comments

Comments
 (0)