diff --git a/nativescript-core/platforms/ios/native-api-usage.json b/nativescript-core/platforms/ios/native-api-usage.json new file mode 100644 index 000000000..7e5dff0bd --- /dev/null +++ b/nativescript-core/platforms/ios/native-api-usage.json @@ -0,0 +1,36 @@ +{ + "uses": [ + "CoreFoundation.CFError:*", + "CoreFoundation.CFNumber:*", + "CoreFoundation.CFRunLoop:*", + + "CoreGraphics.*:*", + + "CoreText.CTFontManager:*", + + "Darwin.C.math:*", + "Darwin.POSIX.sys.socket:*", + + "Foundation.*:*", + + "MaterialComponents.MDCTabBar:*", + + "NativeScriptEmbedder:*", + + "Photos.PHImageManager:*", + + "QuartzCore.*:*", + + "SystemConfiguration.SCNetworkReachability:*", + + "UIKit.*:*", + + "WebKit.WKNavigationDelegate:*", + "WebKit.WKUserContentController:*", + "WebKit.WKUserScript:*", + "WebKit.WKWebView:*", + "WebKit.WKWebViewConfiguration:*", + + "TNSWidgets*:*" + ] +} diff --git a/tests/app/App_Resources/iOS/native-api-usage.json b/tests/app/App_Resources/iOS/native-api-usage.json new file mode 100644 index 000000000..8a35c643d --- /dev/null +++ b/tests/app/App_Resources/iOS/native-api-usage.json @@ -0,0 +1,13 @@ +{ + "whitelist-plugins-usages": true, + "$comment": "Whitelist native constants used by core modules because {N} webpack's typescript transpiler is configured not to remove them like tsc does", + "whitelist": [ + "CoreFoundation.CFStringEncodingExt:kCF*", + "MaterialComponents.MDCTabBarAlignment:*", + "MaterialComponents.MDCTabBarItemAppearance:*", + "Photos.PhotosTypes:*", + "WebKit.WKNavigationAction:*" + ], + "blacklist": [ + ] +}