mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00

* feat(tns-platform-declarations): Generate iOS typings from iOS 12.1 SDK * Instructions for generating iOS typescript definitions * Refactor `typings-gen.sh` to use {N} CLI and generate fuller metadata for the system libraries * Automatically generate `ios.d.ts` wrapper * Add interop pointers and references as alternatives to `string` for `char*` args (implemented in https://github.com/NativeScript/ios-runtime/pull/1022) BREAKING CHANGE: Several enum values have changed because they have been wrongly generated. To migrate your app or plugin code use the new names of the following: * enum NSUnderlineStyle: - `StyleNone` -> `None` - `StyleSingle` -> `Single` - `StyleThick` -> `Thick` - `StyleDouble` -> `Double` * enum AVAudioSessionErrorCode: - `CodeNone` -> `None` - `CodeMediaServicesFailed` -> `MediaServicesFailed` - `CodeIsBusy` -> `IsBusy` - `CodeIncompatibleCategory` -> `IncompatibleCategory` - `CodeCannotInterruptOthers` -> `CannotInterruptOthers` - `CodeMissingEntitlement` -> `MissingEntitlement` - `CodeSiriIsRecording` -> `SiriIsRecording` - `CodeCannotStartPlaying` -> `CannotStartPlaying` - `CodeCannotStartRecording` -> `CannotStartRecording` - `CodeBadParam` -> `BadParam` - `CodeResourceNotAvailable` -> `ResourceNotAvailable` - `CodeUnspecified` -> `Unspecified` * fix(ui/text-base): Update NSUnderlineStyle.StyleSingle constant After the typings regeneration its and several others' names have changed to the expected `NSUnderlineStyle.Single`. * fix(tns-platform-declarations): Restore deprecated enum values In order to not introduce a breaking change in a patch version, we are keeping `Style...` and `Code...` values that have been wrongly generated till now. In the next major/minor release of the package when the typings are regenerated we can safely remove them. Revert to using the deprecated one's in `text-base.ios.ts` so that the introduction of this breaking change doesn't slip in undetected. * fix(application.ios): Directly call presetnNativeScriptApp We've been using `performSelectorWithObject` but it's declaration has been manually added. Moreover it's more convenient to directly call the method.
130 lines
7.3 KiB
TypeScript
130 lines
7.3 KiB
TypeScript
/// <reference path="interop.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ARKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AVFoundation.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AVKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Accelerate.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Accounts.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AdSupport.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AddressBook.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AddressBookUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AppleTextureEncoder.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AssetsLibrary.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AudioToolbox.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!AuthenticationServices.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!BusinessChat.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CFNetwork.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CallKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CarPlay.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ClassKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CloudKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CommonCrypto.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Compression.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Contacts.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ContactsUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreAudio.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreAudioKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreBluetooth.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreData.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreFoundation.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreGraphics.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreImage.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreLocation.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreMIDI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreML.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreMedia.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreMotion.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreNFC.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreServices.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreSpotlight.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreTelephony.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreText.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!CoreVideo.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Darwin.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!DeviceCheck.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Dispatch.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!DispatchIntrospection.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!EventKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!EventKitUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ExternalAccessory.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!FileProvider.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!FileProviderUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Foundation.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!GLKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!GSS.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!GameController.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!GameKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!GameplayKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!HealthKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!HealthKitUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!HomeKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ICU.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!IOSurface.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!IdentityLookup.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!IdentityLookupUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ImageIO.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Intents.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!IntentsUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!JavaScriptCore.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!LocalAuthentication.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MachO.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MapKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MediaAccessibility.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MediaPlayer.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MediaToolbox.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MessageUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Messages.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Metal.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MetalKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MetalPerformanceShaders.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ModelIO.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!MultipeerConnectivity.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!NativeScriptEmbedder.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!NaturalLanguage.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Network.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!NetworkExtension.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!NewsstandKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!NotificationCenter.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ObjectiveC.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!OpenAL.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!OpenGLES.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!PDFKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!PassKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Photos.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!PhotosUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!PushKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!QuartzCore.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!QuickLook.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!ReplayKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!SQLite3.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!SafariServices.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!SceneKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Security.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Social.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Speech.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!SpriteKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!StoreKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!SystemConfiguration.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!TNSWidgets.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Twitter.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!UIKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!UserNotifications.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!UserNotificationsUI.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!VideoSubscriberAccount.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!VideoToolbox.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!Vision.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!WatchConnectivity.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!WatchKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!WebKit.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!_Builtin_intrinsics.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!asl.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!dnssd.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!iAd.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!libkern.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!libxml2.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!libxslt.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!os.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!os_object.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!simd.d.ts" />
|
|
/// <reference path="objc-x86_64/objc!zlib.d.ts" />
|
|
declare function __collect(): void;
|