Skip to content

Commit fc77c92

Browse files
committed
feat(mac): support for Mac Catalyst with ui-mobile-base
1 parent 957af32 commit fc77c92

22 files changed

Lines changed: 315 additions & 3 deletions

File tree

‎packages/core/platforms/ios/TNSWidgets.xcframework/Info.plist‎

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,21 @@
88
<key>DebugSymbolsPath</key>
99
<string>dSYMs</string>
1010
<key>LibraryIdentifier</key>
11-
<string>ios-arm64_x86_64-simulator</string>
11+
<string>ios-arm64</string>
12+
<key>LibraryPath</key>
13+
<string>TNSWidgets.framework</string>
14+
<key>SupportedArchitectures</key>
15+
<array>
16+
<string>arm64</string>
17+
</array>
18+
<key>SupportedPlatform</key>
19+
<string>ios</string>
20+
</dict>
21+
<dict>
22+
<key>DebugSymbolsPath</key>
23+
<string>dSYMs</string>
24+
<key>LibraryIdentifier</key>
25+
<string>ios-arm64_x86_64-maccatalyst</string>
1226
<key>LibraryPath</key>
1327
<string>TNSWidgets.framework</string>
1428
<key>SupportedArchitectures</key>
@@ -19,21 +33,24 @@
1933
<key>SupportedPlatform</key>
2034
<string>ios</string>
2135
<key>SupportedPlatformVariant</key>
22-
<string>simulator</string>
36+
<string>maccatalyst</string>
2337
</dict>
2438
<dict>
2539
<key>DebugSymbolsPath</key>
2640
<string>dSYMs</string>
2741
<key>LibraryIdentifier</key>
28-
<string>ios-arm64</string>
42+
<string>ios-arm64_x86_64-simulator</string>
2943
<key>LibraryPath</key>
3044
<string>TNSWidgets.framework</string>
3145
<key>SupportedArchitectures</key>
3246
<array>
3347
<string>arm64</string>
48+
<string>x86_64</string>
3449
</array>
3550
<key>SupportedPlatform</key>
3651
<string>ios</string>
52+
<key>SupportedPlatformVariant</key>
53+
<string>simulator</string>
3754
</dict>
3855
</array>
3956
<key>CFBundlePackageType</key>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Headers
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Modules
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/PrivateHeaders
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Resources
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/TNSWidgets
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//
2+
// NSData+Async.h
3+
// TNSWidgets
4+
//
5+
// Created by Peter Staev on 7.08.19.
6+
// Copyright © 2019 Telerik A D. All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
NS_ASSUME_NONNULL_BEGIN
12+
13+
@interface NSData (Async)
14+
15+
+ (void)dataWithContentsOfFile:(nonnull NSString*)path
16+
completion:(void (^) (NSData*))callback;
17+
18+
- (void)writeToFile:(nonnull NSString*) path
19+
atomically:(BOOL)atomically
20+
completion:(void (^) (void))callback;
21+
22+
@end
23+
24+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//
2+
// NSString+Async.h
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 <Foundation/Foundation.h>
10+
11+
NS_ASSUME_NONNULL_BEGIN
12+
13+
@interface NSString (Async)
14+
15+
+ (void)stringWithContentsOfFile:(nonnull NSString*)path
16+
encoding:(NSStringEncoding)enc
17+
completion:(void (^) (NSString*, NSError*))callback;
18+
19+
- (void)writeToFile:(nonnull NSString*) path
20+
atomically:(BOOL)atomically
21+
encoding:(NSStringEncoding)enc
22+
completion:(void (^) (NSError*))callback;
23+
@end
24+
25+
NS_ASSUME_NONNULL_END
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// TNSLabel.h
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 <UIKit/UIKit.h>
10+
11+
@interface TNSLabel : UILabel
12+
13+
@property(nonatomic) UIEdgeInsets padding;
14+
@property(nonatomic) UIEdgeInsets borderThickness;
15+
16+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 */

0 commit comments

Comments
 (0)