Skip to content

Commit 1264a6c

Browse files
committed
feat(ios): xcframework with build script
1 parent 0d8412b commit 1264a6c

File tree

50 files changed

+849
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+849
-0
lines changed

Diff for: src/platforms/ios/AppSync.framework/AppSync

-967 KB
Binary file not shown.

Diff for: src/platforms/ios/AppSync.xcframework/Info.plist

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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>DebugSymbolsPath</key>
9+
<string>dSYMs</string>
10+
<key>LibraryIdentifier</key>
11+
<string>ios-arm64_x86_64-simulator</string>
12+
<key>LibraryPath</key>
13+
<string>AppSync.framework</string>
14+
<key>SupportedArchitectures</key>
15+
<array>
16+
<string>arm64</string>
17+
<string>x86_64</string>
18+
</array>
19+
<key>SupportedPlatform</key>
20+
<string>ios</string>
21+
<key>SupportedPlatformVariant</key>
22+
<string>simulator</string>
23+
</dict>
24+
<dict>
25+
<key>DebugSymbolsPath</key>
26+
<string>dSYMs</string>
27+
<key>LibraryIdentifier</key>
28+
<string>ios-arm64</string>
29+
<key>LibraryPath</key>
30+
<string>AppSync.framework</string>
31+
<key>SupportedArchitectures</key>
32+
<array>
33+
<string>arm64</string>
34+
</array>
35+
<key>SupportedPlatform</key>
36+
<string>ios</string>
37+
</dict>
38+
</array>
39+
<key>CFBundlePackageType</key>
40+
<string>XFWK</string>
41+
<key>XCFrameworkFormatVersion</key>
42+
<string>1.0</string>
43+
</dict>
44+
</plist>
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>English</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>com.apple.xcode.dsym.org.nativescript.plugin.AppSync</string>
9+
<key>CFBundleInfoDictionaryVersion</key>
10+
<string>6.0</string>
11+
<key>CFBundlePackageType</key>
12+
<string>dSYM</string>
13+
<key>CFBundleSignature</key>
14+
<string>????</string>
15+
<key>CFBundleShortVersionString</key>
16+
<string>1.0</string>
17+
<key>CFBundleVersion</key>
18+
<string>1</string>
19+
</dict>
20+
</plist>
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// In this header, you should import all the public headers of your framework
2+
#import "TNSAppSync.h"
3+
4+
//! Project version number for AppSync.
5+
FOUNDATION_EXPORT double AppSyncVersionNumber;
6+
7+
//! Project version string for AppSync.
8+
FOUNDATION_EXPORT const unsigned char AppSyncVersionString[];
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#import <UIKit/UIKit.h>
2+
#import <Foundation/Foundation.h>
3+
4+
@interface TNSAppSync : NSObject
5+
6+
+ (NSString *_Nonnull)applicationPathWithDefault:(NSString *_Nonnull) defaultPath;
7+
8+
+ (void)unzipFileAtPath:(NSString *_Nonnull)path toDestination:(NSString *_Nullable)destination onProgress:(void (^_Nullable)(long entryNumber, long totalNumber))progressHandler onComplete:(void(^_Nullable)(NSString * _Nonnull path, BOOL succeeded, NSError * _Nullable error))completionHandler;
9+
10+
+ (BOOL)copyEntriesInFolder:(NSString *_Nonnull)sourceFolder
11+
destFolder:(NSString *_Nonnull)destFolder
12+
error:(NSError *_Nullable*_Nullable)error;
13+
14+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework module AppSync {
2+
umbrella header "AppSync.h"
3+
4+
export *
5+
module * { export * }
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
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>files</key>
6+
<dict>
7+
<key>Headers/AppSync.h</key>
8+
<data>
9+
QnoL5htRCYf3vNSUV1RCbrU6DuE=
10+
</data>
11+
<key>Headers/TNSAppSync.h</key>
12+
<data>
13+
57QeYZjbTCvP88jM45WFAeNPwdA=
14+
</data>
15+
<key>Info.plist</key>
16+
<data>
17+
lV9mLkovgQVcdhwUCtjkyXguJcE=
18+
</data>
19+
<key>Modules/module.modulemap</key>
20+
<data>
21+
XHe/o89O4o9x3hFxuYnt/j7qJBE=
22+
</data>
23+
</dict>
24+
<key>files2</key>
25+
<dict>
26+
<key>Headers/AppSync.h</key>
27+
<dict>
28+
<key>hash</key>
29+
<data>
30+
QnoL5htRCYf3vNSUV1RCbrU6DuE=
31+
</data>
32+
<key>hash2</key>
33+
<data>
34+
/3YLK9fFP5nnNI+nwcR26nVPJD0P0jdX/JBY04N6oXA=
35+
</data>
36+
</dict>
37+
<key>Headers/TNSAppSync.h</key>
38+
<dict>
39+
<key>hash</key>
40+
<data>
41+
57QeYZjbTCvP88jM45WFAeNPwdA=
42+
</data>
43+
<key>hash2</key>
44+
<data>
45+
Wddo6LqspI5KYmiiPXf6kXs5RygeRsEFG54yP5zzuIg=
46+
</data>
47+
</dict>
48+
<key>Modules/module.modulemap</key>
49+
<dict>
50+
<key>hash</key>
51+
<data>
52+
XHe/o89O4o9x3hFxuYnt/j7qJBE=
53+
</data>
54+
<key>hash2</key>
55+
<data>
56+
Gmwa12m+ZCHssiRhHUukWqgeWK+Pg/8LKXvzCRzyoow=
57+
</data>
58+
</dict>
59+
</dict>
60+
<key>rules</key>
61+
<dict>
62+
<key>^.*</key>
63+
<true/>
64+
<key>^.*\.lproj/</key>
65+
<dict>
66+
<key>optional</key>
67+
<true/>
68+
<key>weight</key>
69+
<real>1000</real>
70+
</dict>
71+
<key>^.*\.lproj/locversion.plist$</key>
72+
<dict>
73+
<key>omit</key>
74+
<true/>
75+
<key>weight</key>
76+
<real>1100</real>
77+
</dict>
78+
<key>^Base\.lproj/</key>
79+
<dict>
80+
<key>weight</key>
81+
<real>1010</real>
82+
</dict>
83+
<key>^version.plist$</key>
84+
<true/>
85+
</dict>
86+
<key>rules2</key>
87+
<dict>
88+
<key>.*\.dSYM($|/)</key>
89+
<dict>
90+
<key>weight</key>
91+
<real>11</real>
92+
</dict>
93+
<key>^(.*/)?\.DS_Store$</key>
94+
<dict>
95+
<key>omit</key>
96+
<true/>
97+
<key>weight</key>
98+
<real>2000</real>
99+
</dict>
100+
<key>^.*</key>
101+
<true/>
102+
<key>^.*\.lproj/</key>
103+
<dict>
104+
<key>optional</key>
105+
<true/>
106+
<key>weight</key>
107+
<real>1000</real>
108+
</dict>
109+
<key>^.*\.lproj/locversion.plist$</key>
110+
<dict>
111+
<key>omit</key>
112+
<true/>
113+
<key>weight</key>
114+
<real>1100</real>
115+
</dict>
116+
<key>^Base\.lproj/</key>
117+
<dict>
118+
<key>weight</key>
119+
<real>1010</real>
120+
</dict>
121+
<key>^Info\.plist$</key>
122+
<dict>
123+
<key>omit</key>
124+
<true/>
125+
<key>weight</key>
126+
<real>20</real>
127+
</dict>
128+
<key>^PkgInfo$</key>
129+
<dict>
130+
<key>omit</key>
131+
<true/>
132+
<key>weight</key>
133+
<real>20</real>
134+
</dict>
135+
<key>^embedded\.provisionprofile$</key>
136+
<dict>
137+
<key>weight</key>
138+
<real>20</real>
139+
</dict>
140+
<key>^version\.plist$</key>
141+
<dict>
142+
<key>weight</key>
143+
<real>20</real>
144+
</dict>
145+
</dict>
146+
</dict>
147+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>English</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>com.apple.xcode.dsym.org.nativescript.plugin.AppSync</string>
9+
<key>CFBundleInfoDictionaryVersion</key>
10+
<string>6.0</string>
11+
<key>CFBundlePackageType</key>
12+
<string>dSYM</string>
13+
<key>CFBundleSignature</key>
14+
<string>????</string>
15+
<key>CFBundleShortVersionString</key>
16+
<string>1.0</string>
17+
<key>CFBundleVersion</key>
18+
<string>1</string>
19+
</dict>
20+
</plist>

Diff for: src/platforms/ios_lib/AppSync/build.sh

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
echo "Set exit on simple errors"
2+
set -e
3+
4+
rm -rf $(PWD)/build
5+
6+
echo "Build for iphonesimulator"
7+
xcodebuild \
8+
-project AppSync.xcodeproj \
9+
-scheme AppSync \
10+
-sdk iphonesimulator \
11+
-destination "generic/platform=iOS Simulator" \
12+
-configuration Release \
13+
clean build \
14+
BUILD_DIR=$(PWD)/build \
15+
SKIP_INSTALL=NO \
16+
-quiet
17+
18+
echo "Build for iphoneos"
19+
xcodebuild \
20+
-project AppSync.xcodeproj \
21+
-scheme AppSync \
22+
-sdk iphoneos \
23+
-destination "generic/platform=iOS" \
24+
-configuration Release \
25+
clean build \
26+
BUILD_DIR=$(PWD)/build \
27+
CODE_SIGN_IDENTITY="" \
28+
CODE_SIGNING_REQUIRED=NO \
29+
SKIP_INSTALL=NO \
30+
-quiet
31+
32+
echo "Creating XCFramework"
33+
xcodebuild \
34+
-create-xcframework \
35+
-framework $(PWD)/build/Release-iphoneos/AppSync.framework \
36+
-debug-symbols $(PWD)/build/Release-iphoneos/AppSync.framework.dSYM \
37+
-framework $(PWD)/build/Release-iphonesimulator/AppSync.framework \
38+
-debug-symbols $(PWD)/build/Release-iphonesimulator/AppSync.framework.dSYM \
39+
-output $(PWD)/build/AppSync.xcframework
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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>DebugSymbolsPath</key>
9+
<string>dSYMs</string>
10+
<key>LibraryIdentifier</key>
11+
<string>ios-arm64_x86_64-simulator</string>
12+
<key>LibraryPath</key>
13+
<string>AppSync.framework</string>
14+
<key>SupportedArchitectures</key>
15+
<array>
16+
<string>arm64</string>
17+
<string>x86_64</string>
18+
</array>
19+
<key>SupportedPlatform</key>
20+
<string>ios</string>
21+
<key>SupportedPlatformVariant</key>
22+
<string>simulator</string>
23+
</dict>
24+
<dict>
25+
<key>DebugSymbolsPath</key>
26+
<string>dSYMs</string>
27+
<key>LibraryIdentifier</key>
28+
<string>ios-arm64</string>
29+
<key>LibraryPath</key>
30+
<string>AppSync.framework</string>
31+
<key>SupportedArchitectures</key>
32+
<array>
33+
<string>arm64</string>
34+
</array>
35+
<key>SupportedPlatform</key>
36+
<string>ios</string>
37+
</dict>
38+
</array>
39+
<key>CFBundlePackageType</key>
40+
<string>XFWK</string>
41+
<key>XCFrameworkFormatVersion</key>
42+
<string>1.0</string>
43+
</dict>
44+
</plist>
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// In this header, you should import all the public headers of your framework
2+
#import "TNSAppSync.h"
3+
4+
//! Project version number for AppSync.
5+
FOUNDATION_EXPORT double AppSyncVersionNumber;
6+
7+
//! Project version string for AppSync.
8+
FOUNDATION_EXPORT const unsigned char AppSyncVersionString[];
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#import <UIKit/UIKit.h>
2+
#import <Foundation/Foundation.h>
3+
4+
@interface TNSAppSync : NSObject
5+
6+
+ (NSString *_Nonnull)applicationPathWithDefault:(NSString *_Nonnull) defaultPath;
7+
8+
+ (void)unzipFileAtPath:(NSString *_Nonnull)path toDestination:(NSString *_Nullable)destination onProgress:(void (^_Nullable)(long entryNumber, long totalNumber))progressHandler onComplete:(void(^_Nullable)(NSString * _Nonnull path, BOOL succeeded, NSError * _Nullable error))completionHandler;
9+
10+
+ (BOOL)copyEntriesInFolder:(NSString *_Nonnull)sourceFolder
11+
destFolder:(NSString *_Nonnull)destFolder
12+
error:(NSError *_Nullable*_Nullable)error;
13+
14+
@end
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework module AppSync {
2+
umbrella header "AppSync.h"
3+
4+
export *
5+
module * { export * }
6+
}

0 commit comments

Comments
 (0)