Skip to content

Commit

Permalink
fix(ios): load swift classes from objc interface header (#314)
Browse files Browse the repository at this point in the history
resolves TIMOB-26697
  • Loading branch information
janvennemann committed Jan 17, 2019
1 parent 0f07734 commit cc569c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iphone/hooks/generate/class.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function generateFullyQualifiedClassName(cls, state) {
var fullyQualifiedClassName = cls.name;
if (cls.language === 'swift') {
fullyQualifiedClassName = swift.generateSwiftMangledClassName(state.appName, cls.name);
} else if (cls.filename === cls.framework + '-Swift.h') {
} else if (cls.filename && cls.filename.endsWith(cls.framework + '-Swift.h')) {
fullyQualifiedClassName = cls.framework + '.' + cls.name;
}

Expand Down
2 changes: 1 addition & 1 deletion iphone/hooks/hyperloop.js
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ HyperloopiOSBuilder.prototype.updateXcodeProject = function updateXcodeProject()
thirdPartyFrameworksUsed = true;
}

if (!nativeModules.length && !thirdPartyFrameworksUsed) {
if (!nativeModules.length && !thirdPartyFrameworksUsed && !this.hasCocoaPods) {
return;
}

Expand Down

0 comments on commit cc569c1

Please sign in to comment.