Skip to content
Merged
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
36 changes: 36 additions & 0 deletions nativescript-core/platforms/ios/native-api-usage.json
Original file line number Diff line number Diff line change
@@ -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*:*"
]
}
13 changes: 13 additions & 0 deletions tests/app/App_Resources/iOS/native-api-usage.json
Original file line number Diff line number Diff line change
@@ -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": [
]
}