@nativescript/core 9.0.0-next-09-24-2025-17985801416 → 9.0.0-next-10-06-2025-18277360121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/inspector_modules.js +74 -47
- package/inspector_modules.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/include.gradle +51 -0
- package/platforms/android/java/org/nativescript/Process.java +59 -0
- package/platforms/android/java/org/nativescript/widgets/AbsoluteLayout.java +88 -0
- package/platforms/android/java/org/nativescript/widgets/AnimatorHelper.java +61 -0
- package/platforms/android/java/org/nativescript/widgets/Async.java +1356 -0
- package/platforms/android/java/org/nativescript/widgets/BorderDrawable.java +936 -0
- package/platforms/android/java/org/nativescript/widgets/BottomNavigationBar.java +308 -0
- package/platforms/android/java/org/nativescript/widgets/BoxShadowDrawable.java +175 -0
- package/platforms/android/java/org/nativescript/widgets/CSSValue.java +34 -0
- package/platforms/android/java/org/nativescript/widgets/CommonLayoutParams.java +456 -0
- package/platforms/android/java/org/nativescript/widgets/ContentLayout.java +85 -0
- package/platforms/android/java/org/nativescript/widgets/CustomTransition.java +135 -0
- package/platforms/android/java/org/nativescript/widgets/CustomTypefaceSpan.java +44 -0
- package/platforms/android/java/org/nativescript/widgets/Dock.java +15 -0
- package/platforms/android/java/org/nativescript/widgets/DockLayout.java +185 -0
- package/platforms/android/java/org/nativescript/widgets/FileHelper.java +815 -0
- package/platforms/android/java/org/nativescript/widgets/FlexLine.java +177 -0
- package/platforms/android/java/org/nativescript/widgets/FlexboxLayout.java +2769 -0
- package/platforms/android/java/org/nativescript/widgets/FragmentBase.java +14 -0
- package/platforms/android/java/org/nativescript/widgets/GridLayout.java +1172 -0
- package/platforms/android/java/org/nativescript/widgets/GridUnitType.java +10 -0
- package/platforms/android/java/org/nativescript/widgets/HorizontalScrollView.java +256 -0
- package/platforms/android/java/org/nativescript/widgets/ImageView.java +423 -0
- package/platforms/android/java/org/nativescript/widgets/ItemSpec.java +56 -0
- package/platforms/android/java/org/nativescript/widgets/LayoutBase.java +98 -0
- package/platforms/android/java/org/nativescript/widgets/LinearGradientDefinition.java +46 -0
- package/platforms/android/java/org/nativescript/widgets/Orientation.java +9 -0
- package/platforms/android/java/org/nativescript/widgets/OriginPoint.java +74 -0
- package/platforms/android/java/org/nativescript/widgets/ScrollSavedState.java +63 -0
- package/platforms/android/java/org/nativescript/widgets/SegmentedBarColorDrawable.java +27 -0
- package/platforms/android/java/org/nativescript/widgets/StackLayout.java +231 -0
- package/platforms/android/java/org/nativescript/widgets/StyleableTextView.java +50 -0
- package/platforms/android/java/org/nativescript/widgets/TabIconRenderingMode.java +6 -0
- package/platforms/android/java/org/nativescript/widgets/TabItemSpec.java +15 -0
- package/platforms/android/java/org/nativescript/widgets/TabLayout.java +451 -0
- package/platforms/android/java/org/nativescript/widgets/TabStrip.java +294 -0
- package/platforms/android/java/org/nativescript/widgets/TabViewPager.java +64 -0
- package/platforms/android/java/org/nativescript/widgets/TabsBar.java +443 -0
- package/platforms/android/java/org/nativescript/widgets/Utils.java +546 -0
- package/platforms/android/java/org/nativescript/widgets/VerticalScrollView.java +258 -0
- package/platforms/android/java/org/nativescript/widgets/ViewHelper.java +564 -0
- package/platforms/android/java/org/nativescript/widgets/WrapLayout.java +252 -0
- package/platforms/android/java/org/nativescript/widgets/image/AsyncTask.java +679 -0
- package/platforms/android/java/org/nativescript/widgets/image/BitmapOwner.java +17 -0
- package/platforms/android/java/org/nativescript/widgets/image/Cache.java +471 -0
- package/platforms/android/java/org/nativescript/widgets/image/DiskLruCache.java +970 -0
- package/platforms/android/java/org/nativescript/widgets/image/Fetcher.java +747 -0
- package/platforms/android/java/org/nativescript/widgets/image/Utils.java +58 -0
- package/platforms/android/java/org/nativescript/widgets/image/Worker.java +571 -0
- package/platforms/ios/src/TNSWidgets/Info.plist +26 -0
- package/platforms/ios/src/TNSWidgets/NSData+Async.m +42 -0
- package/platforms/ios/src/TNSWidgets/NSFileHandle+Async.m +82 -0
- package/platforms/ios/src/TNSWidgets/NSObject+Swizzling.m +68 -0
- package/platforms/ios/src/TNSWidgets/NSString+Async.m +51 -0
- package/platforms/ios/src/TNSWidgets/TNSLabel.m +42 -0
- package/platforms/ios/src/TNSWidgets/UIImage+TNSBlocks.m +77 -0
- package/platforms/ios/src/TNSWidgets/UIView+PassThroughParent.m +53 -0
- package/platforms/ios/src/TNSWidgets/UIView+PropertyBag.m +72 -0
- package/platforms/ios/src/module.modulemap +5 -0
- package/platforms/android/widgets-release.aar +0 -0
- package/platforms/ios/TNSWidgets.xcframework/Info.plist +0 -102
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +0 -52
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +0 -52
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Resources/Info.plist +0 -52
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +0 -223
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +0 -223
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +0 -82
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +0 -82
- /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/NSData+Async.h +0 -0
- /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/NSFileHandle+Async.h +0 -0
- /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders → src/TNSWidgets}/NSObject+Swizzling.h +0 -0
- /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/NSString+Async.h +0 -0
- /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/TNSLabel.h +0 -0
- /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/TNSWidgets.h +0 -0
- /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/UIImage+TNSBlocks.h +0 -0
- /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers → src/TNSWidgets}/UIView+PassThroughParent.h +0 -0
- /package/platforms/ios/{TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders → src/TNSWidgets}/UIView+PropertyBag.h +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
//
|
|
2
|
+
// NSFileHandle+Async.m
|
|
3
|
+
// TNSWidgets
|
|
4
|
+
//
|
|
5
|
+
// Created by Osei Fortune on 03/05/2023.
|
|
6
|
+
// Copyright © 2023 NativeScript. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "NSFileHandle+Async.h"
|
|
10
|
+
|
|
11
|
+
@implementation NSFileHandle(Async)
|
|
12
|
+
|
|
13
|
+
- (void)appendData:(NSData *)data completion:(void (^)(NSError*))callback {
|
|
14
|
+
dispatch_queue_t asyncQueue = dispatch_queue_create("org.nativescript.TNSWidgets.fileHandle", NULL);
|
|
15
|
+
dispatch_async(asyncQueue, ^(void) {
|
|
16
|
+
NSError *error = nil;
|
|
17
|
+
|
|
18
|
+
if (@available(iOS 13.0, *)) {
|
|
19
|
+
[self seekToEndReturningOffset:nil error:&error];
|
|
20
|
+
[self writeData:data error:&error];
|
|
21
|
+
} else {
|
|
22
|
+
@try {
|
|
23
|
+
[self seekToEndOfFile];
|
|
24
|
+
[self writeData:data];
|
|
25
|
+
} @catch (NSException *exception) {
|
|
26
|
+
|
|
27
|
+
NSMutableDictionary * info = [NSMutableDictionary dictionary];
|
|
28
|
+
[info setValue:exception.name forKey:@"ExceptionName"];
|
|
29
|
+
[info setValue:exception.reason forKey:@"ExceptionReason"];
|
|
30
|
+
[info setValue:exception.callStackReturnAddresses forKey:@"ExceptionCallStackReturnAddresses"];
|
|
31
|
+
[info setValue:exception.callStackSymbols forKey:@"ExceptionCallStackSymbols"];
|
|
32
|
+
[info setValue:exception.userInfo forKey:@"ExceptionUserInfo"];
|
|
33
|
+
|
|
34
|
+
error = [[NSError alloc] initWithDomain:@"" code: 1 userInfo:info];
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
dispatch_async(dispatch_get_main_queue(), ^(void) {
|
|
41
|
+
callback(error);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
+ (void)fileHandleWith:(NSString *)path data:(NSData *)data completion:(void (^)(NSFileHandle*, NSError*))callback {
|
|
48
|
+
dispatch_queue_t asyncQueue = dispatch_queue_create("org.nativescript.TNSWidgets.fileHandle", NULL);
|
|
49
|
+
dispatch_async(asyncQueue, ^(void) {
|
|
50
|
+
NSFileHandle* handle = [NSFileHandle fileHandleForWritingAtPath: path];
|
|
51
|
+
NSError *error = nil;
|
|
52
|
+
|
|
53
|
+
if (@available(iOS 13.0, *)) {
|
|
54
|
+
[handle seekToEndReturningOffset:nil error:&error];
|
|
55
|
+
[handle writeData:data error:&error];
|
|
56
|
+
} else {
|
|
57
|
+
@try {
|
|
58
|
+
[handle seekToEndOfFile];
|
|
59
|
+
[handle writeData:data];
|
|
60
|
+
} @catch (NSException *exception) {
|
|
61
|
+
|
|
62
|
+
NSMutableDictionary * info = [NSMutableDictionary dictionary];
|
|
63
|
+
[info setValue:exception.name forKey:@"ExceptionName"];
|
|
64
|
+
[info setValue:exception.reason forKey:@"ExceptionReason"];
|
|
65
|
+
[info setValue:exception.callStackReturnAddresses forKey:@"ExceptionCallStackReturnAddresses"];
|
|
66
|
+
[info setValue:exception.callStackSymbols forKey:@"ExceptionCallStackSymbols"];
|
|
67
|
+
[info setValue:exception.userInfo forKey:@"ExceptionUserInfo"];
|
|
68
|
+
|
|
69
|
+
error = [[NSError alloc] initWithDomain:@"" code: 1 userInfo:info];
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
dispatch_async(dispatch_get_main_queue(), ^(void) {
|
|
76
|
+
callback(handle,error);
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
//
|
|
2
|
+
// NSObject+Swizzling.m
|
|
3
|
+
// TNSWidgets
|
|
4
|
+
//
|
|
5
|
+
// Created by Manol Donev on 21.08.18.
|
|
6
|
+
// Copyright © 2018 Telerik A D. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "NSObject+Swizzling.h"
|
|
10
|
+
|
|
11
|
+
@implementation NSObject (Swizzling)
|
|
12
|
+
|
|
13
|
+
#pragma mark - Method Swizzling
|
|
14
|
+
|
|
15
|
+
+ (void)swizzleInstanceMethodWithOriginalSelector:(SEL)originalSelector
|
|
16
|
+
fromClass:(Class)classContainigOriginalSel
|
|
17
|
+
withSwizzlingSelector:(SEL)swizzlingSelector {
|
|
18
|
+
Method originalMethod = class_getInstanceMethod(classContainigOriginalSel, originalSelector);
|
|
19
|
+
Method swizzlingMethod = class_getInstanceMethod(self.class, swizzlingSelector);
|
|
20
|
+
[self swizzleMethodWithOriginalSelector:originalSelector
|
|
21
|
+
originalMethod:originalMethod
|
|
22
|
+
fromClass:classContainigOriginalSel
|
|
23
|
+
withSwizzlingSelector:swizzlingSelector
|
|
24
|
+
swizzlingMethod:swizzlingMethod];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
//MARK: Utilities
|
|
28
|
+
|
|
29
|
+
+ (void)swizzleMethodWithOriginalSelector:(SEL)originalSelector
|
|
30
|
+
originalMethod:(Method)originalMethod
|
|
31
|
+
fromClass:(Class)classContainigOriginalSel
|
|
32
|
+
withSwizzlingSelector:(SEL)swizzlingSelector
|
|
33
|
+
swizzlingMethod:(Method)swizzlingMethod {
|
|
34
|
+
if (self == classContainigOriginalSel) {
|
|
35
|
+
BOOL didAddMethod = class_addMethod(classContainigOriginalSel,
|
|
36
|
+
originalSelector,
|
|
37
|
+
method_getImplementation(swizzlingMethod),
|
|
38
|
+
method_getTypeEncoding(swizzlingMethod));
|
|
39
|
+
|
|
40
|
+
if (didAddMethod) {
|
|
41
|
+
class_replaceMethod(self.class,
|
|
42
|
+
swizzlingSelector,
|
|
43
|
+
method_getImplementation(originalMethod),
|
|
44
|
+
method_getTypeEncoding(originalMethod));
|
|
45
|
+
} else {
|
|
46
|
+
method_exchangeImplementations(originalMethod, swizzlingMethod);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
class_addMethod(classContainigOriginalSel,
|
|
53
|
+
swizzlingSelector,
|
|
54
|
+
method_getImplementation(originalMethod),
|
|
55
|
+
method_getTypeEncoding(originalMethod));
|
|
56
|
+
|
|
57
|
+
class_replaceMethod(classContainigOriginalSel,
|
|
58
|
+
originalSelector,
|
|
59
|
+
method_getImplementation(swizzlingMethod),
|
|
60
|
+
method_getTypeEncoding(swizzlingMethod));
|
|
61
|
+
|
|
62
|
+
class_replaceMethod(self,
|
|
63
|
+
swizzlingSelector,
|
|
64
|
+
method_getImplementation(originalMethod),
|
|
65
|
+
method_getTypeEncoding(originalMethod));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
//
|
|
2
|
+
// NSString+Async.m
|
|
3
|
+
// TNSWidgets
|
|
4
|
+
//
|
|
5
|
+
// Created by Peter Staev on 5.08.19.
|
|
6
|
+
// Copyright © 2019 Telerik A D. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "NSString+Async.h"
|
|
10
|
+
|
|
11
|
+
@implementation NSString (Async)
|
|
12
|
+
|
|
13
|
+
+ (void)stringWithContentsOfFile:(nonnull NSString*)path
|
|
14
|
+
encoding:(NSStringEncoding)enc
|
|
15
|
+
completion:(void (^) (NSString*, NSError*))callback {
|
|
16
|
+
|
|
17
|
+
dispatch_queue_t asyncQueue = dispatch_queue_create("org.nativescript.TNSWidgets.string", NULL);
|
|
18
|
+
dispatch_async(asyncQueue, ^(void) {
|
|
19
|
+
NSError *error = nil;
|
|
20
|
+
NSString *output = [NSString stringWithContentsOfFile:path
|
|
21
|
+
encoding:enc
|
|
22
|
+
error:&error];
|
|
23
|
+
dispatch_async(dispatch_get_main_queue(), ^(void) {
|
|
24
|
+
callback(output, error);
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
- (void)writeToFile:(nonnull NSString*)path
|
|
32
|
+
atomically:(BOOL)atomically
|
|
33
|
+
encoding:(NSStringEncoding)enc
|
|
34
|
+
completion:(void (^) (NSError*))callback {
|
|
35
|
+
|
|
36
|
+
dispatch_queue_t asyncQueue = dispatch_queue_create("org.nativescript.TNSWidgets.string", NULL);
|
|
37
|
+
dispatch_async(asyncQueue, ^(void) {
|
|
38
|
+
NSError *error = nil;
|
|
39
|
+
[self writeToFile:path
|
|
40
|
+
atomically:atomically
|
|
41
|
+
encoding:enc
|
|
42
|
+
error:&error];
|
|
43
|
+
|
|
44
|
+
dispatch_async(dispatch_get_main_queue(), ^(void) {
|
|
45
|
+
callback(error);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//
|
|
2
|
+
// TNSLabel.m
|
|
3
|
+
// TNSWidgets
|
|
4
|
+
//
|
|
5
|
+
// Created by Hristo Hristov on 6/9/16.
|
|
6
|
+
// Copyright © 2016 Telerik A D. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "TNSLabel.h"
|
|
10
|
+
|
|
11
|
+
@implementation TNSLabel
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- (CGRect)textRectForBounds:(CGRect)bounds limitedToNumberOfLines:(NSInteger)numberOfLines {
|
|
15
|
+
// UILabel.textRectForBounds:limitedToNumberOfLines: returns rect with CGSizeZero when empty
|
|
16
|
+
if (self.text.length == 0) {
|
|
17
|
+
return [super textRectForBounds:bounds limitedToNumberOfLines:numberOfLines];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// 1. Subtract the insets (border thickness & padding)
|
|
21
|
+
// 2. Calculate the original label bounds
|
|
22
|
+
// 3. Add the insets again
|
|
23
|
+
UIEdgeInsets insets = UIEdgeInsetsMake(self.borderThickness.top + self.padding.top,
|
|
24
|
+
self.borderThickness.left + self.padding.left,
|
|
25
|
+
self.borderThickness.bottom + self.padding.bottom,
|
|
26
|
+
self.borderThickness.right + self.padding.right);
|
|
27
|
+
|
|
28
|
+
CGRect rect = [super textRectForBounds:UIEdgeInsetsInsetRect(bounds, insets) limitedToNumberOfLines:numberOfLines];
|
|
29
|
+
|
|
30
|
+
UIEdgeInsets inverseInsets = UIEdgeInsetsMake(-(self.borderThickness.top + self.padding.top),
|
|
31
|
+
-(self.borderThickness.left + self.padding.left),
|
|
32
|
+
-(self.borderThickness.bottom + self.padding.bottom),
|
|
33
|
+
-(self.borderThickness.right + self.padding.right));
|
|
34
|
+
|
|
35
|
+
return UIEdgeInsetsInsetRect(rect, inverseInsets);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
-(void)drawTextInRect:(CGRect)rect {
|
|
39
|
+
[super drawTextInRect:UIEdgeInsetsInsetRect(UIEdgeInsetsInsetRect(rect, self.borderThickness), self.padding)];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
//
|
|
2
|
+
// UIImage+UIImage_Async.m
|
|
3
|
+
// TKImageAsync
|
|
4
|
+
//
|
|
5
|
+
// Created by Panayot Cankov on 4/18/16.
|
|
6
|
+
// Copyright © 2016 Telerik A D. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
#import <UIKit/UIKit.h>
|
|
9
|
+
#import <CoreGraphics/CoreGraphics.h>
|
|
10
|
+
#import "UIImage+TNSBlocks.h"
|
|
11
|
+
|
|
12
|
+
@implementation UIImage (TNSBlocks)
|
|
13
|
+
|
|
14
|
+
static dispatch_queue_t image_queue;
|
|
15
|
+
|
|
16
|
+
+ (void) initialize {
|
|
17
|
+
image_queue = dispatch_queue_create("org.nativescript.TNSWidgets.image", NULL);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
- (void) tns_forceDecode {
|
|
21
|
+
@autoreleasepool {
|
|
22
|
+
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
|
|
23
|
+
CGContextRef context = CGBitmapContextCreate(NULL, 1, 1, 8, 0, colorSpace, kCGImageAlphaPremultipliedFirst);
|
|
24
|
+
CGContextDrawImage(context, CGRectMake(0, 0, 1, 1), [self CGImage]);
|
|
25
|
+
CGContextRelease(context);
|
|
26
|
+
CGColorSpaceRelease(colorSpace);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
+ (void) tns_safeDecodeImageNamed: (NSString*) name completion: (void (^) (UIImage*))callback {
|
|
31
|
+
dispatch_async(image_queue, ^(void){
|
|
32
|
+
@autoreleasepool {
|
|
33
|
+
UIImage* image = [UIImage imageNamed: name];
|
|
34
|
+
[image tns_forceDecode];
|
|
35
|
+
|
|
36
|
+
dispatch_async(dispatch_get_main_queue(), ^(void) {
|
|
37
|
+
callback(image);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
+ (UIImage*) tns_safeImageNamed: (NSString*) name {
|
|
44
|
+
UIImage* image;
|
|
45
|
+
@autoreleasepool {
|
|
46
|
+
image = [UIImage imageNamed: name];
|
|
47
|
+
}
|
|
48
|
+
return image;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
+ (void) tns_decodeImageWithData: (NSData*) data completion: (void (^) (UIImage*))callback {
|
|
52
|
+
dispatch_async(image_queue, ^(void) {
|
|
53
|
+
@autoreleasepool {
|
|
54
|
+
UIImage* image = [UIImage imageWithData: data];
|
|
55
|
+
[image tns_forceDecode];
|
|
56
|
+
|
|
57
|
+
dispatch_async(dispatch_get_main_queue(), ^(void) {
|
|
58
|
+
callback(image);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
+ (void) tns_decodeImageWidthContentsOfFile: (NSString*) file completion: (void (^) (UIImage*))callback {
|
|
65
|
+
dispatch_async(image_queue, ^(void) {
|
|
66
|
+
@autoreleasepool {
|
|
67
|
+
UIImage* image = [UIImage imageWithContentsOfFile: file];
|
|
68
|
+
[image tns_forceDecode];
|
|
69
|
+
|
|
70
|
+
dispatch_async(dispatch_get_main_queue(), ^(void) {
|
|
71
|
+
callback(image);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//
|
|
2
|
+
// UIView+PassThroughParent.m
|
|
3
|
+
// TNSWidgets
|
|
4
|
+
//
|
|
5
|
+
// Created by Manol Donev on 21.08.18.
|
|
6
|
+
// Copyright © 2018 Telerik A D. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "NSObject+Swizzling.h"
|
|
10
|
+
#import "UIView+PassThroughParent.h"
|
|
11
|
+
#import "UIView+PropertyBag.h"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
NSString * const TLKPassThroughParentKey = @"passThroughParent";
|
|
15
|
+
|
|
16
|
+
@implementation UIView (PassThroughParent)
|
|
17
|
+
|
|
18
|
+
+ (void) load {
|
|
19
|
+
[self loadHitTest];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
+ (void) loadHitTest {
|
|
23
|
+
@autoreleasepool {
|
|
24
|
+
static dispatch_once_t onceToken;
|
|
25
|
+
dispatch_once(&onceToken, ^{
|
|
26
|
+
[self swizzleInstanceMethodWithOriginalSelector:@selector(hitTest:withEvent:) fromClass:self.class withSwizzlingSelector:@selector(passThrough_hitTest:withEvent:)];
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
- (BOOL)passThroughParent {
|
|
32
|
+
NSNumber *passthrough = [self propertyValueForKey:TLKPassThroughParentKey];
|
|
33
|
+
if (passthrough) {
|
|
34
|
+
return passthrough.boolValue;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return NO;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
- (void)setPassThroughParent:(BOOL)passThroughParent {
|
|
41
|
+
[self setPropertyValue:[NSNumber numberWithBool:passThroughParent] forKey:TLKPassThroughParentKey];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
- (UIView *)passThrough_hitTest:(CGPoint)point withEvent:(UIEvent *)event {
|
|
45
|
+
UIView *hitTestView = [self passThrough_hitTest:point withEvent:event]; // swizzled
|
|
46
|
+
if (hitTestView == self && self.passThroughParent) {
|
|
47
|
+
hitTestView = nil;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return hitTestView;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//
|
|
2
|
+
// UIView+PropertyBag.m
|
|
3
|
+
// TNSWidgets
|
|
4
|
+
//
|
|
5
|
+
// Created by Manol Donev on 21.08.18.
|
|
6
|
+
// Copyright © 2018 Telerik A D. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "NSObject+Swizzling.h"
|
|
10
|
+
#import "UIView+PropertyBag.h"
|
|
11
|
+
#import <UIKit/UIKit.h>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@implementation UIView (PropertyBag)
|
|
15
|
+
|
|
16
|
+
+ (void) load {
|
|
17
|
+
[self loadPropertyBag];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
+ (void) loadPropertyBag {
|
|
21
|
+
@autoreleasepool {
|
|
22
|
+
static dispatch_once_t onceToken;
|
|
23
|
+
dispatch_once(&onceToken, ^{
|
|
24
|
+
const SEL deallocSelector = NSSelectorFromString(@"dealloc"); //ARC forbids use of 'dealloc' in a @selector
|
|
25
|
+
[self swizzleInstanceMethodWithOriginalSelector:deallocSelector fromClass:self.class withSwizzlingSelector:@selector(propertyBag_dealloc)];
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
__strong NSMutableDictionary *_propertyBagHolder; // Properties for every class will go in this property bag
|
|
31
|
+
- (id) propertyValueForKey:(NSString*) key {
|
|
32
|
+
return [[self propertyBag] valueForKey:key];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
- (void) setPropertyValue:(id) value forKey:(NSString*) key {
|
|
36
|
+
[[self propertyBag] setValue:value forKey:key];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
- (NSMutableDictionary*) propertyBag {
|
|
40
|
+
if (_propertyBagHolder == nil) {
|
|
41
|
+
_propertyBagHolder = [[NSMutableDictionary alloc] initWithCapacity:100];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
NSMutableDictionary *propBag = [_propertyBagHolder valueForKey:[[NSString alloc] initWithFormat:@"%p", self]];
|
|
45
|
+
if (propBag == nil) {
|
|
46
|
+
propBag = [NSMutableDictionary dictionary];
|
|
47
|
+
[self setPropertyBag:propBag];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return propBag;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
- (void) setPropertyBag:(NSDictionary*) propertyBag {
|
|
54
|
+
if (_propertyBagHolder == nil) {
|
|
55
|
+
_propertyBagHolder = [[NSMutableDictionary alloc] initWithCapacity:100];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
[_propertyBagHolder setValue:propertyBag forKey:[[NSString alloc] initWithFormat:@"%p", self]];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
- (void) removePropertyBag {
|
|
62
|
+
if (_propertyBagHolder != nil) {
|
|
63
|
+
[_propertyBagHolder removeObjectForKey:[[NSString alloc] initWithFormat:@"%p", self]];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
- (void)propertyBag_dealloc {
|
|
68
|
+
[self removePropertyBag];
|
|
69
|
+
[self propertyBag_dealloc]; // swizzled
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@end
|
|
Binary file
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>AvailableLibraries</key>
|
|
6
|
-
<array>
|
|
7
|
-
<dict>
|
|
8
|
-
<key>BinaryPath</key>
|
|
9
|
-
<string>TNSWidgets.framework/TNSWidgets</string>
|
|
10
|
-
<key>DebugSymbolsPath</key>
|
|
11
|
-
<string>dSYMs</string>
|
|
12
|
-
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>xros-arm64_x86_64-simulator</string>
|
|
14
|
-
<key>LibraryPath</key>
|
|
15
|
-
<string>TNSWidgets.framework</string>
|
|
16
|
-
<key>SupportedArchitectures</key>
|
|
17
|
-
<array>
|
|
18
|
-
<string>arm64</string>
|
|
19
|
-
<string>x86_64</string>
|
|
20
|
-
</array>
|
|
21
|
-
<key>SupportedPlatform</key>
|
|
22
|
-
<string>xros</string>
|
|
23
|
-
<key>SupportedPlatformVariant</key>
|
|
24
|
-
<string>simulator</string>
|
|
25
|
-
</dict>
|
|
26
|
-
<dict>
|
|
27
|
-
<key>BinaryPath</key>
|
|
28
|
-
<string>TNSWidgets.framework/TNSWidgets</string>
|
|
29
|
-
<key>DebugSymbolsPath</key>
|
|
30
|
-
<string>dSYMs</string>
|
|
31
|
-
<key>LibraryIdentifier</key>
|
|
32
|
-
<string>ios-arm64</string>
|
|
33
|
-
<key>LibraryPath</key>
|
|
34
|
-
<string>TNSWidgets.framework</string>
|
|
35
|
-
<key>SupportedArchitectures</key>
|
|
36
|
-
<array>
|
|
37
|
-
<string>arm64</string>
|
|
38
|
-
</array>
|
|
39
|
-
<key>SupportedPlatform</key>
|
|
40
|
-
<string>ios</string>
|
|
41
|
-
</dict>
|
|
42
|
-
<dict>
|
|
43
|
-
<key>BinaryPath</key>
|
|
44
|
-
<string>TNSWidgets.framework/TNSWidgets</string>
|
|
45
|
-
<key>DebugSymbolsPath</key>
|
|
46
|
-
<string>dSYMs</string>
|
|
47
|
-
<key>LibraryIdentifier</key>
|
|
48
|
-
<string>ios-arm64_x86_64-simulator</string>
|
|
49
|
-
<key>LibraryPath</key>
|
|
50
|
-
<string>TNSWidgets.framework</string>
|
|
51
|
-
<key>SupportedArchitectures</key>
|
|
52
|
-
<array>
|
|
53
|
-
<string>arm64</string>
|
|
54
|
-
<string>x86_64</string>
|
|
55
|
-
</array>
|
|
56
|
-
<key>SupportedPlatform</key>
|
|
57
|
-
<string>ios</string>
|
|
58
|
-
<key>SupportedPlatformVariant</key>
|
|
59
|
-
<string>simulator</string>
|
|
60
|
-
</dict>
|
|
61
|
-
<dict>
|
|
62
|
-
<key>BinaryPath</key>
|
|
63
|
-
<string>TNSWidgets.framework/Versions/A/TNSWidgets</string>
|
|
64
|
-
<key>DebugSymbolsPath</key>
|
|
65
|
-
<string>dSYMs</string>
|
|
66
|
-
<key>LibraryIdentifier</key>
|
|
67
|
-
<string>ios-arm64_x86_64-maccatalyst</string>
|
|
68
|
-
<key>LibraryPath</key>
|
|
69
|
-
<string>TNSWidgets.framework</string>
|
|
70
|
-
<key>SupportedArchitectures</key>
|
|
71
|
-
<array>
|
|
72
|
-
<string>arm64</string>
|
|
73
|
-
<string>x86_64</string>
|
|
74
|
-
</array>
|
|
75
|
-
<key>SupportedPlatform</key>
|
|
76
|
-
<string>ios</string>
|
|
77
|
-
<key>SupportedPlatformVariant</key>
|
|
78
|
-
<string>maccatalyst</string>
|
|
79
|
-
</dict>
|
|
80
|
-
<dict>
|
|
81
|
-
<key>BinaryPath</key>
|
|
82
|
-
<string>TNSWidgets.framework/TNSWidgets</string>
|
|
83
|
-
<key>DebugSymbolsPath</key>
|
|
84
|
-
<string>dSYMs</string>
|
|
85
|
-
<key>LibraryIdentifier</key>
|
|
86
|
-
<string>xros-arm64</string>
|
|
87
|
-
<key>LibraryPath</key>
|
|
88
|
-
<string>TNSWidgets.framework</string>
|
|
89
|
-
<key>SupportedArchitectures</key>
|
|
90
|
-
<array>
|
|
91
|
-
<string>arm64</string>
|
|
92
|
-
</array>
|
|
93
|
-
<key>SupportedPlatform</key>
|
|
94
|
-
<string>xros</string>
|
|
95
|
-
</dict>
|
|
96
|
-
</array>
|
|
97
|
-
<key>CFBundlePackageType</key>
|
|
98
|
-
<string>XFWK</string>
|
|
99
|
-
<key>XCFrameworkFormatVersion</key>
|
|
100
|
-
<string>1.0</string>
|
|
101
|
-
</dict>
|
|
102
|
-
</plist>
|
package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// NSCCrypto.h
|
|
3
|
-
// TNSWidgets
|
|
4
|
-
//
|
|
5
|
-
// Created by Osei Fortune on 03/07/2024.
|
|
6
|
-
// Copyright © 2024 NativeScript. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import <CommonCrypto/CommonCrypto.h>
|
|
11
|
-
#import <Security/Security.h>
|
|
12
|
-
#import <Security/SecItem.h>
|
|
13
|
-
#ifndef NSCCrypto_h
|
|
14
|
-
#define NSCCrypto_h
|
|
15
|
-
|
|
16
|
-
typedef enum : NSUInteger {
|
|
17
|
-
kNSCCryptoRSASSA_PKCS1_v1_5,
|
|
18
|
-
kNSCCryptoRSA_PSS,
|
|
19
|
-
kNSCCryptoRSA_OAEP,
|
|
20
|
-
} NSCCryptoRsaHashedKeyGenParamsName;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
typedef enum : NSUInteger {
|
|
24
|
-
kNSCCryptoHashSHA1,
|
|
25
|
-
kNSCCryptoHashSHA256,
|
|
26
|
-
kNSCCryptoHashSHA384,
|
|
27
|
-
kNSCCryptoHashSHA512
|
|
28
|
-
} NSCCryptoHash;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
typedef enum : NSUInteger {
|
|
32
|
-
kNSCCryptoDecrypt,
|
|
33
|
-
kNSCCryptoEncrypt,
|
|
34
|
-
kNSCCryptoSign,
|
|
35
|
-
kNSCCryptoVerify,
|
|
36
|
-
kNSCCryptoDeriveKey,
|
|
37
|
-
kNSCCryptoDeriveBits,
|
|
38
|
-
kNSCCryptoWrapKey,
|
|
39
|
-
kNSCCryptoUnwrapKey,
|
|
40
|
-
} NSCCryptoKeyUsages;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
@interface NSCCryptoKeyPair : NSObject
|
|
45
|
-
@property (nonatomic, nonnull) SecKeyRef privateKey;
|
|
46
|
-
@property (nonatomic, nonnull) SecKeyRef publicKey;
|
|
47
|
-
-(nonnull id)initWithPrivateKey:(nonnull SecKeyRef)privKey andPublicKey:(nonnull SecKeyRef)pubKey;
|
|
48
|
-
@end
|
|
49
|
-
|
|
50
|
-
@interface NSCCrypto:NSObject
|
|
51
|
-
+ (nonnull NSString*)randomUUID;
|
|
52
|
-
+ (nullable NSString*)getRandomValues:(nonnull void*)buffer length:(unsigned int)length;
|
|
53
|
-
+ (nullable NSData*)digest:(nonnull void*)data length:(unsigned int)length mode:(int)mode;
|
|
54
|
-
+ (nullable NSData *)generateKeyHmac:(int)hash length:(int)length;
|
|
55
|
-
+ (nullable NSCCryptoKeyPair*)generateKeyRsa:(NSCCryptoRsaHashedKeyGenParamsName)name modulusLength:(unsigned int)modulusLength publicExponent:(nullable void*)exponent size:(unsigned int)size hash:(NSCCryptoHash)hash extractable:(BOOL)extractable keyUsages:(nonnull NSArray*) usages;
|
|
56
|
-
+ (nullable NSData *)encryptRsa:(BOOL)isPrivate key:(nonnull NSCCryptoKeyPair *)key hash:(NSCCryptoHash)hash data:(nonnull void*)data size:(unsigned int) size;
|
|
57
|
-
|
|
58
|
-
+ (nullable NSData *)decryptRsa:(BOOL)isPrivate key:(nonnull NSCCryptoKeyPair *)key hash:(NSCCryptoHash)hash data:(nonnull void*)data size:(unsigned int) size;
|
|
59
|
-
@end
|
|
60
|
-
#endif /* NSCCrypto_h */
|
package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// TNSProcess.h
|
|
3
|
-
// TNSWidgets
|
|
4
|
-
//
|
|
5
|
-
// Created by Panayot Cankov on 15/05/2017.
|
|
6
|
-
// Copyright © 2017 Telerik A D. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#ifndef TNSProcess_h
|
|
10
|
-
#define TNSProcess_h
|
|
11
|
-
|
|
12
|
-
#import <Foundation/Foundation.h>
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Get the milliseconds since the process started.
|
|
16
|
-
*/
|
|
17
|
-
double __tns_uptime(void);
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Provides access to NSLog. The runtime implementation of console.log is filtered in release.
|
|
21
|
-
* We rarely need to log in release but in cases such as when logging app startup times in release,
|
|
22
|
-
* this will be convenient shortcut to NSLog, NSLog is not exposed.
|
|
23
|
-
*
|
|
24
|
-
* Please note the {N} CLI may be filtering app output, prefixing the message with "CONSOLE LOG"
|
|
25
|
-
* will make the logs visible in "tns run ios --release" builds.
|
|
26
|
-
*/
|
|
27
|
-
void __nslog(NSString* message);
|
|
28
|
-
|
|
29
|
-
#endif /* TNSProcess_h */
|
|
Binary file
|