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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Folders
dist
hooks
ios-typings-prj
libs
node_modules
package
Expand Down
1 change: 0 additions & 1 deletion tns-platform-declarations/.gitignore

This file was deleted.

3 changes: 2 additions & 1 deletion tns-platform-declarations/.npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
*.tgz
ios-typings-prj
package
test.ts
test.js
test.js.map
tsconfig.json
typings-gen.sh
typings-gen.sh
8 changes: 8 additions & 0 deletions tns-platform-declarations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,11 @@ The `.d.ts` files for iOS are generated using iOS Runtime's metadata generator.
./typings-gen.sh rc [<path-to-medatadata-generator-binary>]
```
Where `rc` can be an NPM tag/version of `tns-ios` that will be used for generating the typings. If the metadata generator to be used has not been released in NPM, you can optionally specify its path as a 2nd argument.

> Note: Apply [this](https://github.com/NativeScript/NativeScript/commit/45b4b061e470c19cdc582f220ee86fd3169269a0) commit on hand, due to a TypeScript error.

> The script expressly deletes the `objc!MaterialComponents.d.ts` file which [distributes](https://github.com/NativeScript/NativeScript/pull/7480) along with the `tns-core-modules` package to avoid plugins clashes.

> However, the metadata generator for iOS includes metadata and typings for the whole SDK and all native libraries in use, including `MaterialComponents`. Therefore, there are typings which reference types from `objc!MaterialComponents.d.ts` file and fail on transpilation.

> Currently, remove these by hand to avoid transpilation errors. A proposed Solution is to specify which entries to be generated metadata for and be accessible from JavaScript. These are the feature requests for [Android](https://github.com/NativeScript/android-runtime/issues/1485) and [iOS](https://github.com/NativeScript/ios-runtime/issues/1209)
17 changes: 14 additions & 3 deletions tns-platform-declarations/ios/ios.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/// <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!BackgroundTasks.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" />
Expand All @@ -21,12 +22,13 @@
/// <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!CoreAudioTypes.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!CoreHaptics.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" />
Expand All @@ -39,6 +41,7 @@
/// <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!CryptoTokenKit.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" />
Expand All @@ -61,11 +64,14 @@
/// <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!ImageCaptureCore.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!LinkPresentation.d.ts" />
/// <reference path="objc-x86_64/objc!LocalAuthentication.d.ts" />
/// <reference path="objc-x86_64/objc!MDFInternationalization.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" />
Expand All @@ -76,6 +82,7 @@
/// <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!MetricKit.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" />
Expand All @@ -84,22 +91,27 @@
/// <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!OSLog.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!PencilKit.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!Pods_iostypingsprj.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!QuickLookThumbnailing.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!SoundAnalysis.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" />
Expand All @@ -112,16 +124,15 @@
/// <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!VisionKit.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" />
Expand Down
Loading