Closed NickIliev closed 4 years ago
Related to t1445393
The reason for the partially missing metadata (and respectively typescript definitions) is that the PhotoEditorSDK
pod relies on Clang's modules feature. The metadata generator however, didn't support that, so we had to make it possible to turn modules on with #1236. After we merge the fix and release a version with it, you will just have to add the following line to your build.xcconfig
file to correctly generate the metadata:
CLANG_ENABLE_MODULES = YES
mobile platform: iOS platform version : iOS 13, xCode 11.2.1 Desktop OS: macOS 10.14.6 NativeScript CLI version: 6.1.2 Framework used : Angular with TypeScript Dependency: We are using the SDK PhotoEditor provided by Img.ly and available on cocoapods The code source of their iOS native example is available here: https://github.com/imgly/pesdk-ios-examples
Summary: When adding the cocoapod PhotoEditorSDK and running the the command
$ TNS_TYPESCRIPT_DECLARATIONS_PATH="$(pwd)/typings" tns build ios
, the typings files generated don't contain inheritance for the class PESDKPhotoEditViewController. When using the same cocoapod in a Native iOS example, the classPhotoEditoViewController
inherits fromImglyKit.MediaEditViewController
.Steps to reproduce:
$ tns create App1
$ vi App_Resources/iOS/Podfile
target 'SwiftExample' do use_frameworks! pod 'PhotoEditorSDK', '~> 10.6.0' end
$ TNS_TYPESCRIPT_DECLARATIONS_PATH="$(pwd)/typings" tns build ios
/// A
PhotoEditViewController
is the main starting point for the SDK. It displays the rendered /// photo and a menu. It can presentPhotoEditToolController
objects and react to changes. It /// can be presented on its own (thus displaying a toolbar for navigation at the bottom) or be /// embedded into aUINavigationController
(thus using the navigation controller's navigation bar /// for navigation). @available(iOS 9.0, iOS 9.0, *) @objcMembers @objc(PESDKPhotoEditViewController) open class PhotoEditViewController : ImglyKit.MediaEditViewController, ImglyKit.BrandedView { ..... }