├── .gitignore ├── README.md ├── app ├── App_Resources │ ├── Android │ │ ├── AndroidManifest.xml │ │ ├── app.gradle │ │ ├── drawable-hdpi │ │ │ └── icon.png │ │ ├── drawable-ldpi │ │ │ └── icon.png │ │ ├── drawable-mdpi │ │ │ └── icon.png │ │ └── drawable-nodpi │ │ │ └── splashscreen.9.png │ └── iOS │ │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── icon-29.png │ │ │ ├── icon-29@2x.png │ │ │ ├── icon-29@3x.png │ │ │ ├── icon-40.png │ │ │ ├── icon-40@2x.png │ │ │ ├── icon-40@3x.png │ │ │ ├── icon-50.png │ │ │ ├── icon-50@2x.png │ │ │ ├── icon-57.png │ │ │ ├── icon-57@2x.png │ │ │ ├── icon-60@2x.png │ │ │ ├── icon-60@3x.png │ │ │ ├── icon-72.png │ │ │ ├── icon-72@2x.png │ │ │ ├── icon-76.png │ │ │ ├── icon-76@2x.png │ │ │ └── icon-83.5@2x.png │ │ ├── Contents.json │ │ ├── LaunchImage.launchimage │ │ │ ├── Contents.json │ │ │ ├── Default-568h@2x.png │ │ │ ├── Default-667h@2x.png │ │ │ ├── Default-736h@3x.png │ │ │ ├── Default-Landscape.png │ │ │ ├── Default-Landscape@2x.png │ │ │ ├── Default-Landscape@3x.png │ │ │ ├── Default-Portrait.png │ │ │ ├── Default-Portrait@2x.png │ │ │ ├── Default.png │ │ │ └── Default@2x.png │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ └── LaunchScreen-AspectFill@2x.png │ │ └── LaunchScreen.Center.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchScreen-Center.png │ │ │ └── LaunchScreen-Center@2x.png │ │ ├── Info.plist │ │ ├── LaunchScreen.storyboard │ │ └── build.xcconfig ├── MessagesMainController.js ├── app.js ├── package.json └── references.d.ts ├── messages.gif ├── package.json └── platforms └── ios ├── iMessageTest ├── Assets.xcassets │ ├── Contents.json │ └── iMessage App Icon.stickersiconset │ │ └── Contents.json ├── Base.lproj │ └── MainInterface.storyboard ├── Info.plist └── main.m ├── internal ├── NativeScript.framework │ ├── Headers │ │ ├── NativeScript.h │ │ ├── TNSRuntime+Diagnostics.h │ │ ├── TNSRuntime+Inspector.h │ │ └── TNSRuntime.h │ ├── Info.plist │ └── NativeScript ├── README.md ├── TKLiveSync.framework │ ├── Headers │ │ └── TKLiveSync.h │ ├── Info.plist │ ├── Modules │ │ └── module.modulemap │ └── TKLiveSync ├── TNSDebugging.h ├── TNSExceptionHandler.h ├── main.m ├── metadata-generator │ ├── bin │ │ ├── metadata-generation-build-step │ │ └── objc-metadata-generator │ └── lib │ │ └── clang │ │ └── 3.9.0 │ │ └── include │ │ ├── __clang_cuda_cmath.h │ │ ├── __clang_cuda_intrinsics.h │ │ ├── __clang_cuda_math_forward_declares.h │ │ ├── __clang_cuda_runtime_wrapper.h │ │ ├── __stddef_max_align_t.h │ │ ├── __wmmintrin_aes.h │ │ ├── __wmmintrin_pclmul.h │ │ ├── adxintrin.h │ │ ├── altivec.h │ │ ├── ammintrin.h │ │ ├── arm_acle.h │ │ ├── arm_neon.h │ │ ├── avx2intrin.h │ │ ├── avx512bwintrin.h │ │ ├── avx512cdintrin.h │ │ ├── avx512dqintrin.h │ │ ├── avx512erintrin.h │ │ ├── avx512fintrin.h │ │ ├── avx512ifmaintrin.h │ │ ├── avx512ifmavlintrin.h │ │ ├── avx512pfintrin.h │ │ ├── avx512vbmiintrin.h │ │ ├── avx512vbmivlintrin.h │ │ ├── avx512vlbwintrin.h │ │ ├── avx512vlcdintrin.h │ │ ├── avx512vldqintrin.h │ │ ├── avx512vlintrin.h │ │ ├── avxintrin.h │ │ ├── bmi2intrin.h │ │ ├── bmiintrin.h │ │ ├── clflushoptintrin.h │ │ ├── cpuid.h │ │ ├── cuda_builtin_vars.h │ │ ├── emmintrin.h │ │ ├── f16cintrin.h │ │ ├── float.h │ │ ├── fma4intrin.h │ │ ├── fmaintrin.h │ │ ├── fxsrintrin.h │ │ ├── htmintrin.h │ │ ├── htmxlintrin.h │ │ ├── ia32intrin.h │ │ ├── immintrin.h │ │ ├── intrin.h │ │ ├── inttypes.h │ │ ├── iso646.h │ │ ├── limits.h │ │ ├── lzcntintrin.h │ │ ├── mm3dnow.h │ │ ├── mm_malloc.h │ │ ├── mmintrin.h │ │ ├── module.modulemap │ │ ├── mwaitxintrin.h │ │ ├── nmmintrin.h │ │ ├── opencl-c.h │ │ ├── pkuintrin.h │ │ ├── pmmintrin.h │ │ ├── popcntintrin.h │ │ ├── prfchwintrin.h │ │ ├── rdseedintrin.h │ │ ├── rtmintrin.h │ │ ├── s390intrin.h │ │ ├── shaintrin.h │ │ ├── smmintrin.h │ │ ├── stdalign.h │ │ ├── stdarg.h │ │ ├── stdatomic.h │ │ ├── stdbool.h │ │ ├── stddef.h │ │ ├── stdint.h │ │ ├── stdnoreturn.h │ │ ├── tbmintrin.h │ │ ├── tgmath.h │ │ ├── tmmintrin.h │ │ ├── unwind.h │ │ ├── vadefs.h │ │ ├── varargs.h │ │ ├── vecintrin.h │ │ ├── wmmintrin.h │ │ ├── x86intrin.h │ │ ├── xmmintrin.h │ │ ├── xopintrin.h │ │ ├── xsavecintrin.h │ │ ├── xsaveintrin.h │ │ ├── xsaveoptintrin.h │ │ ├── xsavesintrin.h │ │ └── xtestintrin.h ├── nativescript-build.xcconfig ├── nativescript-post-build ├── nativescript-pre-build ├── nativescript-pre-link └── strip-dynamic-framework-architectures.sh ├── messages.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── koeva.xcuserdatad │ │ └── UserInterfaceState.xcuserstate ├── xcshareddata │ └── xcschemes │ │ └── messages.xcscheme └── xcuserdata │ └── koeva.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── iMessageTest.xcscheme │ └── xcschememanagement.plist ├── messages ├── Resources │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── icon-29.png │ │ │ ├── icon-29@2x.png │ │ │ ├── icon-29@3x.png │ │ │ ├── icon-40.png │ │ │ ├── icon-40@2x.png │ │ │ ├── icon-40@3x.png │ │ │ ├── icon-50.png │ │ │ ├── icon-50@2x.png │ │ │ ├── icon-57.png │ │ │ ├── icon-57@2x.png │ │ │ ├── icon-60@2x.png │ │ │ ├── icon-60@3x.png │ │ │ ├── icon-72.png │ │ │ ├── icon-72@2x.png │ │ │ ├── icon-76.png │ │ │ ├── icon-76@2x.png │ │ │ └── icon-83.5@2x.png │ │ ├── Contents.json │ │ ├── LaunchImage.launchimage │ │ │ ├── Contents.json │ │ │ ├── Default-568h@2x.png │ │ │ ├── Default-667h@2x.png │ │ │ ├── Default-736h@3x.png │ │ │ ├── Default-Landscape.png │ │ │ ├── Default-Landscape@2x.png │ │ │ ├── Default-Landscape@3x.png │ │ │ ├── Default-Portrait.png │ │ │ ├── Default-Portrait@2x.png │ │ │ ├── Default.png │ │ │ └── Default@2x.png │ │ ├── LaunchScreen.AspectFill.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ └── LaunchScreen-AspectFill@2x.png │ │ └── LaunchScreen.Center.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchScreen-Center.png │ │ │ └── LaunchScreen-Center@2x.png │ ├── LaunchScreen.storyboard │ └── build.xcconfig ├── app │ ├── MessagesMainController.js │ ├── app.js │ ├── package.json │ └── references.d.ts ├── build-debug.xcconfig ├── build-release.xcconfig ├── build.xcconfig ├── en.lproj │ └── InfoPlist.strings ├── messages-Info.plist └── messages-Prefix.pch ├── plugins-debug.xcconfig └── plugins-release.xcconfig /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.gitignore.io/api/objec,objective-c 3 | 4 | #!! ERROR: objec is undefined. Use list command to see defined gitignore types !!# 5 | 6 | ### Objective-C ### 7 | # Xcode 8 | # 9 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 10 | 11 | ## Build generated 12 | build/ 13 | DerivedData/ 14 | 15 | ## Various settings 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | xcuserdata/ 25 | 26 | ## Other 27 | *.moved-aside 28 | *.xcuserstate 29 | 30 | ## Obj-C/Swift specific 31 | *.hmap 32 | *.ipa 33 | *.dSYM.zip 34 | *.dSYM 35 | 36 | # CocoaPods 37 | # 38 | # We recommend against adding the Pods directory to your .gitignore. However 39 | # you should judge for yourself, the pros and cons are mentioned at: 40 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 41 | # 42 | # Pods/ 43 | 44 | # Carthage 45 | # 46 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 47 | # Carthage/Checkouts 48 | 49 | Carthage/Build 50 | 51 | # fastlane 52 | # 53 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 54 | # screenshots whenever they are needed. 55 | # For more information about the recommended setup visit: 56 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 57 | 58 | fastlane/report.xml 59 | fastlane/screenshots 60 | 61 | # Code Injection 62 | # 63 | # After new code Injection tools there's a generated folder /iOSInjectionProject 64 | # https://github.com/johnno1962/injectionforxcode 65 | 66 | iOSInjectionProject/ 67 | 68 | ### Objective-C Patch ### 69 | *.xcscmblueprint -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # nativescript-ios-imessages 2 | ## Simple app extension that interact with the Messages app 3 | 4 | ![Alt text](messages.gif?raw=true "Message") 5 | 6 | 1. Create a nativescript project, add the latest master build of the ios-runtime and prepare it for the ios platform 7 | 1. Open your xcode project located under platforms/ios/[project_name].xcodeproj in Xcode 8 | 1. Add a new target to your Xcode app project through File > New > Target and choose the iMessage template. 9 | 1. Delete MessagesViewController.h, MessagesViewController.m and MainInterface.storyboard files from the extension folder 10 | 1. Click on the project on the upper left in the file browser, click on the project again in the second-to-left panel, and click on the Info tab at the top of the inner panel. Set tne platforms/ios/[project_name]/build.xcconfig as your extension target Based on Configuration File 11 | 1. Click on the project on the upper left in the file browser, click on the extension target in the second-to-left panel, and click the Build Phases pane. Then create new run script phase with the following script content ``` "$SRCROOT/internal/nativescript-pre-build" ``` and make sure this is at the top of the list directly under `Target Dependencies` 12 | 1. Then click `Copy Bundle Resources` and add your host applications `app` folder. 13 | 1. Right-click the [extension name folder] >> SupportingFiles and add a new Objective-C file naming it main.m with the following content 14 | ```c++ 15 | 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | TNSRuntime* runtime; 22 | 23 | __attribute__((constructor)) 24 | void initialize() { 25 | extern char startOfMetadataSection __asm( 26 | "section$start$__DATA$__TNSMetadata"); 27 | [TNSRuntime initializeMetadata:&startOfMetadataSection]; 28 | 29 | runtime = [[TNSRuntime alloc] initWithApplicationPath:[NSBundle mainBundle].bundlePath]; 30 | TNSRuntimeInspector.logsToSystemConsole = YES; 31 | [runtime executeModule:@"./MessagesMainController"]; 32 | } 33 | ``` 34 | 35 | 1. Right-click the app folder of your application and add a new JavaScript file named MessagesMainController.js with the following content 36 | ```javascript 37 | MSMessagesAppViewController.extend({ 38 | viewDidLoad: function() { 39 | this.super.viewDidLoad(); 40 | 41 | let button = UIButton.buttonWithType(UIButtonTypeSystem); 42 | button.setTitleForState("Click here!", UIControlStateNormal); 43 | button.frame = CGRectMake(0, 0, 160.0, 40.0); 44 | button.addTargetActionForControlEvents(this, "tap", UIControlEvents.UIControlEventTouchUpInside) 45 | 46 | this.view.addSubview(button); 47 | }, 48 | tap() { 49 | let layout = MSMessageTemplateLayout.alloc().init(); 50 | layout.caption = "NativeScript rocks !"; 51 | 52 | // create a message and tell it the content and layout 53 | let message = MSMessage.alloc().init(); 54 | message.layout = layout; 55 | 56 | this.activeConversation.insertMessageCompletionHandler(message, null); 57 | }, 58 | didBecomeActiveWithConversation(conversation) { 59 | // Called when the extension is about to move from the inactive to active state. 60 | // This will happen when the extension is about to present UI. 61 | 62 | // Use this method to configure the extension and restore previously stored state. 63 | }, 64 | didReceiveMessageConversation(message, conversatio) { 65 | // Called when a message arrives that was generated by another instance of this 66 | // extension on a remote device. 67 | 68 | // Use this method to trigger UI updates in response to the message. 69 | }, 70 | didStartSendingMessageConversation(message, conversation) { 71 | // Called when the user taps the send button. 72 | } 73 | }, { 74 | 75 | name: "MessagesMainController", 76 | exposedMethods: { 77 | "tap": { 78 | returns: interop.types.void 79 | } 80 | } 81 | }); 82 | ``` 83 | 1. In the [extension folder]/Info.plist, replace the NSExtensionMainStoryboard property set to MainInterface, with NSExtensionPrincipalClass property set to MessagesMainController 84 | 85 | To run the application open platforms/ios/[project_name].xcodeproj in Xcode, select the extension target and press Run 86 | -------------------------------------------------------------------------------- /app/App_Resources/Android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 16 | 17 | 18 | 19 | 20 | 21 | 27 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /app/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | // Uncomment to add recyclerview-v7 dependency 4 | //dependencies { 5 | // compile 'com.android.support:recyclerview-v7:+' 6 | //} 7 | 8 | android { 9 | defaultConfig { 10 | generatedDensities = [] 11 | applicationId = "__PACKAGE__" 12 | } 13 | aaptOptions { 14 | additionalParameters "--no-version-vectors" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/App_Resources/Android/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/Android/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/Android/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/Android/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/drawable-nodpi/splashscreen.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/Android/drawable-nodpi/splashscreen.9.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "icon-29.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "icon-29@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "icon-29@3x.png", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "icon-40@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "icon-40@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "57x57", 35 | "idiom" : "iphone", 36 | "filename" : "icon-57.png", 37 | "scale" : "1x" 38 | }, 39 | { 40 | "size" : "57x57", 41 | "idiom" : "iphone", 42 | "filename" : "icon-57@2x.png", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "icon-60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "icon-60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "29x29", 59 | "idiom" : "ipad", 60 | "filename" : "icon-29.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "29x29", 65 | "idiom" : "ipad", 66 | "filename" : "icon-29@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "40x40", 71 | "idiom" : "ipad", 72 | "filename" : "icon-40.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "40x40", 77 | "idiom" : "ipad", 78 | "filename" : "icon-40@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "50x50", 83 | "idiom" : "ipad", 84 | "filename" : "icon-50.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "50x50", 89 | "idiom" : "ipad", 90 | "filename" : "icon-50@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "72x72", 95 | "idiom" : "ipad", 96 | "filename" : "icon-72.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "72x72", 101 | "idiom" : "ipad", 102 | "filename" : "icon-72@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "76x76", 107 | "idiom" : "ipad", 108 | "filename" : "icon-76.png", 109 | "scale" : "1x" 110 | }, 111 | { 112 | "size" : "76x76", 113 | "idiom" : "ipad", 114 | "filename" : "icon-76@2x.png", 115 | "scale" : "2x" 116 | }, 117 | { 118 | "size" : "83.5x83.5", 119 | "idiom" : "ipad", 120 | "filename" : "icon-83.5@2x.png", 121 | "scale" : "2x" 122 | } 123 | ], 124 | "info" : { 125 | "version" : 1, 126 | "author" : "xcode" 127 | } 128 | } -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "extent" : "full-screen", 5 | "idiom" : "iphone", 6 | "subtype" : "736h", 7 | "filename" : "Default-736h@3x.png", 8 | "minimum-system-version" : "8.0", 9 | "orientation" : "portrait", 10 | "scale" : "3x" 11 | }, 12 | { 13 | "extent" : "full-screen", 14 | "idiom" : "iphone", 15 | "subtype" : "736h", 16 | "filename" : "Default-Landscape@3x.png", 17 | "minimum-system-version" : "8.0", 18 | "orientation" : "landscape", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "extent" : "full-screen", 23 | "idiom" : "iphone", 24 | "subtype" : "667h", 25 | "filename" : "Default-667h@2x.png", 26 | "minimum-system-version" : "8.0", 27 | "orientation" : "portrait", 28 | "scale" : "2x" 29 | }, 30 | { 31 | "orientation" : "portrait", 32 | "idiom" : "iphone", 33 | "filename" : "Default@2x.png", 34 | "extent" : "full-screen", 35 | "minimum-system-version" : "7.0", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "extent" : "full-screen", 40 | "idiom" : "iphone", 41 | "subtype" : "retina4", 42 | "filename" : "Default-568h@2x.png", 43 | "minimum-system-version" : "7.0", 44 | "orientation" : "portrait", 45 | "scale" : "2x" 46 | }, 47 | { 48 | "orientation" : "portrait", 49 | "idiom" : "ipad", 50 | "filename" : "Default-Portrait.png", 51 | "extent" : "full-screen", 52 | "minimum-system-version" : "7.0", 53 | "scale" : "1x" 54 | }, 55 | { 56 | "orientation" : "landscape", 57 | "idiom" : "ipad", 58 | "filename" : "Default-Landscape.png", 59 | "extent" : "full-screen", 60 | "minimum-system-version" : "7.0", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "orientation" : "portrait", 65 | "idiom" : "ipad", 66 | "filename" : "Default-Portrait@2x.png", 67 | "extent" : "full-screen", 68 | "minimum-system-version" : "7.0", 69 | "scale" : "2x" 70 | }, 71 | { 72 | "orientation" : "landscape", 73 | "idiom" : "ipad", 74 | "filename" : "Default-Landscape@2x.png", 75 | "extent" : "full-screen", 76 | "minimum-system-version" : "7.0", 77 | "scale" : "2x" 78 | }, 79 | { 80 | "orientation" : "portrait", 81 | "idiom" : "iphone", 82 | "filename" : "Default.png", 83 | "extent" : "full-screen", 84 | "scale" : "1x" 85 | }, 86 | { 87 | "orientation" : "portrait", 88 | "idiom" : "iphone", 89 | "filename" : "Default@2x.png", 90 | "extent" : "full-screen", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "orientation" : "portrait", 95 | "idiom" : "iphone", 96 | "filename" : "Default-568h@2x.png", 97 | "extent" : "full-screen", 98 | "subtype" : "retina4", 99 | "scale" : "2x" 100 | }, 101 | { 102 | "orientation" : "portrait", 103 | "idiom" : "ipad", 104 | "extent" : "to-status-bar", 105 | "scale" : "1x" 106 | }, 107 | { 108 | "orientation" : "portrait", 109 | "idiom" : "ipad", 110 | "filename" : "Default-Portrait.png", 111 | "extent" : "full-screen", 112 | "scale" : "1x" 113 | }, 114 | { 115 | "orientation" : "landscape", 116 | "idiom" : "ipad", 117 | "extent" : "to-status-bar", 118 | "scale" : "1x" 119 | }, 120 | { 121 | "orientation" : "landscape", 122 | "idiom" : "ipad", 123 | "filename" : "Default-Landscape.png", 124 | "extent" : "full-screen", 125 | "scale" : "1x" 126 | }, 127 | { 128 | "orientation" : "portrait", 129 | "idiom" : "ipad", 130 | "extent" : "to-status-bar", 131 | "scale" : "2x" 132 | }, 133 | { 134 | "orientation" : "portrait", 135 | "idiom" : "ipad", 136 | "filename" : "Default-Portrait@2x.png", 137 | "extent" : "full-screen", 138 | "scale" : "2x" 139 | }, 140 | { 141 | "orientation" : "landscape", 142 | "idiom" : "ipad", 143 | "extent" : "to-status-bar", 144 | "scale" : "2x" 145 | }, 146 | { 147 | "orientation" : "landscape", 148 | "idiom" : "ipad", 149 | "filename" : "Default-Landscape@2x.png", 150 | "extent" : "full-screen", 151 | "scale" : "2x" 152 | } 153 | ], 154 | "info" : { 155 | "version" : 1, 156 | "author" : "xcode" 157 | } 158 | } -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-AspectFill.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-AspectFill@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-Center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-Center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiresFullScreen 28 | 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /app/App_Resources/iOS/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /app/App_Resources/iOS/build.xcconfig: -------------------------------------------------------------------------------- 1 | // You can add custom settings here 2 | // for example you can uncomment the following line to force distribution code signing 3 | // CODE_SIGN_IDENTITY = iPhone Distribution 4 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 5 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 6 | -------------------------------------------------------------------------------- /app/MessagesMainController.js: -------------------------------------------------------------------------------- 1 | MSMessagesAppViewController.extend({ 2 | viewDidLoad: function() { 3 | this.super.viewDidLoad(); 4 | 5 | let button = UIButton.buttonWithType(UIButtonTypeSystem); 6 | button.setTitleForState("Click here!", UIControlStateNormal); 7 | button.frame = CGRectMake(0, 0, 160.0, 40.0); 8 | button.addTargetActionForControlEvents(this, "tap", UIControlEvents.UIControlEventTouchUpInside) 9 | 10 | this.view.addSubview(button); 11 | }, 12 | tap() { 13 | let layout = MSMessageTemplateLayout.alloc().init(); 14 | layout.caption = "NativeScript rocks !"; 15 | 16 | // create a message and tell it the content and layout 17 | let message = MSMessage.alloc().init(); 18 | message.layout = layout; 19 | 20 | this.activeConversation.insertMessageCompletionHandler(message, null); 21 | }, 22 | didBecomeActiveWithConversation(conversation) { 23 | // Called when the extension is about to move from the inactive to active state. 24 | // This will happen when the extension is about to present UI. 25 | 26 | // Use this method to configure the extension and restore previously stored state. 27 | }, 28 | didReceiveMessageConversation(message, conversatio) { 29 | // Called when a message arrives that was generated by another instance of this 30 | // extension on a remote device. 31 | 32 | // Use this method to trigger UI updates in response to the message. 33 | }, 34 | didStartSendingMessageConversation(message, conversation) { 35 | // Called when the user taps the send button. 36 | } 37 | }, { 38 | 39 | name: "MessagesMainController", 40 | exposedMethods: { 41 | "tap": { 42 | returns: interop.types.void 43 | } 44 | } 45 | }); 46 | -------------------------------------------------------------------------------- /app/app.js: -------------------------------------------------------------------------------- 1 | UIApplicationMain(0, null, null, null); -------------------------------------------------------------------------------- /app/package.json: -------------------------------------------------------------------------------- 1 | {"name":"tns-template-hello-world","main":"app.js","version":"2.1.0","author":{"name":"Telerik","email":"support@telerik.com"},"description":"Nativescript hello-world project template","license":"Apache-2.0","keywords":["telerik","mobile","nativescript","{N}","tns","appbuilder","template"],"repository":{"type":"git","url":"git://github.com/NativeScript/template-hello-world.git"},"bugs":{"url":"https://github.com/NativeScript/template-hello-world/issues"},"homepage":"https://github.com/NativeScript/template-hello-world","android":{"v8Flags":"--expose_gc"},"readme":"ERROR: No README data found!","_id":"tns-template-hello-world@2.1.0","_from":"tns-template-hello-world@2.1.0"} -------------------------------------------------------------------------------- /app/references.d.ts: -------------------------------------------------------------------------------- 1 | /// Enable smart suggestions and completions in Visual Studio Code JavaScript projects. 2 | -------------------------------------------------------------------------------- /messages.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/messages.gif -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "NativeScript Application", 3 | "license": "SEE LICENSE IN ", 4 | "readme": "NativeScript Application", 5 | "repository": "", 6 | "nativescript": { 7 | "id": "org.nativescript.messages", 8 | "tns-ios": { 9 | "version": "2.3.0" 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /platforms/ios/iMessageTest/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /platforms/ios/iMessageTest/Assets.xcassets/iMessage App Icon.stickersiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "60x45", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "60x45", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "ipad", 15 | "size" : "67x50", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "74x55", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "size" : "27x20", 25 | "idiom" : "universal", 26 | "scale" : "2x", 27 | "platform" : "ios" 28 | }, 29 | { 30 | "size" : "27x20", 31 | "idiom" : "universal", 32 | "scale" : "3x", 33 | "platform" : "ios" 34 | }, 35 | { 36 | "size" : "32x24", 37 | "idiom" : "universal", 38 | "scale" : "2x", 39 | "platform" : "ios" 40 | }, 41 | { 42 | "size" : "32x24", 43 | "idiom" : "universal", 44 | "scale" : "3x", 45 | "platform" : "ios" 46 | }, 47 | { 48 | "size" : "1024x768", 49 | "idiom" : "ios-marketing", 50 | "scale" : "1x", 51 | "platform" : "ios" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /platforms/ios/iMessageTest/Base.lproj/MainInterface.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /platforms/ios/iMessageTest/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | iMessageTest 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | XPC! 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | NSExtension 24 | 25 | NSExtensionPointIdentifier 26 | com.apple.message-payload-provider 27 | NSExtensionPrincipalClass 28 | MessagesMainController 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /platforms/ios/iMessageTest/main.m: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | TNSRuntime* runtime; 7 | 8 | __attribute__((constructor)) 9 | void initialize() { 10 | extern char startOfMetadataSection __asm( 11 | "section$start$__DATA$__TNSMetadata"); 12 | [TNSRuntime initializeMetadata:&startOfMetadataSection]; 13 | 14 | runtime = [[TNSRuntime alloc] initWithApplicationPath:[NSBundle mainBundle].bundlePath]; 15 | TNSRuntimeInspector.logsToSystemConsole = YES; 16 | [runtime executeModule:@"./MessagesMainController"]; 17 | } 18 | -------------------------------------------------------------------------------- /platforms/ios/internal/NativeScript.framework/Headers/NativeScript.h: -------------------------------------------------------------------------------- 1 | // 2 | // NativeScript.h 3 | // NativeScript 4 | // 5 | // Created by Yavor Georgiev on 15.07.14. 6 | // Copyright (c) 2014 г. Telerik. All rights reserved. 7 | // 8 | 9 | #import "TNSRuntime+Diagnostics.h" 10 | #import "TNSRuntime+Inspector.h" 11 | #import "TNSRuntime.h" 12 | -------------------------------------------------------------------------------- /platforms/ios/internal/NativeScript.framework/Headers/TNSRuntime+Diagnostics.h: -------------------------------------------------------------------------------- 1 | // 2 | // TNSRuntime+Diagnostics.h 3 | // NativeScript 4 | // 5 | // Created by Yavor Georgiev on 01.08.14. 6 | // Copyright (c) 2014 г. Telerik. All rights reserved. 7 | // 8 | 9 | #import "TNSRuntime.h" 10 | 11 | @interface TNSRuntime (Diagnostics) 12 | 13 | - (NSString*)getCurrentStack; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /platforms/ios/internal/NativeScript.framework/Headers/TNSRuntime+Inspector.h: -------------------------------------------------------------------------------- 1 | // 2 | // TNSRuntime+Inspector.h 3 | // NativeScript 4 | // 5 | // Created by Yavor Georgiev on 01.08.14. 6 | // Copyright (c) 2014 г. Telerik. All rights reserved. 7 | // 8 | 9 | #import "TNSRuntime.h" 10 | #import 11 | 12 | FOUNDATION_EXPORT NSString* const TNSInspectorRunLoopMode; 13 | 14 | @interface TNSRuntimeInspector : NSObject 15 | 16 | + (BOOL)logsToSystemConsole; 17 | + (void)setLogsToSystemConsole:(BOOL)shouldLog; 18 | 19 | - (void)dispatchMessage:(NSString*)message; 20 | 21 | - (void)reportFatalError:(JSValueRef)error __attribute__((noreturn)); 22 | 23 | - (void)pause; 24 | 25 | @end 26 | 27 | typedef void (^TNSRuntimeInspectorMessageHandler)(NSString* message); 28 | 29 | @interface TNSRuntime (Inspector) 30 | 31 | - (TNSRuntimeInspector*)attachInspectorWithHandler:(TNSRuntimeInspectorMessageHandler)messageHandler; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /platforms/ios/internal/NativeScript.framework/Headers/TNSRuntime.h: -------------------------------------------------------------------------------- 1 | // 2 | // TNSRuntime.h 3 | // NativeScript 4 | // 5 | // Created by Yavor Georgiev on 01.08.14. 6 | // Copyright (c) 2014 г. Telerik. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | typedef void (*TNSUncaughtErrorHandler)(JSContextRef ctx, JSValueRef error); 13 | 14 | FOUNDATION_EXTERN void TNSSetUncaughtErrorHandler(TNSUncaughtErrorHandler handler); 15 | 16 | @interface TNSRuntime : NSObject 17 | 18 | @property(nonatomic, retain, readonly) NSString* applicationPath; 19 | 20 | + (void)initializeMetadata:(void*)metadataPtr; 21 | 22 | - (instancetype)initWithApplicationPath:(NSString*)applicationPath; 23 | 24 | - (void)scheduleInRunLoop:(NSRunLoop*)runLoop forMode:(NSString*)mode; 25 | 26 | - (void)removeFromRunLoop:(NSRunLoop*)runLoop forMode:(NSString*)mode; 27 | 28 | - (JSGlobalContextRef)globalContext; 29 | 30 | - (void)executeModule:(NSString*)entryPointModuleIdentifier; 31 | 32 | - (JSValueRef)convertObject:(id)object; 33 | 34 | @end -------------------------------------------------------------------------------- /platforms/ios/internal/NativeScript.framework/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/internal/NativeScript.framework/Info.plist -------------------------------------------------------------------------------- /platforms/ios/internal/NativeScript.framework/NativeScript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/internal/NativeScript.framework/NativeScript -------------------------------------------------------------------------------- /platforms/ios/internal/README.md: -------------------------------------------------------------------------------- 1 | The contents of this folder is specific for the current version of the runtime. 2 | It will be wiped and replaced on each platform update. 3 | -------------------------------------------------------------------------------- /platforms/ios/internal/TKLiveSync.framework/Headers/TKLiveSync.h: -------------------------------------------------------------------------------- 1 | // 2 | // TKLiveSync.h 3 | // TKLiveSync 4 | // 5 | // Created by Tsvetan Raikov on 6/16/16. 6 | // Copyright © 2016 Telerik. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for TKLiveSync. 12 | FOUNDATION_EXPORT double TKLiveSyncVersionNumber; 13 | 14 | //! Project version string for TKLiveSync. 15 | FOUNDATION_EXPORT const unsigned char TKLiveSyncVersionString[]; 16 | -------------------------------------------------------------------------------- /platforms/ios/internal/TKLiveSync.framework/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/internal/TKLiveSync.framework/Info.plist -------------------------------------------------------------------------------- /platforms/ios/internal/TKLiveSync.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module TKLiveSync { 2 | umbrella header "TKLiveSync.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /platforms/ios/internal/TKLiveSync.framework/TKLiveSync: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/internal/TKLiveSync.framework/TKLiveSync -------------------------------------------------------------------------------- /platforms/ios/internal/TNSExceptionHandler.h: -------------------------------------------------------------------------------- 1 | // 2 | // TNSExceptionHandler.h 3 | // NativeScript 4 | // 5 | // Created by Jason Zhekov on 2/1/16. 6 | // Copyright © 2016 Telerik. All rights reserved. 7 | // 8 | 9 | #ifndef TNSExceptionHandler_h 10 | #define TNSExceptionHandler_h 11 | 12 | #import 13 | #import 14 | 15 | TNSRuntime* runtime; 16 | 17 | static NSUncaughtExceptionHandler* oldExceptionHandler = NULL; 18 | 19 | static void TNSObjectiveCUncaughtExceptionHandler(NSException* currentException) { 20 | JSGlobalContextRef context = runtime.globalContext; 21 | JSObjectRef globalObject = JSContextGetGlobalObject(context); 22 | 23 | JSStringRef uncaughtPropertyName = JSStringCreateWithUTF8CString("__onUncaughtError"); // Keep in sync with JSErrors.mm 24 | JSValueRef uncaughtCallback = JSObjectGetProperty(context, globalObject, uncaughtPropertyName, NULL); 25 | JSStringRelease(uncaughtPropertyName); 26 | 27 | if (!JSValueIsUndefined(context, uncaughtCallback)) { 28 | JSStringRef reason = JSStringCreateWithUTF8CString(currentException.reason.UTF8String); 29 | JSObjectRef error = JSObjectMakeError( 30 | context, 1, (JSValueRef[]){ JSValueMakeString(context, reason) }, NULL); 31 | JSStringRelease(reason); 32 | 33 | JSValueRef wrappedException = [runtime convertObject:currentException]; 34 | JSStringRef nativeExceptionPropertyName = JSStringCreateWithUTF8CString("nativeException"); 35 | JSObjectSetProperty(context, error, nativeExceptionPropertyName, 36 | wrappedException, kJSPropertyAttributeNone, NULL); 37 | JSStringRelease(nativeExceptionPropertyName); 38 | 39 | JSValueRef callError = NULL; 40 | JSObjectCallAsFunction(context, (JSObjectRef)uncaughtCallback, NULL, 1, 41 | (JSValueRef[]){ error }, &callError); 42 | if (callError) { 43 | JSStringRef callErrorMessage = JSValueToStringCopy(context, callError, NULL); 44 | NSLog(@"Error executing uncaught error handler: %@", 45 | CFBridgingRelease(JSStringCopyCFString(CFAllocatorGetDefault(), 46 | callErrorMessage))); 47 | JSStringRelease(callErrorMessage); 48 | } 49 | } 50 | 51 | NSLog(@"*** JavaScript call stack:\n(\n%@\n)", [runtime getCurrentStack]); 52 | 53 | if (oldExceptionHandler) { 54 | oldExceptionHandler(currentException); 55 | } 56 | } 57 | 58 | static void TNSInstallExceptionHandler() { 59 | oldExceptionHandler = NSGetUncaughtExceptionHandler(); 60 | NSSetUncaughtExceptionHandler(TNSObjectiveCUncaughtExceptionHandler); 61 | } 62 | 63 | #endif /* TNSExceptionHandler_h */ 64 | -------------------------------------------------------------------------------- /platforms/ios/internal/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // Any changes in this file will be removed after you update your platform! 3 | // 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | #if DEBUG 11 | #include 12 | #endif 13 | 14 | TNSRuntime *runtime; 15 | 16 | int main(int argc, char *argv[]) { 17 | @autoreleasepool { 18 | extern char startOfMetadataSection __asm( 19 | "section$start$__DATA$__TNSMetadata"); 20 | [TNSRuntime initializeMetadata:&startOfMetadataSection]; 21 | 22 | NSString *applicationPath; 23 | if (getenv("TNSApplicationPath")) { 24 | applicationPath = @(getenv("TNSApplicationPath")); 25 | } else { 26 | applicationPath = [NSBundle mainBundle].bundlePath; 27 | } 28 | 29 | runtime = [[TNSRuntime alloc] initWithApplicationPath:applicationPath]; 30 | [runtime scheduleInRunLoop:[NSRunLoop currentRunLoop] 31 | forMode:NSRunLoopCommonModes]; 32 | 33 | #if DEBUG 34 | [TNSRuntimeInspector setLogsToSystemConsole:YES]; 35 | TNSEnableRemoteInspector(argc, argv); 36 | #endif 37 | 38 | TNSInstallExceptionHandler(); 39 | 40 | [runtime executeModule:@"./"]; 41 | 42 | return 0; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/bin/metadata-generation-build-step: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import os 4 | import subprocess 5 | import shlex 6 | import sys 7 | 8 | 9 | def env(env_name): 10 | return os.environ[env_name] 11 | 12 | 13 | def env_or_none(env_name): 14 | return os.environ.get(env_name) 15 | 16 | 17 | def env_or_empty(env_name): 18 | result = env_or_none(env_name) 19 | if result is None: 20 | return "" 21 | return result 22 | 23 | # process environment variables 24 | conf_build_dir = env("CONFIGURATION_BUILD_DIR") 25 | sdk_root = env("SDKROOT") 26 | deployment_target_flag_name = env("DEPLOYMENT_TARGET_CLANG_FLAG_NAME") 27 | deployment_target = env(env("DEPLOYMENT_TARGET_CLANG_ENV_NAME")) 28 | std = env("GCC_C_LANGUAGE_STANDARD") 29 | header_search_paths = env_or_empty("HEADER_SEARCH_PATHS") 30 | header_search_paths_parsed = map((lambda s: "-I" + s), shlex.split(header_search_paths)) 31 | framework_search_paths = env_or_empty("FRAMEWORK_SEARCH_PATHS") 32 | framework_search_paths_parsed = map((lambda s: "-F" + s), shlex.split(framework_search_paths)) 33 | other_cflags = env_or_empty("OTHER_CFLAGS") 34 | other_cflags_parsed = shlex.split(other_cflags) 35 | preprocessor_defs = env_or_empty("GCC_PREPROCESSOR_DEFINITIONS") 36 | preprocessor_defs_parsed = map((lambda s: "-D" + s), shlex.split(preprocessor_defs, '\'')) 37 | typescript_output_folder = env_or_none("TNS_TYPESCRIPT_DECLARATIONS_PATH") 38 | docset_platform = "iOS" 39 | effective_platofrm_name = env("EFFECTIVE_PLATFORM_NAME") 40 | 41 | if effective_platofrm_name is "-macosx": 42 | docset_platform = "OSX" 43 | elif effective_platofrm_name is "-watchos" or effective_platofrm_name is "-watchsimulator": 44 | docset_platform = "watchOS" 45 | elif effective_platofrm_name is "-appletvos" or effective_platofrm_name is "-appletvsimulator": 46 | docset_platform = "tvOS" 47 | docset_path = os.path.join(os.path.expanduser("~"), "Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.{}.docset".format(docset_platform)) 48 | yaml_output_folder = env_or_none("TNS_DEBUG_METADATA_PATH") 49 | 50 | 51 | def generate_metadata(arch): 52 | # metadata generator arguments 53 | generator_call = ["./objc-metadata-generator", 54 | "-output-bin", "{}/metadata-{}.bin".format(conf_build_dir, arch), 55 | "-output-umbrella", "{}/umbrella-{}.h".format(conf_build_dir, arch), 56 | "-docset-path", docset_path] 57 | 58 | # optionally add typescript output folder 59 | if typescript_output_folder is not None: 60 | current_typescript_output_folder = typescript_output_folder + "-" + arch 61 | generator_call.extend(["-output-typescript", current_typescript_output_folder]) 62 | print("Generating TypeScript declarations in: \"{}\"".format(current_typescript_output_folder)) 63 | 64 | # optionally add yaml output folder 65 | if yaml_output_folder is not None: 66 | current_yaml_output_folder = yaml_output_folder + "-" + arch 67 | generator_call.extend(["-output-yaml", current_yaml_output_folder]) 68 | print("Generating debug metadata in: \"{}\"".format(current_yaml_output_folder)) 69 | 70 | # clang arguments 71 | generator_call.extend(["Xclang", 72 | "-isysroot", sdk_root, 73 | "-arch", arch, 74 | "-" + deployment_target_flag_name + "=" + deployment_target, 75 | "-std=" + std]) 76 | 77 | generator_call.extend(header_search_paths_parsed) # HEADER_SEARCH_PATHS 78 | generator_call.extend(framework_search_paths_parsed) # FRAMEWORK_SEARCH_PATHS 79 | generator_call.extend(other_cflags_parsed) # OTHER_CFLAGS 80 | generator_call.extend(preprocessor_defs_parsed) # GCC_PREPROCESSOR_DEFINITIONS 81 | 82 | child_process = subprocess.Popen(generator_call, stderr=subprocess.PIPE, universal_newlines=True) 83 | sys.stdout.flush() 84 | error_stream_content = child_process.communicate()[1] 85 | 86 | # save error stream content to file 87 | error_log_file = "{}/metadata-generation-stderr-{}.txt".format(conf_build_dir, arch) 88 | error_file = open(error_log_file, "w") 89 | error_file.write(error_stream_content) 90 | error_file.close() 91 | 92 | if child_process.returncode != 0: 93 | print("Error: Unable to generate metadata for {}.".format(arch)) 94 | print(error_stream_content) 95 | sys.exit(1) 96 | 97 | 98 | for arch in env("ARCHS").split(): 99 | print("Generating metadata for " + arch) 100 | generate_metadata(arch) -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/bin/objc-metadata-generator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/internal/metadata-generator/bin/objc-metadata-generator -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/__stddef_max_align_t.h: -------------------------------------------------------------------------------- 1 | /*===---- __stddef_max_align_t.h - Definition of max_align_t for modules ---=== 2 | * 3 | * Copyright (c) 2014 Chandler Carruth 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | * 23 | *===-----------------------------------------------------------------------=== 24 | */ 25 | 26 | #ifndef __CLANG_MAX_ALIGN_T_DEFINED 27 | #define __CLANG_MAX_ALIGN_T_DEFINED 28 | 29 | #if defined(_MSC_VER) 30 | typedef double max_align_t; 31 | #elif defined(__APPLE__) 32 | typedef long double max_align_t; 33 | #else 34 | // Define 'max_align_t' to match the GCC definition. 35 | typedef struct { 36 | long long __clang_max_align_nonce1 37 | __attribute__((__aligned__(__alignof__(long long)))); 38 | long double __clang_max_align_nonce2 39 | __attribute__((__aligned__(__alignof__(long double)))); 40 | } max_align_t; 41 | #endif 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/__wmmintrin_pclmul.h: -------------------------------------------------------------------------------- 1 | /*===---- __wmmintrin_pclmul.h - PCMUL intrinsics ---------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | #ifndef _WMMINTRIN_PCLMUL_H 24 | #define _WMMINTRIN_PCLMUL_H 25 | 26 | /// \brief Multiplies two 64-bit integer values, which are selected from source 27 | /// operands using the immediate-value operand. The multiplication is a 28 | /// carry-less multiplication, and the 128-bit integer product is stored in 29 | /// the destination. 30 | /// 31 | /// \headerfile 32 | /// 33 | /// \code 34 | /// __m128i _mm_clmulepi64_si128(__m128i __X, __m128i __Y, const int __I); 35 | /// \endcode 36 | /// 37 | /// This intrinsic corresponds to the \c VPCLMULQDQ instruction. 38 | /// 39 | /// \param __X 40 | /// A 128-bit vector of [2 x i64] containing one of the source operands. 41 | /// \param __Y 42 | /// A 128-bit vector of [2 x i64] containing one of the source operands. 43 | /// \param __I 44 | /// An immediate value specifying which 64-bit values to select from the 45 | /// operands. 46 | /// Bit 0 is used to select a value from operand __X, 47 | /// and bit 4 is used to select a value from operand __Y: 48 | /// Bit[0]=0 indicates that bits[63:0] of operand __X are used. 49 | /// Bit[0]=1 indicates that bits[127:64] of operand __X are used. 50 | /// Bit[4]=0 indicates that bits[63:0] of operand __Y are used. 51 | /// Bit[4]=1 indicates that bits[127:64] of operand __Y are used. 52 | /// \returns The 128-bit integer vector containing the result of the carry-less 53 | /// multiplication of the selected 64-bit values. 54 | #define _mm_clmulepi64_si128(__X, __Y, __I) \ 55 | ((__m128i)__builtin_ia32_pclmulqdq128((__v2di)(__m128i)(__X), \ 56 | (__v2di)(__m128i)(__Y), (char)(__I))) 57 | 58 | #endif /* _WMMINTRIN_PCLMUL_H */ 59 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/adxintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- adxintrin.h - ADX intrinsics -------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __ADXINTRIN_H 29 | #define __ADXINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__)) 33 | 34 | /* Intrinsics that are available only if __ADX__ defined */ 35 | static __inline unsigned char __attribute__((__always_inline__, __nodebug__, __target__("adx"))) 36 | _addcarryx_u32(unsigned char __cf, unsigned int __x, unsigned int __y, 37 | unsigned int *__p) 38 | { 39 | return __builtin_ia32_addcarryx_u32(__cf, __x, __y, __p); 40 | } 41 | 42 | #ifdef __x86_64__ 43 | static __inline unsigned char __attribute__((__always_inline__, __nodebug__, __target__("adx"))) 44 | _addcarryx_u64(unsigned char __cf, unsigned long long __x, 45 | unsigned long long __y, unsigned long long *__p) 46 | { 47 | return __builtin_ia32_addcarryx_u64(__cf, __x, __y, __p); 48 | } 49 | #endif 50 | 51 | /* Intrinsics that are also available if __ADX__ undefined */ 52 | static __inline unsigned char __DEFAULT_FN_ATTRS 53 | _addcarry_u32(unsigned char __cf, unsigned int __x, unsigned int __y, 54 | unsigned int *__p) 55 | { 56 | return __builtin_ia32_addcarry_u32(__cf, __x, __y, __p); 57 | } 58 | 59 | #ifdef __x86_64__ 60 | static __inline unsigned char __DEFAULT_FN_ATTRS 61 | _addcarry_u64(unsigned char __cf, unsigned long long __x, 62 | unsigned long long __y, unsigned long long *__p) 63 | { 64 | return __builtin_ia32_addcarry_u64(__cf, __x, __y, __p); 65 | } 66 | #endif 67 | 68 | static __inline unsigned char __DEFAULT_FN_ATTRS 69 | _subborrow_u32(unsigned char __cf, unsigned int __x, unsigned int __y, 70 | unsigned int *__p) 71 | { 72 | return __builtin_ia32_subborrow_u32(__cf, __x, __y, __p); 73 | } 74 | 75 | #ifdef __x86_64__ 76 | static __inline unsigned char __DEFAULT_FN_ATTRS 77 | _subborrow_u64(unsigned char __cf, unsigned long long __x, 78 | unsigned long long __y, unsigned long long *__p) 79 | { 80 | return __builtin_ia32_subborrow_u64(__cf, __x, __y, __p); 81 | } 82 | #endif 83 | 84 | #undef __DEFAULT_FN_ATTRS 85 | 86 | #endif /* __ADXINTRIN_H */ 87 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/avx512ifmaintrin.h: -------------------------------------------------------------------------------- 1 | /*===------------- avx512ifmaintrin.h - IFMA intrinsics ------------------=== 2 | * 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy 5 | * of this software and associated documentation files (the "Software"), to deal 6 | * in the Software without restriction, including without limitation the rights 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | * copies of the Software, and to permit persons to whom the Software is 9 | * furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | * THE SOFTWARE. 21 | * 22 | *===-----------------------------------------------------------------------=== 23 | */ 24 | #ifndef __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __IFMAINTRIN_H 29 | #define __IFMAINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("avx512ifma"))) 33 | 34 | static __inline__ __m512i __DEFAULT_FN_ATTRS 35 | _mm512_madd52hi_epu64 (__m512i __X, __m512i __Y, __m512i __Z) 36 | { 37 | return (__m512i) __builtin_ia32_vpmadd52huq512_mask ((__v8di) __X, 38 | (__v8di) __Y, 39 | (__v8di) __Z, 40 | (__mmask8) -1); 41 | } 42 | 43 | static __inline__ __m512i __DEFAULT_FN_ATTRS 44 | _mm512_mask_madd52hi_epu64 (__m512i __W, __mmask8 __M, __m512i __X, 45 | __m512i __Y) 46 | { 47 | return (__m512i) __builtin_ia32_vpmadd52huq512_mask ((__v8di) __W, 48 | (__v8di) __X, 49 | (__v8di) __Y, 50 | (__mmask8) __M); 51 | } 52 | 53 | static __inline__ __m512i __DEFAULT_FN_ATTRS 54 | _mm512_maskz_madd52hi_epu64 (__mmask8 __M, __m512i __X, __m512i __Y, __m512i __Z) 55 | { 56 | return (__m512i) __builtin_ia32_vpmadd52huq512_maskz ((__v8di) __X, 57 | (__v8di) __Y, 58 | (__v8di) __Z, 59 | (__mmask8) __M); 60 | } 61 | 62 | static __inline__ __m512i __DEFAULT_FN_ATTRS 63 | _mm512_madd52lo_epu64 (__m512i __X, __m512i __Y, __m512i __Z) 64 | { 65 | return (__m512i) __builtin_ia32_vpmadd52luq512_mask ((__v8di) __X, 66 | (__v8di) __Y, 67 | (__v8di) __Z, 68 | (__mmask8) -1); 69 | } 70 | 71 | static __inline__ __m512i __DEFAULT_FN_ATTRS 72 | _mm512_mask_madd52lo_epu64 (__m512i __W, __mmask8 __M, __m512i __X, 73 | __m512i __Y) 74 | { 75 | return (__m512i) __builtin_ia32_vpmadd52luq512_mask ((__v8di) __W, 76 | (__v8di) __X, 77 | (__v8di) __Y, 78 | (__mmask8) __M); 79 | } 80 | 81 | static __inline__ __m512i __DEFAULT_FN_ATTRS 82 | _mm512_maskz_madd52lo_epu64 (__mmask8 __M, __m512i __X, __m512i __Y, __m512i __Z) 83 | { 84 | return (__m512i) __builtin_ia32_vpmadd52luq512_maskz ((__v8di) __X, 85 | (__v8di) __Y, 86 | (__v8di) __Z, 87 | (__mmask8) __M); 88 | } 89 | 90 | #undef __DEFAULT_FN_ATTRS 91 | 92 | #endif 93 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/bmi2intrin.h: -------------------------------------------------------------------------------- 1 | /*===---- bmi2intrin.h - BMI2 intrinsics -----------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __BMI2INTRIN_H 29 | #define __BMI2INTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("bmi2"))) 33 | 34 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 35 | _bzhi_u32(unsigned int __X, unsigned int __Y) 36 | { 37 | return __builtin_ia32_bzhi_si(__X, __Y); 38 | } 39 | 40 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 41 | _pdep_u32(unsigned int __X, unsigned int __Y) 42 | { 43 | return __builtin_ia32_pdep_si(__X, __Y); 44 | } 45 | 46 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 47 | _pext_u32(unsigned int __X, unsigned int __Y) 48 | { 49 | return __builtin_ia32_pext_si(__X, __Y); 50 | } 51 | 52 | #ifdef __x86_64__ 53 | 54 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 55 | _bzhi_u64(unsigned long long __X, unsigned long long __Y) 56 | { 57 | return __builtin_ia32_bzhi_di(__X, __Y); 58 | } 59 | 60 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 61 | _pdep_u64(unsigned long long __X, unsigned long long __Y) 62 | { 63 | return __builtin_ia32_pdep_di(__X, __Y); 64 | } 65 | 66 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 67 | _pext_u64(unsigned long long __X, unsigned long long __Y) 68 | { 69 | return __builtin_ia32_pext_di(__X, __Y); 70 | } 71 | 72 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 73 | _mulx_u64 (unsigned long long __X, unsigned long long __Y, 74 | unsigned long long *__P) 75 | { 76 | unsigned __int128 __res = (unsigned __int128) __X * __Y; 77 | *__P = (unsigned long long) (__res >> 64); 78 | return (unsigned long long) __res; 79 | } 80 | 81 | #else /* !__x86_64__ */ 82 | 83 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 84 | _mulx_u32 (unsigned int __X, unsigned int __Y, unsigned int *__P) 85 | { 86 | unsigned long long __res = (unsigned long long) __X * __Y; 87 | *__P = (unsigned int) (__res >> 32); 88 | return (unsigned int) __res; 89 | } 90 | 91 | #endif /* !__x86_64__ */ 92 | 93 | #undef __DEFAULT_FN_ATTRS 94 | 95 | #endif /* __BMI2INTRIN_H */ 96 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/clflushoptintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- clflushoptintrin.h - CLFLUSHOPT intrinsic ------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __CLFLUSHOPTINTRIN_H 29 | #define __CLFLUSHOPTINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("clflushopt"))) 33 | 34 | static __inline__ void __DEFAULT_FN_ATTRS 35 | _mm_clflushopt(char * __m) { 36 | __builtin_ia32_clflushopt(__m); 37 | } 38 | 39 | #undef __DEFAULT_FN_ATTRS 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/f16cintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- f16cintrin.h - F16C intrinsics -----------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #if !defined __X86INTRIN_H && !defined __EMMINTRIN_H && !defined __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __F16CINTRIN_H 29 | #define __F16CINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS \ 33 | __attribute__((__always_inline__, __nodebug__, __target__("f16c"))) 34 | 35 | /// \brief Converts a 16-bit half-precision float value into a 32-bit float 36 | /// value. 37 | /// 38 | /// \headerfile 39 | /// 40 | /// This intrinsic corresponds to the \c VCVTPH2PS instruction. 41 | /// 42 | /// \param __a 43 | /// A 16-bit half-precision float value. 44 | /// \returns The converted 32-bit float value. 45 | static __inline float __DEFAULT_FN_ATTRS 46 | _cvtsh_ss(unsigned short __a) 47 | { 48 | __v8hi v = {(short)__a, 0, 0, 0, 0, 0, 0, 0}; 49 | __v4sf r = __builtin_ia32_vcvtph2ps(v); 50 | return r[0]; 51 | } 52 | 53 | /// \brief Converts a 32-bit single-precision float value to a 16-bit 54 | /// half-precision float value. 55 | /// 56 | /// \headerfile 57 | /// 58 | /// \code 59 | /// unsigned short _cvtss_sh(float a, const int imm); 60 | /// \endcode 61 | /// 62 | /// This intrinsic corresponds to the \c VCVTPS2PH instruction. 63 | /// 64 | /// \param a 65 | /// A 32-bit single-precision float value to be converted to a 16-bit 66 | /// half-precision float value. 67 | /// \param imm 68 | /// An immediate value controlling rounding using bits [2:0]: 69 | /// 000: Nearest 70 | /// 001: Down 71 | /// 010: Up 72 | /// 011: Truncate 73 | /// 1XX: Use MXCSR.RC for rounding 74 | /// \returns The converted 16-bit half-precision float value. 75 | #define _cvtss_sh(a, imm) \ 76 | ((unsigned short)(((__v8hi)__builtin_ia32_vcvtps2ph((__v4sf){a, 0, 0, 0}, \ 77 | (imm)))[0])) 78 | 79 | /// \brief Converts a 128-bit vector containing 32-bit float values into a 80 | /// 128-bit vector containing 16-bit half-precision float values. 81 | /// 82 | /// \headerfile 83 | /// 84 | /// \code 85 | /// __m128i _mm_cvtps_ph(__m128 a, const int imm); 86 | /// \endcode 87 | /// 88 | /// This intrinsic corresponds to the \c VCVTPS2PH instruction. 89 | /// 90 | /// \param a 91 | /// A 128-bit vector containing 32-bit float values. 92 | /// \param imm 93 | /// An immediate value controlling rounding using bits [2:0]: 94 | /// 000: Nearest 95 | /// 001: Down 96 | /// 010: Up 97 | /// 011: Truncate 98 | /// 1XX: Use MXCSR.RC for rounding 99 | /// \returns A 128-bit vector containing converted 16-bit half-precision float 100 | /// values. The lower 64 bits are used to store the converted 16-bit 101 | /// half-precision floating-point values. 102 | #define _mm_cvtps_ph(a, imm) \ 103 | ((__m128i)__builtin_ia32_vcvtps2ph((__v4sf)(__m128)(a), (imm))) 104 | 105 | /// \brief Converts a 128-bit vector containing 16-bit half-precision float 106 | /// values into a 128-bit vector containing 32-bit float values. 107 | /// 108 | /// \headerfile 109 | /// 110 | /// This intrinsic corresponds to the \c VCVTPH2PS instruction. 111 | /// 112 | /// \param __a 113 | /// A 128-bit vector containing 16-bit half-precision float values. The lower 114 | /// 64 bits are used in the conversion. 115 | /// \returns A 128-bit vector of [4 x float] containing converted float values. 116 | static __inline __m128 __DEFAULT_FN_ATTRS 117 | _mm_cvtph_ps(__m128i __a) 118 | { 119 | return (__m128)__builtin_ia32_vcvtph2ps((__v8hi)__a); 120 | } 121 | 122 | #undef __DEFAULT_FN_ATTRS 123 | 124 | #endif /* __F16CINTRIN_H */ 125 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/float.h: -------------------------------------------------------------------------------- 1 | /*===---- float.h - Characteristics of floating point types ----------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __FLOAT_H 25 | #define __FLOAT_H 26 | 27 | /* If we're on MinGW, fall back to the system's float.h, which might have 28 | * additional definitions provided for Windows. 29 | * For more details see http://msdn.microsoft.com/en-us/library/y0ybw9fy.aspx 30 | */ 31 | #if (defined(__MINGW32__) || defined(_MSC_VER)) && __STDC_HOSTED__ && \ 32 | __has_include_next() 33 | # include_next 34 | 35 | /* Undefine anything that we'll be redefining below. */ 36 | # undef FLT_EVAL_METHOD 37 | # undef FLT_ROUNDS 38 | # undef FLT_RADIX 39 | # undef FLT_MANT_DIG 40 | # undef DBL_MANT_DIG 41 | # undef LDBL_MANT_DIG 42 | # if __STDC_VERSION__ >= 199901L || !defined(__STRICT_ANSI__) 43 | # undef DECIMAL_DIG 44 | # endif 45 | # undef FLT_DIG 46 | # undef DBL_DIG 47 | # undef LDBL_DIG 48 | # undef FLT_MIN_EXP 49 | # undef DBL_MIN_EXP 50 | # undef LDBL_MIN_EXP 51 | # undef FLT_MIN_10_EXP 52 | # undef DBL_MIN_10_EXP 53 | # undef LDBL_MIN_10_EXP 54 | # undef FLT_MAX_EXP 55 | # undef DBL_MAX_EXP 56 | # undef LDBL_MAX_EXP 57 | # undef FLT_MAX_10_EXP 58 | # undef DBL_MAX_10_EXP 59 | # undef LDBL_MAX_10_EXP 60 | # undef FLT_MAX 61 | # undef DBL_MAX 62 | # undef LDBL_MAX 63 | # undef FLT_EPSILON 64 | # undef DBL_EPSILON 65 | # undef LDBL_EPSILON 66 | # undef FLT_MIN 67 | # undef DBL_MIN 68 | # undef LDBL_MIN 69 | # if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__) 70 | # undef FLT_TRUE_MIN 71 | # undef DBL_TRUE_MIN 72 | # undef LDBL_TRUE_MIN 73 | # undef FLT_DECIMAL_DIG 74 | # undef DBL_DECIMAL_DIG 75 | # undef LDBL_DECIMAL_DIG 76 | # endif 77 | #endif 78 | 79 | /* Characteristics of floating point types, C99 5.2.4.2.2 */ 80 | 81 | #define FLT_EVAL_METHOD __FLT_EVAL_METHOD__ 82 | #define FLT_ROUNDS (__builtin_flt_rounds()) 83 | #define FLT_RADIX __FLT_RADIX__ 84 | 85 | #define FLT_MANT_DIG __FLT_MANT_DIG__ 86 | #define DBL_MANT_DIG __DBL_MANT_DIG__ 87 | #define LDBL_MANT_DIG __LDBL_MANT_DIG__ 88 | 89 | #if __STDC_VERSION__ >= 199901L || !defined(__STRICT_ANSI__) 90 | # define DECIMAL_DIG __DECIMAL_DIG__ 91 | #endif 92 | 93 | #define FLT_DIG __FLT_DIG__ 94 | #define DBL_DIG __DBL_DIG__ 95 | #define LDBL_DIG __LDBL_DIG__ 96 | 97 | #define FLT_MIN_EXP __FLT_MIN_EXP__ 98 | #define DBL_MIN_EXP __DBL_MIN_EXP__ 99 | #define LDBL_MIN_EXP __LDBL_MIN_EXP__ 100 | 101 | #define FLT_MIN_10_EXP __FLT_MIN_10_EXP__ 102 | #define DBL_MIN_10_EXP __DBL_MIN_10_EXP__ 103 | #define LDBL_MIN_10_EXP __LDBL_MIN_10_EXP__ 104 | 105 | #define FLT_MAX_EXP __FLT_MAX_EXP__ 106 | #define DBL_MAX_EXP __DBL_MAX_EXP__ 107 | #define LDBL_MAX_EXP __LDBL_MAX_EXP__ 108 | 109 | #define FLT_MAX_10_EXP __FLT_MAX_10_EXP__ 110 | #define DBL_MAX_10_EXP __DBL_MAX_10_EXP__ 111 | #define LDBL_MAX_10_EXP __LDBL_MAX_10_EXP__ 112 | 113 | #define FLT_MAX __FLT_MAX__ 114 | #define DBL_MAX __DBL_MAX__ 115 | #define LDBL_MAX __LDBL_MAX__ 116 | 117 | #define FLT_EPSILON __FLT_EPSILON__ 118 | #define DBL_EPSILON __DBL_EPSILON__ 119 | #define LDBL_EPSILON __LDBL_EPSILON__ 120 | 121 | #define FLT_MIN __FLT_MIN__ 122 | #define DBL_MIN __DBL_MIN__ 123 | #define LDBL_MIN __LDBL_MIN__ 124 | 125 | #if __STDC_VERSION__ >= 201112L || !defined(__STRICT_ANSI__) 126 | # define FLT_TRUE_MIN __FLT_DENORM_MIN__ 127 | # define DBL_TRUE_MIN __DBL_DENORM_MIN__ 128 | # define LDBL_TRUE_MIN __LDBL_DENORM_MIN__ 129 | # define FLT_DECIMAL_DIG __FLT_DECIMAL_DIG__ 130 | # define DBL_DECIMAL_DIG __DBL_DECIMAL_DIG__ 131 | # define LDBL_DECIMAL_DIG __LDBL_DECIMAL_DIG__ 132 | #endif 133 | 134 | #endif /* __FLOAT_H */ 135 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/fxsrintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- fxsrintrin.h - FXSR intrinsic ------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __FXSRINTRIN_H 29 | #define __FXSRINTRIN_H 30 | 31 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("fxsr"))) 32 | 33 | static __inline__ void __DEFAULT_FN_ATTRS 34 | _fxsave(void *__p) { 35 | return __builtin_ia32_fxsave(__p); 36 | } 37 | 38 | static __inline__ void __DEFAULT_FN_ATTRS 39 | _fxsave64(void *__p) { 40 | return __builtin_ia32_fxsave64(__p); 41 | } 42 | 43 | static __inline__ void __DEFAULT_FN_ATTRS 44 | _fxrstor(void *__p) { 45 | return __builtin_ia32_fxrstor(__p); 46 | } 47 | 48 | static __inline__ void __DEFAULT_FN_ATTRS 49 | _fxrstor64(void *__p) { 50 | return __builtin_ia32_fxrstor64(__p); 51 | } 52 | 53 | #undef __DEFAULT_FN_ATTRS 54 | 55 | #endif 56 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/ia32intrin.h: -------------------------------------------------------------------------------- 1 | /* ===-------- ia32intrin.h ---------------------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __X86INTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __IA32INTRIN_H 29 | #define __IA32INTRIN_H 30 | 31 | #ifdef __x86_64__ 32 | static __inline__ unsigned long long __attribute__((__always_inline__, __nodebug__)) 33 | __readeflags(void) 34 | { 35 | return __builtin_ia32_readeflags_u64(); 36 | } 37 | 38 | static __inline__ void __attribute__((__always_inline__, __nodebug__)) 39 | __writeeflags(unsigned long long __f) 40 | { 41 | __builtin_ia32_writeeflags_u64(__f); 42 | } 43 | 44 | #else /* !__x86_64__ */ 45 | static __inline__ unsigned int __attribute__((__always_inline__, __nodebug__)) 46 | __readeflags(void) 47 | { 48 | return __builtin_ia32_readeflags_u32(); 49 | } 50 | 51 | static __inline__ void __attribute__((__always_inline__, __nodebug__)) 52 | __writeeflags(unsigned int __f) 53 | { 54 | __builtin_ia32_writeeflags_u32(__f); 55 | } 56 | #endif /* !__x86_64__ */ 57 | 58 | static __inline__ unsigned long long __attribute__((__always_inline__, __nodebug__)) 59 | __rdpmc(int __A) { 60 | return __builtin_ia32_rdpmc(__A); 61 | } 62 | 63 | /* __rdtsc */ 64 | static __inline__ unsigned long long __attribute__((__always_inline__, __nodebug__)) 65 | __rdtsc(void) { 66 | return __builtin_ia32_rdtsc(); 67 | } 68 | 69 | /* __rdtscp */ 70 | static __inline__ unsigned long long __attribute__((__always_inline__, __nodebug__)) 71 | __rdtscp(unsigned int *__A) { 72 | return __builtin_ia32_rdtscp(__A); 73 | } 74 | 75 | #define _rdtsc() __rdtsc() 76 | 77 | #define _rdpmc(A) __rdpmc(A) 78 | 79 | #endif /* __IA32INTRIN_H */ 80 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/inttypes.h: -------------------------------------------------------------------------------- 1 | /*===---- inttypes.h - Standard header for integer printf macros ----------===*\ 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | \*===----------------------------------------------------------------------===*/ 22 | 23 | #ifndef __CLANG_INTTYPES_H 24 | #define __CLANG_INTTYPES_H 25 | 26 | #if defined(_MSC_VER) && _MSC_VER < 1800 27 | #error MSVC does not have inttypes.h prior to Visual Studio 2013 28 | #endif 29 | 30 | #include_next 31 | 32 | #if defined(_MSC_VER) && _MSC_VER < 1900 33 | /* MSVC headers define int32_t as int, but PRIx32 as "lx" instead of "x". 34 | * This triggers format warnings, so fix it up here. */ 35 | #undef PRId32 36 | #undef PRIdLEAST32 37 | #undef PRIdFAST32 38 | #undef PRIi32 39 | #undef PRIiLEAST32 40 | #undef PRIiFAST32 41 | #undef PRIo32 42 | #undef PRIoLEAST32 43 | #undef PRIoFAST32 44 | #undef PRIu32 45 | #undef PRIuLEAST32 46 | #undef PRIuFAST32 47 | #undef PRIx32 48 | #undef PRIxLEAST32 49 | #undef PRIxFAST32 50 | #undef PRIX32 51 | #undef PRIXLEAST32 52 | #undef PRIXFAST32 53 | 54 | #undef SCNd32 55 | #undef SCNdLEAST32 56 | #undef SCNdFAST32 57 | #undef SCNi32 58 | #undef SCNiLEAST32 59 | #undef SCNiFAST32 60 | #undef SCNo32 61 | #undef SCNoLEAST32 62 | #undef SCNoFAST32 63 | #undef SCNu32 64 | #undef SCNuLEAST32 65 | #undef SCNuFAST32 66 | #undef SCNx32 67 | #undef SCNxLEAST32 68 | #undef SCNxFAST32 69 | 70 | #define PRId32 "d" 71 | #define PRIdLEAST32 "d" 72 | #define PRIdFAST32 "d" 73 | #define PRIi32 "i" 74 | #define PRIiLEAST32 "i" 75 | #define PRIiFAST32 "i" 76 | #define PRIo32 "o" 77 | #define PRIoLEAST32 "o" 78 | #define PRIoFAST32 "o" 79 | #define PRIu32 "u" 80 | #define PRIuLEAST32 "u" 81 | #define PRIuFAST32 "u" 82 | #define PRIx32 "x" 83 | #define PRIxLEAST32 "x" 84 | #define PRIxFAST32 "x" 85 | #define PRIX32 "X" 86 | #define PRIXLEAST32 "X" 87 | #define PRIXFAST32 "X" 88 | 89 | #define SCNd32 "d" 90 | #define SCNdLEAST32 "d" 91 | #define SCNdFAST32 "d" 92 | #define SCNi32 "i" 93 | #define SCNiLEAST32 "i" 94 | #define SCNiFAST32 "i" 95 | #define SCNo32 "o" 96 | #define SCNoLEAST32 "o" 97 | #define SCNoFAST32 "o" 98 | #define SCNu32 "u" 99 | #define SCNuLEAST32 "u" 100 | #define SCNuFAST32 "u" 101 | #define SCNx32 "x" 102 | #define SCNxLEAST32 "x" 103 | #define SCNxFAST32 "x" 104 | #endif 105 | 106 | #endif /* __CLANG_INTTYPES_H */ 107 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/iso646.h: -------------------------------------------------------------------------------- 1 | /*===---- iso646.h - Standard header for alternate spellings of operators---=== 2 | * 3 | * Copyright (c) 2008 Eli Friedman 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | * 23 | *===-----------------------------------------------------------------------=== 24 | */ 25 | 26 | #ifndef __ISO646_H 27 | #define __ISO646_H 28 | 29 | #ifndef __cplusplus 30 | #define and && 31 | #define and_eq &= 32 | #define bitand & 33 | #define bitor | 34 | #define compl ~ 35 | #define not ! 36 | #define not_eq != 37 | #define or || 38 | #define or_eq |= 39 | #define xor ^ 40 | #define xor_eq ^= 41 | #endif 42 | 43 | #endif /* __ISO646_H */ 44 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/limits.h: -------------------------------------------------------------------------------- 1 | /*===---- limits.h - Standard header for integer sizes --------------------===*\ 2 | * 3 | * Copyright (c) 2009 Chris Lattner 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | * 23 | \*===----------------------------------------------------------------------===*/ 24 | 25 | #ifndef __CLANG_LIMITS_H 26 | #define __CLANG_LIMITS_H 27 | 28 | /* The system's limits.h may, in turn, try to #include_next GCC's limits.h. 29 | Avert this #include_next madness. */ 30 | #if defined __GNUC__ && !defined _GCC_LIMITS_H_ 31 | #define _GCC_LIMITS_H_ 32 | #endif 33 | 34 | /* System headers include a number of constants from POSIX in . 35 | Include it if we're hosted. */ 36 | #if __STDC_HOSTED__ && __has_include_next() 37 | #include_next 38 | #endif 39 | 40 | /* Many system headers try to "help us out" by defining these. No really, we 41 | know how big each datatype is. */ 42 | #undef SCHAR_MIN 43 | #undef SCHAR_MAX 44 | #undef UCHAR_MAX 45 | #undef SHRT_MIN 46 | #undef SHRT_MAX 47 | #undef USHRT_MAX 48 | #undef INT_MIN 49 | #undef INT_MAX 50 | #undef UINT_MAX 51 | #undef LONG_MIN 52 | #undef LONG_MAX 53 | #undef ULONG_MAX 54 | 55 | #undef CHAR_BIT 56 | #undef CHAR_MIN 57 | #undef CHAR_MAX 58 | 59 | /* C90/99 5.2.4.2.1 */ 60 | #define SCHAR_MAX __SCHAR_MAX__ 61 | #define SHRT_MAX __SHRT_MAX__ 62 | #define INT_MAX __INT_MAX__ 63 | #define LONG_MAX __LONG_MAX__ 64 | 65 | #define SCHAR_MIN (-__SCHAR_MAX__-1) 66 | #define SHRT_MIN (-__SHRT_MAX__ -1) 67 | #define INT_MIN (-__INT_MAX__ -1) 68 | #define LONG_MIN (-__LONG_MAX__ -1L) 69 | 70 | #define UCHAR_MAX (__SCHAR_MAX__*2 +1) 71 | #define USHRT_MAX (__SHRT_MAX__ *2 +1) 72 | #define UINT_MAX (__INT_MAX__ *2U +1U) 73 | #define ULONG_MAX (__LONG_MAX__ *2UL+1UL) 74 | 75 | #ifndef MB_LEN_MAX 76 | #define MB_LEN_MAX 1 77 | #endif 78 | 79 | #define CHAR_BIT __CHAR_BIT__ 80 | 81 | #ifdef __CHAR_UNSIGNED__ /* -funsigned-char */ 82 | #define CHAR_MIN 0 83 | #define CHAR_MAX UCHAR_MAX 84 | #else 85 | #define CHAR_MIN SCHAR_MIN 86 | #define CHAR_MAX __SCHAR_MAX__ 87 | #endif 88 | 89 | /* C99 5.2.4.2.1: Added long long. 90 | C++11 18.3.3.2: same contents as the Standard C Library header . 91 | */ 92 | #if __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L 93 | 94 | #undef LLONG_MIN 95 | #undef LLONG_MAX 96 | #undef ULLONG_MAX 97 | 98 | #define LLONG_MAX __LONG_LONG_MAX__ 99 | #define LLONG_MIN (-__LONG_LONG_MAX__-1LL) 100 | #define ULLONG_MAX (__LONG_LONG_MAX__*2ULL+1ULL) 101 | #endif 102 | 103 | /* LONG_LONG_MIN/LONG_LONG_MAX/ULONG_LONG_MAX are a GNU extension. It's too bad 104 | that we don't have something like #pragma poison that could be used to 105 | deprecate a macro - the code should just use LLONG_MAX and friends. 106 | */ 107 | #if defined(__GNU_LIBRARY__) ? defined(__USE_GNU) : !defined(__STRICT_ANSI__) 108 | 109 | #undef LONG_LONG_MIN 110 | #undef LONG_LONG_MAX 111 | #undef ULONG_LONG_MAX 112 | 113 | #define LONG_LONG_MAX __LONG_LONG_MAX__ 114 | #define LONG_LONG_MIN (-__LONG_LONG_MAX__-1LL) 115 | #define ULONG_LONG_MAX (__LONG_LONG_MAX__*2ULL+1ULL) 116 | #endif 117 | 118 | #endif /* __CLANG_LIMITS_H */ 119 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/lzcntintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- lzcntintrin.h - LZCNT intrinsics ---------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #if !defined __X86INTRIN_H && !defined __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __LZCNTINTRIN_H 29 | #define __LZCNTINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("lzcnt"))) 33 | 34 | static __inline__ unsigned short __DEFAULT_FN_ATTRS 35 | __lzcnt16(unsigned short __X) 36 | { 37 | return __X ? __builtin_clzs(__X) : 16; 38 | } 39 | 40 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 41 | __lzcnt32(unsigned int __X) 42 | { 43 | return __X ? __builtin_clz(__X) : 32; 44 | } 45 | 46 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 47 | _lzcnt_u32(unsigned int __X) 48 | { 49 | return __X ? __builtin_clz(__X) : 32; 50 | } 51 | 52 | #ifdef __x86_64__ 53 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 54 | __lzcnt64(unsigned long long __X) 55 | { 56 | return __X ? __builtin_clzll(__X) : 64; 57 | } 58 | 59 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 60 | _lzcnt_u64(unsigned long long __X) 61 | { 62 | return __X ? __builtin_clzll(__X) : 64; 63 | } 64 | #endif 65 | 66 | #undef __DEFAULT_FN_ATTRS 67 | 68 | #endif /* __LZCNTINTRIN_H */ 69 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/mm_malloc.h: -------------------------------------------------------------------------------- 1 | /*===---- mm_malloc.h - Allocating and Freeing Aligned Memory Blocks -------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __MM_MALLOC_H 25 | #define __MM_MALLOC_H 26 | 27 | #include 28 | 29 | #ifdef _WIN32 30 | #include 31 | #else 32 | #ifndef __cplusplus 33 | extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size); 34 | #else 35 | // Some systems (e.g. those with GNU libc) declare posix_memalign with an 36 | // exception specifier. Via an "egregious workaround" in 37 | // Sema::CheckEquivalentExceptionSpec, Clang accepts the following as a valid 38 | // redeclaration of glibc's declaration. 39 | extern "C" int posix_memalign(void **__memptr, size_t __alignment, size_t __size); 40 | #endif 41 | #endif 42 | 43 | #if !(defined(_WIN32) && defined(_mm_malloc)) 44 | static __inline__ void *__attribute__((__always_inline__, __nodebug__, 45 | __malloc__)) 46 | _mm_malloc(size_t __size, size_t __align) 47 | { 48 | if (__align == 1) { 49 | return malloc(__size); 50 | } 51 | 52 | if (!(__align & (__align - 1)) && __align < sizeof(void *)) 53 | __align = sizeof(void *); 54 | 55 | void *__mallocedMemory; 56 | #if defined(__MINGW32__) 57 | __mallocedMemory = __mingw_aligned_malloc(__size, __align); 58 | #elif defined(_WIN32) 59 | __mallocedMemory = _aligned_malloc(__size, __align); 60 | #else 61 | if (posix_memalign(&__mallocedMemory, __align, __size)) 62 | return 0; 63 | #endif 64 | 65 | return __mallocedMemory; 66 | } 67 | 68 | static __inline__ void __attribute__((__always_inline__, __nodebug__)) 69 | _mm_free(void *__p) 70 | { 71 | free(__p); 72 | } 73 | #endif 74 | 75 | #endif /* __MM_MALLOC_H */ 76 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/module.modulemap: -------------------------------------------------------------------------------- 1 | /*===---- module.modulemap - intrinsics module map -------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | module _Builtin_intrinsics [system] [extern_c] { 25 | explicit module altivec { 26 | requires altivec 27 | header "altivec.h" 28 | } 29 | 30 | explicit module arm { 31 | requires arm 32 | 33 | explicit module acle { 34 | header "arm_acle.h" 35 | export * 36 | } 37 | 38 | explicit module neon { 39 | requires neon 40 | header "arm_neon.h" 41 | export * 42 | } 43 | } 44 | 45 | explicit module intel { 46 | requires x86 47 | export * 48 | 49 | header "immintrin.h" 50 | textual header "f16cintrin.h" 51 | textual header "avxintrin.h" 52 | textual header "avx2intrin.h" 53 | textual header "avx512fintrin.h" 54 | textual header "avx512erintrin.h" 55 | textual header "fmaintrin.h" 56 | 57 | header "x86intrin.h" 58 | textual header "bmiintrin.h" 59 | textual header "bmi2intrin.h" 60 | textual header "lzcntintrin.h" 61 | textual header "xopintrin.h" 62 | textual header "fma4intrin.h" 63 | textual header "mwaitxintrin.h" 64 | 65 | explicit module mm_malloc { 66 | header "mm_malloc.h" 67 | export * // note: for dependency 68 | } 69 | 70 | explicit module cpuid { 71 | header "cpuid.h" 72 | } 73 | 74 | explicit module mmx { 75 | header "mmintrin.h" 76 | } 77 | 78 | explicit module sse { 79 | export mm_malloc 80 | export mmx 81 | export sse2 // note: for hackish dependency 82 | header "xmmintrin.h" 83 | } 84 | 85 | explicit module sse2 { 86 | export sse 87 | header "emmintrin.h" 88 | } 89 | 90 | explicit module sse3 { 91 | export sse2 92 | header "pmmintrin.h" 93 | } 94 | 95 | explicit module ssse3 { 96 | export sse3 97 | header "tmmintrin.h" 98 | } 99 | 100 | explicit module sse4_1 { 101 | export ssse3 102 | header "smmintrin.h" 103 | } 104 | 105 | explicit module sse4_2 { 106 | export sse4_1 107 | header "nmmintrin.h" 108 | } 109 | 110 | explicit module sse4a { 111 | export sse3 112 | header "ammintrin.h" 113 | } 114 | 115 | explicit module popcnt { 116 | header "popcntintrin.h" 117 | } 118 | 119 | explicit module mm3dnow { 120 | header "mm3dnow.h" 121 | } 122 | 123 | explicit module aes_pclmul { 124 | header "wmmintrin.h" 125 | export aes 126 | export pclmul 127 | } 128 | 129 | explicit module aes { 130 | header "__wmmintrin_aes.h" 131 | } 132 | 133 | explicit module pclmul { 134 | header "__wmmintrin_pclmul.h" 135 | } 136 | } 137 | 138 | explicit module systemz { 139 | requires systemz 140 | export * 141 | 142 | header "s390intrin.h" 143 | 144 | explicit module htm { 145 | requires htm 146 | header "htmintrin.h" 147 | header "htmxlintrin.h" 148 | } 149 | 150 | explicit module zvector { 151 | requires zvector, vx 152 | header "vecintrin.h" 153 | } 154 | } 155 | } 156 | 157 | module _Builtin_stddef_max_align_t [system] [extern_c] { 158 | header "__stddef_max_align_t.h" 159 | } 160 | 161 | module opencl_c { 162 | requires opencl 163 | header "opencl-c.h" 164 | } 165 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/mwaitxintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- mwaitxintrin.h - MONITORX/MWAITX intrinsics ----------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __X86INTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef _MWAITXINTRIN_H 29 | #define _MWAITXINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("mwaitx"))) 33 | static __inline__ void __DEFAULT_FN_ATTRS 34 | _mm_monitorx(void const * __p, unsigned __extensions, unsigned __hints) 35 | { 36 | __builtin_ia32_monitorx((void *)__p, __extensions, __hints); 37 | } 38 | 39 | static __inline__ void __DEFAULT_FN_ATTRS 40 | _mm_mwaitx(unsigned __extensions, unsigned __hints, unsigned __clock) 41 | { 42 | __builtin_ia32_mwaitx(__extensions, __hints, __clock); 43 | } 44 | 45 | #undef __DEFAULT_FN_ATTRS 46 | 47 | #endif /* _MWAITXINTRIN_H */ 48 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/nmmintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- nmmintrin.h - SSE4 intrinsics ------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef _NMMINTRIN_H 25 | #define _NMMINTRIN_H 26 | 27 | /* To match expectations of gcc we put the sse4.2 definitions into smmintrin.h, 28 | just include it now then. */ 29 | #include 30 | #endif /* _NMMINTRIN_H */ 31 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/pkuintrin.h: -------------------------------------------------------------------------------- 1 | /*===------------- pkuintrin.h - PKU intrinsics ------------------=== 2 | * 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy 5 | * of this software and associated documentation files (the "Software"), to deal 6 | * in the Software without restriction, including without limitation the rights 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | * copies of the Software, and to permit persons to whom the Software is 9 | * furnished to do so, subject to the following conditions: 10 | * 11 | * The above copyright notice and this permission notice shall be included in 12 | * all copies or substantial portions of the Software. 13 | * 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | * THE SOFTWARE. 21 | * 22 | *===-----------------------------------------------------------------------=== 23 | */ 24 | #ifndef __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __PKUINTRIN_H 29 | #define __PKUINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("pku"))) 33 | 34 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 35 | _rdpkru_u32(void) 36 | { 37 | return __builtin_ia32_rdpkru(); 38 | } 39 | 40 | static __inline__ void __DEFAULT_FN_ATTRS 41 | _wrpkru(unsigned int __val) 42 | { 43 | return __builtin_ia32_wrpkru(__val); 44 | } 45 | 46 | #undef __DEFAULT_FN_ATTRS 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/popcntintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- popcntintrin.h - POPCNT intrinsics -------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef _POPCNTINTRIN_H 25 | #define _POPCNTINTRIN_H 26 | 27 | /* Define the default attributes for the functions in this file. */ 28 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("popcnt"))) 29 | 30 | /// \brief Counts the number of bits in the source operand having a value of 1. 31 | /// 32 | /// \headerfile 33 | /// 34 | /// This intrinsic corresponds to the \c POPCNT instruction. 35 | /// 36 | /// \param __A 37 | /// An unsigned 32-bit integer operand. 38 | /// \returns A 32-bit integer containing the number of bits with value 1 in the 39 | /// source operand. 40 | static __inline__ int __DEFAULT_FN_ATTRS 41 | _mm_popcnt_u32(unsigned int __A) 42 | { 43 | return __builtin_popcount(__A); 44 | } 45 | 46 | /// \brief Counts the number of bits in the source operand having a value of 1. 47 | /// 48 | /// \headerfile 49 | /// 50 | /// This intrinsic corresponds to the \c POPCNT instruction. 51 | /// 52 | /// \param __A 53 | /// A signed 32-bit integer operand. 54 | /// \returns A 32-bit integer containing the number of bits with value 1 in the 55 | /// source operand. 56 | static __inline__ int __DEFAULT_FN_ATTRS 57 | _popcnt32(int __A) 58 | { 59 | return __builtin_popcount(__A); 60 | } 61 | 62 | #ifdef __x86_64__ 63 | /// \brief Counts the number of bits in the source operand having a value of 1. 64 | /// 65 | /// \headerfile 66 | /// 67 | /// This intrinsic corresponds to the \c POPCNT instruction. 68 | /// 69 | /// \param __A 70 | /// An unsigned 64-bit integer operand. 71 | /// \returns A 64-bit integer containing the number of bits with value 1 in the 72 | /// source operand. 73 | static __inline__ long long __DEFAULT_FN_ATTRS 74 | _mm_popcnt_u64(unsigned long long __A) 75 | { 76 | return __builtin_popcountll(__A); 77 | } 78 | 79 | /// \brief Counts the number of bits in the source operand having a value of 1. 80 | /// 81 | /// \headerfile 82 | /// 83 | /// This intrinsic corresponds to the \c POPCNT instruction. 84 | /// 85 | /// \param __A 86 | /// A signed 64-bit integer operand. 87 | /// \returns A 64-bit integer containing the number of bits with value 1 in the 88 | /// source operand. 89 | static __inline__ long long __DEFAULT_FN_ATTRS 90 | _popcnt64(long long __A) 91 | { 92 | return __builtin_popcountll(__A); 93 | } 94 | #endif /* __x86_64__ */ 95 | 96 | #undef __DEFAULT_FN_ATTRS 97 | 98 | #endif /* _POPCNTINTRIN_H */ 99 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/prfchwintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- prfchwintrin.h - PREFETCHW intrinsic -----------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #if !defined(__X86INTRIN_H) && !defined(_MM3DNOW_H_INCLUDED) 25 | #error "Never use directly; include or instead." 26 | #endif 27 | 28 | #ifndef __PRFCHWINTRIN_H 29 | #define __PRFCHWINTRIN_H 30 | 31 | #if defined(__PRFCHW__) || defined(__3dNOW__) 32 | static __inline__ void __attribute__((__always_inline__, __nodebug__)) 33 | _m_prefetch(void *__P) 34 | { 35 | __builtin_prefetch (__P, 0, 3 /* _MM_HINT_T0 */); 36 | } 37 | 38 | static __inline__ void __attribute__((__always_inline__, __nodebug__)) 39 | _m_prefetchw(void *__P) 40 | { 41 | __builtin_prefetch (__P, 1, 3 /* _MM_HINT_T0 */); 42 | } 43 | #endif 44 | 45 | #endif /* __PRFCHWINTRIN_H */ 46 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/rdseedintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- rdseedintrin.h - RDSEED intrinsics -------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __X86INTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __RDSEEDINTRIN_H 29 | #define __RDSEEDINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("rdseed"))) 33 | 34 | static __inline__ int __DEFAULT_FN_ATTRS 35 | _rdseed16_step(unsigned short *__p) 36 | { 37 | return __builtin_ia32_rdseed16_step(__p); 38 | } 39 | 40 | static __inline__ int __DEFAULT_FN_ATTRS 41 | _rdseed32_step(unsigned int *__p) 42 | { 43 | return __builtin_ia32_rdseed32_step(__p); 44 | } 45 | 46 | #ifdef __x86_64__ 47 | static __inline__ int __DEFAULT_FN_ATTRS 48 | _rdseed64_step(unsigned long long *__p) 49 | { 50 | return __builtin_ia32_rdseed64_step(__p); 51 | } 52 | #endif 53 | 54 | #undef __DEFAULT_FN_ATTRS 55 | 56 | #endif /* __RDSEEDINTRIN_H */ 57 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/rtmintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- rtmintrin.h - RTM intrinsics -------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __RTMINTRIN_H 29 | #define __RTMINTRIN_H 30 | 31 | #define _XBEGIN_STARTED (~0u) 32 | #define _XABORT_EXPLICIT (1 << 0) 33 | #define _XABORT_RETRY (1 << 1) 34 | #define _XABORT_CONFLICT (1 << 2) 35 | #define _XABORT_CAPACITY (1 << 3) 36 | #define _XABORT_DEBUG (1 << 4) 37 | #define _XABORT_NESTED (1 << 5) 38 | #define _XABORT_CODE(x) (((x) >> 24) & 0xFF) 39 | 40 | /* Define the default attributes for the functions in this file. */ 41 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("rtm"))) 42 | 43 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 44 | _xbegin(void) 45 | { 46 | return __builtin_ia32_xbegin(); 47 | } 48 | 49 | static __inline__ void __DEFAULT_FN_ATTRS 50 | _xend(void) 51 | { 52 | __builtin_ia32_xend(); 53 | } 54 | 55 | #define _xabort(imm) __builtin_ia32_xabort((imm)) 56 | 57 | #undef __DEFAULT_FN_ATTRS 58 | 59 | #endif /* __RTMINTRIN_H */ 60 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/s390intrin.h: -------------------------------------------------------------------------------- 1 | /*===---- s390intrin.h - SystemZ intrinsics --------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __S390INTRIN_H 25 | #define __S390INTRIN_H 26 | 27 | #ifndef __s390__ 28 | #error " is for s390 only" 29 | #endif 30 | 31 | #ifdef __HTM__ 32 | #include 33 | #endif 34 | 35 | #ifdef __VEC__ 36 | #include 37 | #endif 38 | 39 | #endif /* __S390INTRIN_H*/ 40 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/shaintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- shaintrin.h - SHA intrinsics -------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __SHAINTRIN_H 29 | #define __SHAINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("sha"))) 33 | 34 | #define _mm_sha1rnds4_epu32(V1, V2, M) __extension__ ({ \ 35 | __builtin_ia32_sha1rnds4((__v4si)(__m128i)(V1), (__v4si)(__m128i)(V2), (M)); }) 36 | 37 | static __inline__ __m128i __DEFAULT_FN_ATTRS 38 | _mm_sha1nexte_epu32(__m128i __X, __m128i __Y) 39 | { 40 | return (__m128i)__builtin_ia32_sha1nexte((__v4si)__X, (__v4si)__Y); 41 | } 42 | 43 | static __inline__ __m128i __DEFAULT_FN_ATTRS 44 | _mm_sha1msg1_epu32(__m128i __X, __m128i __Y) 45 | { 46 | return (__m128i)__builtin_ia32_sha1msg1((__v4si)__X, (__v4si)__Y); 47 | } 48 | 49 | static __inline__ __m128i __DEFAULT_FN_ATTRS 50 | _mm_sha1msg2_epu32(__m128i __X, __m128i __Y) 51 | { 52 | return (__m128i)__builtin_ia32_sha1msg2((__v4si)__X, (__v4si)__Y); 53 | } 54 | 55 | static __inline__ __m128i __DEFAULT_FN_ATTRS 56 | _mm_sha256rnds2_epu32(__m128i __X, __m128i __Y, __m128i __Z) 57 | { 58 | return (__m128i)__builtin_ia32_sha256rnds2((__v4si)__X, (__v4si)__Y, (__v4si)__Z); 59 | } 60 | 61 | static __inline__ __m128i __DEFAULT_FN_ATTRS 62 | _mm_sha256msg1_epu32(__m128i __X, __m128i __Y) 63 | { 64 | return (__m128i)__builtin_ia32_sha256msg1((__v4si)__X, (__v4si)__Y); 65 | } 66 | 67 | static __inline__ __m128i __DEFAULT_FN_ATTRS 68 | _mm_sha256msg2_epu32(__m128i __X, __m128i __Y) 69 | { 70 | return (__m128i)__builtin_ia32_sha256msg2((__v4si)__X, (__v4si)__Y); 71 | } 72 | 73 | #undef __DEFAULT_FN_ATTRS 74 | 75 | #endif /* __SHAINTRIN_H */ 76 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/stdalign.h: -------------------------------------------------------------------------------- 1 | /*===---- stdalign.h - Standard header for alignment ------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __STDALIGN_H 25 | #define __STDALIGN_H 26 | 27 | #ifndef __cplusplus 28 | #define alignas _Alignas 29 | #define alignof _Alignof 30 | #endif 31 | 32 | #define __alignas_is_defined 1 33 | #define __alignof_is_defined 1 34 | 35 | #endif /* __STDALIGN_H */ 36 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/stdarg.h: -------------------------------------------------------------------------------- 1 | /*===---- stdarg.h - Variable argument handling ----------------------------=== 2 | * 3 | * Copyright (c) 2008 Eli Friedman 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | * 23 | *===-----------------------------------------------------------------------=== 24 | */ 25 | 26 | #ifndef __STDARG_H 27 | #define __STDARG_H 28 | 29 | #ifndef _VA_LIST 30 | typedef __builtin_va_list va_list; 31 | #define _VA_LIST 32 | #endif 33 | #define va_start(ap, param) __builtin_va_start(ap, param) 34 | #define va_end(ap) __builtin_va_end(ap) 35 | #define va_arg(ap, type) __builtin_va_arg(ap, type) 36 | 37 | /* GCC always defines __va_copy, but does not define va_copy unless in c99 mode 38 | * or -ansi is not specified, since it was not part of C90. 39 | */ 40 | #define __va_copy(d,s) __builtin_va_copy(d,s) 41 | 42 | #if __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L || !defined(__STRICT_ANSI__) 43 | #define va_copy(dest, src) __builtin_va_copy(dest, src) 44 | #endif 45 | 46 | /* Hack required to make standard headers work, at least on Ubuntu */ 47 | #ifndef __GNUC_VA_LIST 48 | #define __GNUC_VA_LIST 1 49 | #endif 50 | typedef __builtin_va_list __gnuc_va_list; 51 | 52 | #endif /* __STDARG_H */ 53 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/stdbool.h: -------------------------------------------------------------------------------- 1 | /*===---- stdbool.h - Standard header for booleans -------------------------=== 2 | * 3 | * Copyright (c) 2008 Eli Friedman 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | * 23 | *===-----------------------------------------------------------------------=== 24 | */ 25 | 26 | #ifndef __STDBOOL_H 27 | #define __STDBOOL_H 28 | 29 | /* Don't define bool, true, and false in C++, except as a GNU extension. */ 30 | #ifndef __cplusplus 31 | #define bool _Bool 32 | #define true 1 33 | #define false 0 34 | #elif defined(__GNUC__) && !defined(__STRICT_ANSI__) 35 | /* Define _Bool, bool, false, true as a GNU extension. */ 36 | #define _Bool bool 37 | #define bool bool 38 | #define false false 39 | #define true true 40 | #endif 41 | 42 | #define __bool_true_false_are_defined 1 43 | 44 | #endif /* __STDBOOL_H */ 45 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/stddef.h: -------------------------------------------------------------------------------- 1 | /*===---- stddef.h - Basic type definitions --------------------------------=== 2 | * 3 | * Copyright (c) 2008 Eli Friedman 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | * 23 | *===-----------------------------------------------------------------------=== 24 | */ 25 | 26 | #if !defined(__STDDEF_H) || defined(__need_ptrdiff_t) || \ 27 | defined(__need_size_t) || defined(__need_wchar_t) || \ 28 | defined(__need_NULL) || defined(__need_wint_t) 29 | 30 | #if !defined(__need_ptrdiff_t) && !defined(__need_size_t) && \ 31 | !defined(__need_wchar_t) && !defined(__need_NULL) && \ 32 | !defined(__need_wint_t) 33 | /* Always define miscellaneous pieces when modules are available. */ 34 | #if !__has_feature(modules) 35 | #define __STDDEF_H 36 | #endif 37 | #define __need_ptrdiff_t 38 | #define __need_size_t 39 | #define __need_wchar_t 40 | #define __need_NULL 41 | #define __need_STDDEF_H_misc 42 | /* __need_wint_t is intentionally not defined here. */ 43 | #endif 44 | 45 | #if defined(__need_ptrdiff_t) 46 | #if !defined(_PTRDIFF_T) || __has_feature(modules) 47 | /* Always define ptrdiff_t when modules are available. */ 48 | #if !__has_feature(modules) 49 | #define _PTRDIFF_T 50 | #endif 51 | typedef __PTRDIFF_TYPE__ ptrdiff_t; 52 | #endif 53 | #undef __need_ptrdiff_t 54 | #endif /* defined(__need_ptrdiff_t) */ 55 | 56 | #if defined(__need_size_t) 57 | #if !defined(_SIZE_T) || __has_feature(modules) 58 | /* Always define size_t when modules are available. */ 59 | #if !__has_feature(modules) 60 | #define _SIZE_T 61 | #endif 62 | typedef __SIZE_TYPE__ size_t; 63 | #endif 64 | #undef __need_size_t 65 | #endif /*defined(__need_size_t) */ 66 | 67 | #if defined(__need_STDDEF_H_misc) 68 | /* ISO9899:2011 7.20 (C11 Annex K): Define rsize_t if __STDC_WANT_LIB_EXT1__ is 69 | * enabled. */ 70 | #if (defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ >= 1 && \ 71 | !defined(_RSIZE_T)) || __has_feature(modules) 72 | /* Always define rsize_t when modules are available. */ 73 | #if !__has_feature(modules) 74 | #define _RSIZE_T 75 | #endif 76 | typedef __SIZE_TYPE__ rsize_t; 77 | #endif 78 | #endif /* defined(__need_STDDEF_H_misc) */ 79 | 80 | #if defined(__need_wchar_t) 81 | #ifndef __cplusplus 82 | /* Always define wchar_t when modules are available. */ 83 | #if !defined(_WCHAR_T) || __has_feature(modules) 84 | #if !__has_feature(modules) 85 | #define _WCHAR_T 86 | #if defined(_MSC_EXTENSIONS) 87 | #define _WCHAR_T_DEFINED 88 | #endif 89 | #endif 90 | typedef __WCHAR_TYPE__ wchar_t; 91 | #endif 92 | #endif 93 | #undef __need_wchar_t 94 | #endif /* defined(__need_wchar_t) */ 95 | 96 | #if defined(__need_NULL) 97 | #undef NULL 98 | #ifdef __cplusplus 99 | # if !defined(__MINGW32__) && !defined(_MSC_VER) 100 | # define NULL __null 101 | # else 102 | # define NULL 0 103 | # endif 104 | #else 105 | # define NULL ((void*)0) 106 | #endif 107 | #ifdef __cplusplus 108 | #if defined(_MSC_EXTENSIONS) && defined(_NATIVE_NULLPTR_SUPPORTED) 109 | namespace std { typedef decltype(nullptr) nullptr_t; } 110 | using ::std::nullptr_t; 111 | #endif 112 | #endif 113 | #undef __need_NULL 114 | #endif /* defined(__need_NULL) */ 115 | 116 | #if defined(__need_STDDEF_H_misc) 117 | #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L 118 | #include "__stddef_max_align_t.h" 119 | #endif 120 | #define offsetof(t, d) __builtin_offsetof(t, d) 121 | #undef __need_STDDEF_H_misc 122 | #endif /* defined(__need_STDDEF_H_misc) */ 123 | 124 | /* Some C libraries expect to see a wint_t here. Others (notably MinGW) will use 125 | __WINT_TYPE__ directly; accommodate both by requiring __need_wint_t */ 126 | #if defined(__need_wint_t) 127 | /* Always define wint_t when modules are available. */ 128 | #if !defined(_WINT_T) || __has_feature(modules) 129 | #if !__has_feature(modules) 130 | #define _WINT_T 131 | #endif 132 | typedef __WINT_TYPE__ wint_t; 133 | #endif 134 | #undef __need_wint_t 135 | #endif /* __need_wint_t */ 136 | 137 | #endif 138 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/stdnoreturn.h: -------------------------------------------------------------------------------- 1 | /*===---- stdnoreturn.h - Standard header for noreturn macro ---------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __STDNORETURN_H 25 | #define __STDNORETURN_H 26 | 27 | #define noreturn _Noreturn 28 | #define __noreturn_is_defined 1 29 | 30 | #endif /* __STDNORETURN_H */ 31 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/tbmintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- tbmintrin.h - TBM intrinsics -------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __X86INTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __TBMINTRIN_H 29 | #define __TBMINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("tbm"))) 33 | 34 | #define __bextri_u32(a, b) \ 35 | ((unsigned int)__builtin_ia32_bextri_u32((unsigned int)(a), \ 36 | (unsigned int)(b))) 37 | 38 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 39 | __blcfill_u32(unsigned int __a) 40 | { 41 | return __a & (__a + 1); 42 | } 43 | 44 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 45 | __blci_u32(unsigned int __a) 46 | { 47 | return __a | ~(__a + 1); 48 | } 49 | 50 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 51 | __blcic_u32(unsigned int __a) 52 | { 53 | return ~__a & (__a + 1); 54 | } 55 | 56 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 57 | __blcmsk_u32(unsigned int __a) 58 | { 59 | return __a ^ (__a + 1); 60 | } 61 | 62 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 63 | __blcs_u32(unsigned int __a) 64 | { 65 | return __a | (__a + 1); 66 | } 67 | 68 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 69 | __blsfill_u32(unsigned int __a) 70 | { 71 | return __a | (__a - 1); 72 | } 73 | 74 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 75 | __blsic_u32(unsigned int __a) 76 | { 77 | return ~__a | (__a - 1); 78 | } 79 | 80 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 81 | __t1mskc_u32(unsigned int __a) 82 | { 83 | return ~__a | (__a + 1); 84 | } 85 | 86 | static __inline__ unsigned int __DEFAULT_FN_ATTRS 87 | __tzmsk_u32(unsigned int __a) 88 | { 89 | return ~__a & (__a - 1); 90 | } 91 | 92 | #ifdef __x86_64__ 93 | #define __bextri_u64(a, b) \ 94 | ((unsigned long long)__builtin_ia32_bextri_u64((unsigned long long)(a), \ 95 | (unsigned long long)(b))) 96 | 97 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 98 | __blcfill_u64(unsigned long long __a) 99 | { 100 | return __a & (__a + 1); 101 | } 102 | 103 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 104 | __blci_u64(unsigned long long __a) 105 | { 106 | return __a | ~(__a + 1); 107 | } 108 | 109 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 110 | __blcic_u64(unsigned long long __a) 111 | { 112 | return ~__a & (__a + 1); 113 | } 114 | 115 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 116 | __blcmsk_u64(unsigned long long __a) 117 | { 118 | return __a ^ (__a + 1); 119 | } 120 | 121 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 122 | __blcs_u64(unsigned long long __a) 123 | { 124 | return __a | (__a + 1); 125 | } 126 | 127 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 128 | __blsfill_u64(unsigned long long __a) 129 | { 130 | return __a | (__a - 1); 131 | } 132 | 133 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 134 | __blsic_u64(unsigned long long __a) 135 | { 136 | return ~__a | (__a - 1); 137 | } 138 | 139 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 140 | __t1mskc_u64(unsigned long long __a) 141 | { 142 | return ~__a | (__a + 1); 143 | } 144 | 145 | static __inline__ unsigned long long __DEFAULT_FN_ATTRS 146 | __tzmsk_u64(unsigned long long __a) 147 | { 148 | return ~__a & (__a - 1); 149 | } 150 | #endif 151 | 152 | #undef __DEFAULT_FN_ATTRS 153 | 154 | #endif /* __TBMINTRIN_H */ 155 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/vadefs.h: -------------------------------------------------------------------------------- 1 | /* ===-------- vadefs.h ---------------------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | /* Only include this if we are aiming for MSVC compatibility. */ 25 | #ifndef _MSC_VER 26 | #include_next 27 | #else 28 | 29 | #ifndef __clang_vadefs_h 30 | #define __clang_vadefs_h 31 | 32 | #include_next 33 | 34 | /* Override macros from vadefs.h with definitions that work with Clang. */ 35 | #ifdef _crt_va_start 36 | #undef _crt_va_start 37 | #define _crt_va_start(ap, param) __builtin_va_start(ap, param) 38 | #endif 39 | #ifdef _crt_va_end 40 | #undef _crt_va_end 41 | #define _crt_va_end(ap) __builtin_va_end(ap) 42 | #endif 43 | #ifdef _crt_va_arg 44 | #undef _crt_va_arg 45 | #define _crt_va_arg(ap, type) __builtin_va_arg(ap, type) 46 | #endif 47 | 48 | /* VS 2015 switched to double underscore names, which is an improvement, but now 49 | * we have to intercept those names too. 50 | */ 51 | #ifdef __crt_va_start 52 | #undef __crt_va_start 53 | #define __crt_va_start(ap, param) __builtin_va_start(ap, param) 54 | #endif 55 | #ifdef __crt_va_end 56 | #undef __crt_va_end 57 | #define __crt_va_end(ap) __builtin_va_end(ap) 58 | #endif 59 | #ifdef __crt_va_arg 60 | #undef __crt_va_arg 61 | #define __crt_va_arg(ap, type) __builtin_va_arg(ap, type) 62 | #endif 63 | 64 | #endif 65 | #endif 66 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/varargs.h: -------------------------------------------------------------------------------- 1 | /*===---- varargs.h - Variable argument handling -------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | #ifndef __VARARGS_H 24 | #define __VARARGS_H 25 | #error "Please use instead of " 26 | #endif 27 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/wmmintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- wmmintrin.h - AES intrinsics ------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef _WMMINTRIN_H 25 | #define _WMMINTRIN_H 26 | 27 | #include 28 | 29 | #include <__wmmintrin_aes.h> 30 | 31 | #include <__wmmintrin_pclmul.h> 32 | 33 | #endif /* _WMMINTRIN_H */ 34 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/x86intrin.h: -------------------------------------------------------------------------------- 1 | /*===---- x86intrin.h - X86 intrinsics -------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __X86INTRIN_H 25 | #define __X86INTRIN_H 26 | 27 | #include 28 | 29 | #include 30 | 31 | #if !defined(_MSC_VER) || __has_feature(modules) || defined(__3dNOW__) 32 | #include 33 | #endif 34 | 35 | #if !defined(_MSC_VER) || __has_feature(modules) || defined(__BMI__) 36 | #include 37 | #endif 38 | 39 | #if !defined(_MSC_VER) || __has_feature(modules) || defined(__BMI2__) 40 | #include 41 | #endif 42 | 43 | #if !defined(_MSC_VER) || __has_feature(modules) || defined(__LZCNT__) 44 | #include 45 | #endif 46 | 47 | #if !defined(_MSC_VER) || __has_feature(modules) || defined(__POPCNT__) 48 | #include 49 | #endif 50 | 51 | #if !defined(_MSC_VER) || __has_feature(modules) || defined(__RDSEED__) 52 | #include 53 | #endif 54 | 55 | #if !defined(_MSC_VER) || __has_feature(modules) || defined(__PRFCHW__) 56 | #include 57 | #endif 58 | 59 | #if !defined(_MSC_VER) || __has_feature(modules) || defined(__SSE4A__) 60 | #include 61 | #endif 62 | 63 | #if !defined(_MSC_VER) || __has_feature(modules) || defined(__FMA4__) 64 | #include 65 | #endif 66 | 67 | #if !defined(_MSC_VER) || __has_feature(modules) || defined(__XOP__) 68 | #include 69 | #endif 70 | 71 | #if !defined(_MSC_VER) || __has_feature(modules) || defined(__TBM__) 72 | #include 73 | #endif 74 | 75 | #if !defined(_MSC_VER) || __has_feature(modules) || defined(__F16C__) 76 | #include 77 | #endif 78 | 79 | #if !defined(_MSC_VER) || __has_feature(modules) || defined(__MWAITX__) 80 | #include 81 | #endif 82 | 83 | /* FIXME: LWP */ 84 | 85 | #endif /* __X86INTRIN_H */ 86 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/xsavecintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- xsavecintrin.h - XSAVEC intrinsic ------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __XSAVECINTRIN_H 29 | #define __XSAVECINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("xsavec"))) 33 | 34 | static __inline__ void __DEFAULT_FN_ATTRS 35 | _xsavec(void *__p, unsigned long long __m) { 36 | __builtin_ia32_xsavec(__p, __m); 37 | } 38 | 39 | #ifdef __x86_64__ 40 | static __inline__ void __DEFAULT_FN_ATTRS 41 | _xsavec64(void *__p, unsigned long long __m) { 42 | __builtin_ia32_xsavec64(__p, __m); 43 | } 44 | #endif 45 | 46 | #undef __DEFAULT_FN_ATTRS 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/xsaveintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- xsaveintrin.h - XSAVE intrinsic ------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __XSAVEINTRIN_H 29 | #define __XSAVEINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("xsave"))) 33 | 34 | static __inline__ void __DEFAULT_FN_ATTRS 35 | _xsave(void *__p, unsigned long long __m) { 36 | return __builtin_ia32_xsave(__p, __m); 37 | } 38 | 39 | static __inline__ void __DEFAULT_FN_ATTRS 40 | _xrstor(void *__p, unsigned long long __m) { 41 | return __builtin_ia32_xrstor(__p, __m); 42 | } 43 | 44 | #ifdef __x86_64__ 45 | static __inline__ void __DEFAULT_FN_ATTRS 46 | _xsave64(void *__p, unsigned long long __m) { 47 | return __builtin_ia32_xsave64(__p, __m); 48 | } 49 | 50 | static __inline__ void __DEFAULT_FN_ATTRS 51 | _xrstor64(void *__p, unsigned long long __m) { 52 | return __builtin_ia32_xrstor64(__p, __m); 53 | } 54 | #endif 55 | 56 | #undef __DEFAULT_FN_ATTRS 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/xsaveoptintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- xsaveoptintrin.h - XSAVEOPT intrinsic ------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __XSAVEOPTINTRIN_H 29 | #define __XSAVEOPTINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("xsaveopt"))) 33 | 34 | static __inline__ void __DEFAULT_FN_ATTRS 35 | _xsaveopt(void *__p, unsigned long long __m) { 36 | return __builtin_ia32_xsaveopt(__p, __m); 37 | } 38 | 39 | #ifdef __x86_64__ 40 | static __inline__ void __DEFAULT_FN_ATTRS 41 | _xsaveopt64(void *__p, unsigned long long __m) { 42 | return __builtin_ia32_xsaveopt64(__p, __m); 43 | } 44 | #endif 45 | 46 | #undef __DEFAULT_FN_ATTRS 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/xsavesintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- xsavesintrin.h - XSAVES intrinsic ------------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __XSAVESINTRIN_H 29 | #define __XSAVESINTRIN_H 30 | 31 | /* Define the default attributes for the functions in this file. */ 32 | #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("xsaves"))) 33 | 34 | static __inline__ void __DEFAULT_FN_ATTRS 35 | _xsaves(void *__p, unsigned long long __m) { 36 | __builtin_ia32_xsaves(__p, __m); 37 | } 38 | 39 | static __inline__ void __DEFAULT_FN_ATTRS 40 | _xrstors(void *__p, unsigned long long __m) { 41 | __builtin_ia32_xrstors(__p, __m); 42 | } 43 | 44 | #ifdef __x86_64__ 45 | static __inline__ void __DEFAULT_FN_ATTRS 46 | _xrstors64(void *__p, unsigned long long __m) { 47 | __builtin_ia32_xrstors64(__p, __m); 48 | } 49 | 50 | static __inline__ void __DEFAULT_FN_ATTRS 51 | _xsaves64(void *__p, unsigned long long __m) { 52 | __builtin_ia32_xsaves64(__p, __m); 53 | } 54 | #endif 55 | 56 | #undef __DEFAULT_FN_ATTRS 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /platforms/ios/internal/metadata-generator/lib/clang/3.9.0/include/xtestintrin.h: -------------------------------------------------------------------------------- 1 | /*===---- xtestintrin.h - XTEST intrinsic ---------------------------------=== 2 | * 3 | * Permission is hereby granted, free of charge, to any person obtaining a copy 4 | * of this software and associated documentation files (the "Software"), to deal 5 | * in the Software without restriction, including without limitation the rights 6 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | * copies of the Software, and to permit persons to whom the Software is 8 | * furnished to do so, subject to the following conditions: 9 | * 10 | * The above copyright notice and this permission notice shall be included in 11 | * all copies or substantial portions of the Software. 12 | * 13 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | * THE SOFTWARE. 20 | * 21 | *===-----------------------------------------------------------------------=== 22 | */ 23 | 24 | #ifndef __IMMINTRIN_H 25 | #error "Never use directly; include instead." 26 | #endif 27 | 28 | #ifndef __XTESTINTRIN_H 29 | #define __XTESTINTRIN_H 30 | 31 | /* xtest returns non-zero if the instruction is executed within an RTM or active 32 | * HLE region. */ 33 | /* FIXME: This can be an either or for RTM/HLE. Deal with this when HLE is 34 | * supported. */ 35 | static __inline__ int 36 | __attribute__((__always_inline__, __nodebug__, __target__("rtm"))) 37 | _xtest(void) { 38 | return __builtin_ia32_xtest(); 39 | } 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /platforms/ios/internal/nativescript-build.xcconfig: -------------------------------------------------------------------------------- 1 | // * NativeScript build related flags 2 | // * Add [sdk=*] after each one to avoid conflict with CocoaPods flags 3 | HEADER_SEARCH_PATHS[sdk=*] = $(inherited) "$(SRCROOT)/internal" 4 | OTHER_LDFLAGS[sdk=*] = $(inherited) -ObjC -sectcreate __DATA __TNSMetadata "$(CONFIGURATION_BUILD_DIR)/metadata-$(CURRENT_ARCH).bin" -framework NativeScript -F"$(SRCROOT)/internal" -licucore -lz -lc++ -framework Foundation -framework UIKit -framework CoreGraphics -framework MobileCoreServices -framework Security 5 | 6 | // TODO: Move this to the CLI 7 | OTHER_LDFLAGS[config=Debug] = $(inherited) -framework TKLiveSync -F$(SRCROOT)/internal/ 8 | 9 | // We need to add CONFIGURATION_BUILD_DIR here so that we can explicitly quote-escape any paths in it, because the implicitly added path by Xcode is not always escaped 10 | FRAMEWORK_SEARCH_PATHS[sdk=*] = $(inherited) "$(SRCROOT)/internal/" "$(SRCROOT)/../../lib/iOS" "$(CONFIGURATION_BUILD_DIR)" 11 | 12 | // * Uncomment this setting to generate TypeScript declarations for the iOS SDK and all linked libraries. 13 | // * They will be generated on each build, so you can find them after running "tns build ios" in "YOUR_APP/platforms/ios". 14 | // TNS_TYPESCRIPT_DECLARATIONS_PATH = $(SRCROOT)/typescript-declarations 15 | 16 | // * Uncomment this setting to generate human readable metadata for the iOS SDK and all linked libraries. 17 | // * You can learn more about NativeScript metadata in the docs: http://docs.nativescript.org/runtimes/ios/Overview#metadata 18 | // * It will be generated on each build, so you can find it after running "tns build ios" in "YOUR_APP/platforms/ios". 19 | // TNS_DEBUG_METADATA_PATH = $(SRCROOT)/debug-metadata 20 | -------------------------------------------------------------------------------- /platforms/ios/internal/nativescript-post-build: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -e 3 | 4 | # TODO: Move this to the CLI 5 | if [ $CONFIGURATION = "Debug" ]; then 6 | rsync -a "${SRCROOT}/internal/TKLiveSync.framework" "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}" 7 | else 8 | # The CLI is using the same folder for Debug and Release builds :( 9 | rm -rf "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/TKLiveSync.framework" 10 | fi 11 | 12 | rsync -a "${SRCROOT}/internal/NativeScript.framework" "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | 14 | pushd "$SRCROOT/internal" 15 | ./strip-dynamic-framework-architectures.sh 16 | popd 17 | -------------------------------------------------------------------------------- /platforms/ios/internal/nativescript-pre-build: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -e 3 | 4 | pushd "$SRCROOT/internal/metadata-generator/bin" 5 | ./metadata-generation-build-step 6 | popd 7 | -------------------------------------------------------------------------------- /platforms/ios/internal/nativescript-pre-link: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -e -------------------------------------------------------------------------------- /platforms/ios/internal/strip-dynamic-framework-architectures.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ################################################################################ 4 | # 5 | # Copyright 2015 Realm Inc. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | # 19 | ################################################################################ 20 | 21 | # This script strips all non-valid architectures from dynamic libraries in 22 | # the application's `Frameworks` directory. 23 | # 24 | # The following environment variables are required: 25 | # 26 | # BUILT_PRODUCTS_DIR 27 | # FRAMEWORKS_FOLDER_PATH 28 | # VALID_ARCHS 29 | # EXPANDED_CODE_SIGN_IDENTITY 30 | 31 | 32 | # Signs a framework with the provided identity 33 | code_sign() { 34 | # Use the current code_sign_identitiy 35 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 36 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1" 37 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" 38 | } 39 | 40 | if [ ! -e "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}" ]; then 41 | exit 0 42 | fi 43 | 44 | echo "Stripping frameworks" 45 | cd "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}" 46 | 47 | for file in $(find . -type f); do 48 | # Skip non-dynamic libraries 49 | if ! [[ "$(file "$file")" == *"dynamically linked shared library"* ]]; then 50 | continue 51 | fi 52 | # Get architectures for current file 53 | archs="$(lipo -info "${file}" | rev | cut -d ':' -f1 | rev)" 54 | stripped="" 55 | for arch in $archs; do 56 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 57 | # Strip non-valid architectures in-place 58 | lipo -remove "$arch" -output "$file" "$file" || exit 1 59 | stripped="$stripped $arch" 60 | fi 61 | done 62 | if [[ "$stripped" != "" ]]; then 63 | echo "Stripped $file of architectures:$stripped" 64 | if [ "${CODE_SIGNING_ALLOWED}" == "YES" ]; then 65 | code_sign "${file}" 66 | fi 67 | fi 68 | done 69 | -------------------------------------------------------------------------------- /platforms/ios/messages.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /platforms/ios/messages.xcodeproj/project.xcworkspace/xcuserdata/koeva.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages.xcodeproj/project.xcworkspace/xcuserdata/koeva.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /platforms/ios/messages.xcodeproj/xcshareddata/xcschemes/messages.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /platforms/ios/messages.xcodeproj/xcuserdata/koeva.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /platforms/ios/messages.xcodeproj/xcuserdata/koeva.xcuserdatad/xcschemes/iMessageTest.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 6 | 9 | 10 | 16 | 22 | 23 | 24 | 30 | 36 | 37 | 38 | 39 | 40 | 45 | 46 | 47 | 48 | 54 | 55 | 56 | 57 | 58 | 59 | 70 | 72 | 78 | 79 | 80 | 81 | 82 | 83 | 90 | 92 | 98 | 99 | 100 | 101 | 103 | 104 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /platforms/ios/messages.xcodeproj/xcuserdata/koeva.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | iMessageTest.xcscheme 8 | 9 | orderHint 10 | 1 11 | 12 | messages.xcscheme_^#shared#^_ 13 | 14 | orderHint 15 | 0 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 51A8A67E1D59FFEC0084F7DF 21 | 22 | primary 23 | 24 | 25 | 858B83EF18CA22B800AB12DE 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "icon-29.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "icon-29@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "icon-29@3x.png", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "icon-40@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "icon-40@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "57x57", 35 | "idiom" : "iphone", 36 | "filename" : "icon-57.png", 37 | "scale" : "1x" 38 | }, 39 | { 40 | "size" : "57x57", 41 | "idiom" : "iphone", 42 | "filename" : "icon-57@2x.png", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "icon-60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "icon-60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "29x29", 59 | "idiom" : "ipad", 60 | "filename" : "icon-29.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "29x29", 65 | "idiom" : "ipad", 66 | "filename" : "icon-29@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "40x40", 71 | "idiom" : "ipad", 72 | "filename" : "icon-40.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "40x40", 77 | "idiom" : "ipad", 78 | "filename" : "icon-40@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "50x50", 83 | "idiom" : "ipad", 84 | "filename" : "icon-50.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "50x50", 89 | "idiom" : "ipad", 90 | "filename" : "icon-50@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "72x72", 95 | "idiom" : "ipad", 96 | "filename" : "icon-72.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "72x72", 101 | "idiom" : "ipad", 102 | "filename" : "icon-72@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "76x76", 107 | "idiom" : "ipad", 108 | "filename" : "icon-76.png", 109 | "scale" : "1x" 110 | }, 111 | { 112 | "size" : "76x76", 113 | "idiom" : "ipad", 114 | "filename" : "icon-76@2x.png", 115 | "scale" : "2x" 116 | }, 117 | { 118 | "size" : "83.5x83.5", 119 | "idiom" : "ipad", 120 | "filename" : "icon-83.5@2x.png", 121 | "scale" : "2x" 122 | } 123 | ], 124 | "info" : { 125 | "version" : 1, 126 | "author" : "xcode" 127 | } 128 | } -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-50.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-57.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-72.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "extent" : "full-screen", 5 | "idiom" : "iphone", 6 | "subtype" : "736h", 7 | "filename" : "Default-736h@3x.png", 8 | "minimum-system-version" : "8.0", 9 | "orientation" : "portrait", 10 | "scale" : "3x" 11 | }, 12 | { 13 | "extent" : "full-screen", 14 | "idiom" : "iphone", 15 | "subtype" : "736h", 16 | "filename" : "Default-Landscape@3x.png", 17 | "minimum-system-version" : "8.0", 18 | "orientation" : "landscape", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "extent" : "full-screen", 23 | "idiom" : "iphone", 24 | "subtype" : "667h", 25 | "filename" : "Default-667h@2x.png", 26 | "minimum-system-version" : "8.0", 27 | "orientation" : "portrait", 28 | "scale" : "2x" 29 | }, 30 | { 31 | "orientation" : "portrait", 32 | "idiom" : "iphone", 33 | "filename" : "Default@2x.png", 34 | "extent" : "full-screen", 35 | "minimum-system-version" : "7.0", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "extent" : "full-screen", 40 | "idiom" : "iphone", 41 | "subtype" : "retina4", 42 | "filename" : "Default-568h@2x.png", 43 | "minimum-system-version" : "7.0", 44 | "orientation" : "portrait", 45 | "scale" : "2x" 46 | }, 47 | { 48 | "orientation" : "portrait", 49 | "idiom" : "ipad", 50 | "filename" : "Default-Portrait.png", 51 | "extent" : "full-screen", 52 | "minimum-system-version" : "7.0", 53 | "scale" : "1x" 54 | }, 55 | { 56 | "orientation" : "landscape", 57 | "idiom" : "ipad", 58 | "filename" : "Default-Landscape.png", 59 | "extent" : "full-screen", 60 | "minimum-system-version" : "7.0", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "orientation" : "portrait", 65 | "idiom" : "ipad", 66 | "filename" : "Default-Portrait@2x.png", 67 | "extent" : "full-screen", 68 | "minimum-system-version" : "7.0", 69 | "scale" : "2x" 70 | }, 71 | { 72 | "orientation" : "landscape", 73 | "idiom" : "ipad", 74 | "filename" : "Default-Landscape@2x.png", 75 | "extent" : "full-screen", 76 | "minimum-system-version" : "7.0", 77 | "scale" : "2x" 78 | }, 79 | { 80 | "orientation" : "portrait", 81 | "idiom" : "iphone", 82 | "filename" : "Default.png", 83 | "extent" : "full-screen", 84 | "scale" : "1x" 85 | }, 86 | { 87 | "orientation" : "portrait", 88 | "idiom" : "iphone", 89 | "filename" : "Default@2x.png", 90 | "extent" : "full-screen", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "orientation" : "portrait", 95 | "idiom" : "iphone", 96 | "filename" : "Default-568h@2x.png", 97 | "extent" : "full-screen", 98 | "subtype" : "retina4", 99 | "scale" : "2x" 100 | }, 101 | { 102 | "orientation" : "portrait", 103 | "idiom" : "ipad", 104 | "extent" : "to-status-bar", 105 | "scale" : "1x" 106 | }, 107 | { 108 | "orientation" : "portrait", 109 | "idiom" : "ipad", 110 | "filename" : "Default-Portrait.png", 111 | "extent" : "full-screen", 112 | "scale" : "1x" 113 | }, 114 | { 115 | "orientation" : "landscape", 116 | "idiom" : "ipad", 117 | "extent" : "to-status-bar", 118 | "scale" : "1x" 119 | }, 120 | { 121 | "orientation" : "landscape", 122 | "idiom" : "ipad", 123 | "filename" : "Default-Landscape.png", 124 | "extent" : "full-screen", 125 | "scale" : "1x" 126 | }, 127 | { 128 | "orientation" : "portrait", 129 | "idiom" : "ipad", 130 | "extent" : "to-status-bar", 131 | "scale" : "2x" 132 | }, 133 | { 134 | "orientation" : "portrait", 135 | "idiom" : "ipad", 136 | "filename" : "Default-Portrait@2x.png", 137 | "extent" : "full-screen", 138 | "scale" : "2x" 139 | }, 140 | { 141 | "orientation" : "landscape", 142 | "idiom" : "ipad", 143 | "extent" : "to-status-bar", 144 | "scale" : "2x" 145 | }, 146 | { 147 | "orientation" : "landscape", 148 | "idiom" : "ipad", 149 | "filename" : "Default-Landscape@2x.png", 150 | "extent" : "full-screen", 151 | "scale" : "2x" 152 | } 153 | ], 154 | "info" : { 155 | "version" : 1, 156 | "author" : "xcode" 157 | } 158 | } -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-AspectFill.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-AspectFill@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-Center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-Center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NativeScript/nativescript-ios-imessages/00fc1a901bd672b2b3aa277e9c46d6a5630df2f6/platforms/ios/messages/Resources/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /platforms/ios/messages/Resources/build.xcconfig: -------------------------------------------------------------------------------- 1 | // You can add custom settings here 2 | // for example you can uncomment the following line to force distribution code signing 3 | // CODE_SIGN_IDENTITY = iPhone Distribution 4 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 5 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 6 | -------------------------------------------------------------------------------- /platforms/ios/messages/app/MessagesMainController.js: -------------------------------------------------------------------------------- 1 | MSMessagesAppViewController.extend({ 2 | viewDidLoad: function() { 3 | this.super.viewDidLoad(); 4 | 5 | let button = UIButton.buttonWithType(UIButtonTypeSystem); 6 | button.setTitleForState("Click here!", UIControlStateNormal); 7 | button.frame = CGRectMake(0, 0, 160.0, 40.0); 8 | button.addTargetActionForControlEvents(this, "tap", UIControlEvents.UIControlEventTouchUpInside) 9 | 10 | this.view.addSubview(button); 11 | }, 12 | tap() { 13 | let layout = MSMessageTemplateLayout.alloc().init(); 14 | layout.caption = "NativeScript rocks !"; 15 | 16 | // create a message and tell it the content and layout 17 | let message = MSMessage.alloc().init(); 18 | message.layout = layout; 19 | 20 | this.activeConversation.insertMessageCompletionHandler(message, null); 21 | }, 22 | didBecomeActiveWithConversation(conversation) { 23 | // Called when the extension is about to move from the inactive to active state. 24 | // This will happen when the extension is about to present UI. 25 | 26 | // Use this method to configure the extension and restore previously stored state. 27 | }, 28 | didReceiveMessageConversation(message, conversatio) { 29 | // Called when a message arrives that was generated by another instance of this 30 | // extension on a remote device. 31 | 32 | // Use this method to trigger UI updates in response to the message. 33 | }, 34 | didStartSendingMessageConversation(message, conversation) { 35 | // Called when the user taps the send button. 36 | } 37 | }, { 38 | 39 | name: "MessagesMainController", 40 | exposedMethods: { 41 | "tap": { 42 | returns: interop.types.void 43 | } 44 | } 45 | }); 46 | -------------------------------------------------------------------------------- /platforms/ios/messages/app/app.js: -------------------------------------------------------------------------------- 1 | var application = require("application"); 2 | application.start({ moduleName: "main-page" }); 3 | -------------------------------------------------------------------------------- /platforms/ios/messages/app/package.json: -------------------------------------------------------------------------------- 1 | {"name":"tns-template-hello-world","main":"app.js","version":"2.1.0","author":{"name":"Telerik","email":"support@telerik.com"},"description":"Nativescript hello-world project template","license":"Apache-2.0","keywords":["telerik","mobile","nativescript","{N}","tns","appbuilder","template"],"repository":{"type":"git","url":"git://github.com/NativeScript/template-hello-world.git"},"bugs":{"url":"https://github.com/NativeScript/template-hello-world/issues"},"homepage":"https://github.com/NativeScript/template-hello-world","android":{"v8Flags":"--expose_gc"},"readme":"ERROR: No README data found!","_id":"tns-template-hello-world@2.1.0","_from":"tns-template-hello-world@2.1.0"} -------------------------------------------------------------------------------- /platforms/ios/messages/app/references.d.ts: -------------------------------------------------------------------------------- 1 | /// Enable smart suggestions and completions in Visual Studio Code JavaScript projects. 2 | -------------------------------------------------------------------------------- /platforms/ios/messages/build-debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "build.xcconfig" 2 | #include "../plugins-debug.xcconfig" 3 | -------------------------------------------------------------------------------- /platforms/ios/messages/build-release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "build.xcconfig" 2 | #include "../plugins-release.xcconfig" 3 | -------------------------------------------------------------------------------- /platforms/ios/messages/build.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../internal/nativescript-build.xcconfig" -------------------------------------------------------------------------------- /platforms/ios/messages/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /platforms/ios/messages/messages-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiresFullScreen 28 | 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | CFBundleIdentifier 47 | org.nativescript.messages 48 | 49 | -------------------------------------------------------------------------------- /platforms/ios/messages/messages-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifdef __OBJC__ 10 | #import 11 | #import 12 | #endif 13 | -------------------------------------------------------------------------------- /platforms/ios/plugins-debug.xcconfig: -------------------------------------------------------------------------------- 1 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 2 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; -------------------------------------------------------------------------------- /platforms/ios/plugins-release.xcconfig: -------------------------------------------------------------------------------- 1 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 2 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; --------------------------------------------------------------------------------