forked from NativeScript/ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: apple silicon support (NativeScript#108)
* feat: Add support for Apple silicon * feat: Multi-arch metadata generator * build: simplify build scripts Co-authored-by: Darin Dimitrov <[email protected]>
- Loading branch information
Showing
53 changed files
with
597 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
40 changes: 40 additions & 0 deletions
40
AppWithModules/Frameworks/TNSWidgets.xcframework/Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>AvailableLibraries</key> | ||
<array> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_x86_64-simulator</string> | ||
<key>LibraryPath</key> | ||
<string>TNSWidgets.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>simulator</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64</string> | ||
<key>LibraryPath</key> | ||
<string>TNSWidgets.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
</dict> | ||
</array> | ||
<key>CFBundlePackageType</key> | ||
<string>XFWK</string> | ||
<key>XCFrameworkFormatVersion</key> | ||
<string>1.0</string> | ||
</dict> | ||
</plist> |
24 changes: 24 additions & 0 deletions
24
...s/Frameworks/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSData+Async.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// NSData+Async.h | ||
// TNSWidgets | ||
// | ||
// Created by Peter Staev on 7.08.19. | ||
// Copyright © 2019 Telerik A D. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface NSData (Async) | ||
|
||
+ (void)dataWithContentsOfFile:(nonnull NSString*)path | ||
completion:(void (^) (NSData*))callback; | ||
|
||
- (void)writeToFile:(nonnull NSString*) path | ||
atomically:(BOOL)atomically | ||
completion:(void (^) ())callback; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
25 changes: 25 additions & 0 deletions
25
...Frameworks/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSString+Async.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// NSString+Async.h | ||
// TNSWidgets | ||
// | ||
// Created by Peter Staev on 5.08.19. | ||
// Copyright © 2019 Telerik A D. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface NSString (Async) | ||
|
||
+ (void)stringWithContentsOfFile:(nonnull NSString*)path | ||
encoding:(NSStringEncoding)enc | ||
completion:(void (^) (NSString*, NSError*))callback; | ||
|
||
- (void)writeToFile:(nonnull NSString*) path | ||
atomically:(BOOL)atomically | ||
encoding:(NSStringEncoding)enc | ||
completion:(void (^) (NSError*))callback; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Binary file added
BIN
+789 Bytes
AppWithModules/Frameworks/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist
Binary file not shown.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
...TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// NSObject+Swizzling.h | ||
// TNSWidgets | ||
// | ||
// Created by Manol Donev on 21.08.18. | ||
// Copyright © 2018 Telerik A D. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <objc/runtime.h> | ||
|
||
|
||
@interface NSObject (Swizzling) | ||
|
||
+ (void)swizzleInstanceMethodWithOriginalSelector:(SEL)originalSelector fromClass:(Class)classContainigOriginalSel withSwizzlingSelector:(SEL)swizzlingSelector; | ||
|
||
@end |
18 changes: 18 additions & 0 deletions
18
...TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// UIView+PropertyBag.h | ||
// TNSWidgets | ||
// | ||
// Created by Manol Donev on 21.08.18. | ||
// Copyright © 2018 Telerik A D. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
|
||
@interface UIView (PropertyBag) | ||
|
||
- (id) propertyValueForKey:(NSString*) key; | ||
- (void) setPropertyValue:(id) value forKey:(NSString*) key; | ||
|
||
@end |
Binary file added
BIN
+186 KB
AppWithModules/Frameworks/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets
Binary file not shown.
24 changes: 24 additions & 0 deletions
24
...idgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// NSData+Async.h | ||
// TNSWidgets | ||
// | ||
// Created by Peter Staev on 7.08.19. | ||
// Copyright © 2019 Telerik A D. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface NSData (Async) | ||
|
||
+ (void)dataWithContentsOfFile:(nonnull NSString*)path | ||
completion:(void (^) (NSData*))callback; | ||
|
||
- (void)writeToFile:(nonnull NSString*) path | ||
atomically:(BOOL)atomically | ||
completion:(void (^) ())callback; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
25 changes: 25 additions & 0 deletions
25
...gets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// NSString+Async.h | ||
// TNSWidgets | ||
// | ||
// Created by Peter Staev on 5.08.19. | ||
// Copyright © 2019 Telerik A D. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface NSString (Async) | ||
|
||
+ (void)stringWithContentsOfFile:(nonnull NSString*)path | ||
encoding:(NSStringEncoding)enc | ||
completion:(void (^) (NSString*, NSError*))callback; | ||
|
||
- (void)writeToFile:(nonnull NSString*) path | ||
atomically:(BOOL)atomically | ||
encoding:(NSStringEncoding)enc | ||
completion:(void (^) (NSError*))callback; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
16 changes: 16 additions & 0 deletions
16
...TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// TNSLabel.h | ||
// TNSWidgets | ||
// | ||
// Created by Hristo Hristov on 6/9/16. | ||
// Copyright © 2016 Telerik A D. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface TNSLabel : UILabel | ||
|
||
@property(nonatomic) UIEdgeInsets padding; | ||
@property(nonatomic) UIEdgeInsets borderThickness; | ||
|
||
@end |
29 changes: 29 additions & 0 deletions
29
...SWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// TNSProcess.h | ||
// TNSWidgets | ||
// | ||
// Created by Panayot Cankov on 15/05/2017. | ||
// Copyright © 2017 Telerik A D. All rights reserved. | ||
// | ||
|
||
#ifndef TNSProcess_h | ||
#define TNSProcess_h | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
/** | ||
* Get the milliseconds since the process started. | ||
*/ | ||
double __tns_uptime(); | ||
|
||
/** | ||
* Provides access to NSLog. The runtime implementation of console.log is filtered in release. | ||
* We rarely need to log in release but in cases such as when logging app startup times in release, | ||
* this will be convenient shortcut to NSLog, NSLog is not exposed. | ||
* | ||
* Please note the {N} CLI may be filtering app output, prefixing the message with "CONSOLE LOG" | ||
* will make the logs visible in "tns run ios --release" builds. | ||
*/ | ||
void __nslog(NSString* message); | ||
|
||
#endif /* TNSProcess_h */ |
24 changes: 24 additions & 0 deletions
24
...SWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// TNSWidgets.h | ||
// TNSWidgets | ||
// | ||
// Created by Panayot Cankov on 4/27/16. | ||
// Copyright © 2016 Telerik A D. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
//! Project version number for TNSWidgets. | ||
FOUNDATION_EXPORT double TNSWidgetsVersionNumber; | ||
|
||
//! Project version string for TNSWidgets. | ||
FOUNDATION_EXPORT const unsigned char TNSWidgetsVersionString[]; | ||
|
||
// In this header, you should import all the public headers of your framework using statements like #import <TNSWidgets/PublicHeader.h> | ||
|
||
#import "UIImage+TNSBlocks.h" | ||
#import "UIView+PassThroughParent.h" | ||
#import "TNSLabel.h" | ||
#import "TNSProcess.h" | ||
#import "NSString+Async.h" | ||
#import "NSData+Async.h" |
26 changes: 26 additions & 0 deletions
26
...s.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// UIImage+UIImage_Async.h | ||
// TKImageAsync | ||
// | ||
// Created by Panayot Cankov on 4/18/16. | ||
// Copyright © 2016 Telerik A D. All rights reserved. | ||
// | ||
|
||
@interface UIImage (TNSBlocks) | ||
|
||
/** | ||
* Similar to imageNamed: however it runs on a separate queue so the UI thread is not blocked. | ||
* It also draws the UIImage in a small thumb to force decoding potentially avoiding UI hicckups when displayed. | ||
*/ | ||
+ (void) tns_safeDecodeImageNamed: (NSString*) name completion: (void (^) (UIImage*))callback; | ||
|
||
/** | ||
* Same as imageNamed, however calls to this method are sinchronized to be thread safe in iOS8 along with calls to tns_safeImageNamed and tns_safeDecodeImageNamed:completion: | ||
* imageNamed is thread safe in iOS 9 and later so in later versions this methods simply fallbacks to imageNamed: | ||
*/ | ||
+ (UIImage*) tns_safeImageNamed: (NSString*) name; | ||
|
||
+ (void) tns_decodeImageWithData: (NSData*) data completion: (void (^) (UIImage*))callback; | ||
+ (void) tns_decodeImageWidthContentsOfFile: (NSString*) file completion: (void (^) (UIImage*))callback; | ||
|
||
@end |
17 changes: 17 additions & 0 deletions
17
...mework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// UIView+PassThroughParent.h | ||
// TNSWidgets | ||
// | ||
// Created by Manol Donev on 21.08.18. | ||
// Copyright © 2018 Telerik A D. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
|
||
@interface UIView (PassThroughParent) | ||
|
||
- (BOOL) passThroughParent; | ||
- (void) setPassThroughParent:(BOOL) passThroughParent; | ||
|
||
@end |
Binary file renamed
BIN
+744 Bytes
...rameworks/TNSWidgets.framework/Info.plist → ...simulator/TNSWidgets.framework/Info.plist
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
...gets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
framework module TNSWidgets { | ||
umbrella header "TNSWidgets.h" | ||
|
||
export * | ||
module * { export * } | ||
} |
17 changes: 17 additions & 0 deletions
17
...ework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// NSObject+Swizzling.h | ||
// TNSWidgets | ||
// | ||
// Created by Manol Donev on 21.08.18. | ||
// Copyright © 2018 Telerik A D. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <objc/runtime.h> | ||
|
||
|
||
@interface NSObject (Swizzling) | ||
|
||
+ (void)swizzleInstanceMethodWithOriginalSelector:(SEL)originalSelector fromClass:(Class)classContainigOriginalSel withSwizzlingSelector:(SEL)swizzlingSelector; | ||
|
||
@end |
18 changes: 18 additions & 0 deletions
18
...ework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// UIView+PropertyBag.h | ||
// TNSWidgets | ||
// | ||
// Created by Manol Donev on 21.08.18. | ||
// Copyright © 2018 Telerik A D. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
|
||
@interface UIView (PropertyBag) | ||
|
||
- (id) propertyValueForKey:(NSString*) key; | ||
- (void) setPropertyValue:(id) value forKey:(NSString*) key; | ||
|
||
@end |
Binary file added
BIN
+156 KB
...meworks/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets
Binary file not shown.
Oops, something went wrong.