mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
feat: Add iOS APIs usage list (#8291)
This commit is contained in:
36
nativescript-core/platforms/ios/native-api-usage.json
Normal file
36
nativescript-core/platforms/ios/native-api-usage.json
Normal file
@ -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
tests/app/App_Resources/iOS/native-api-usage.json
Normal file
13
tests/app/App_Resources/iOS/native-api-usage.json
Normal file
@ -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": [
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user