Skip to content

Commit ad96a24

Browse files
authored
Merge pull request #1870 from polywrap/kris/swift-template
Swift iphone app template
2 parents 60ce291 + 4e9996b commit ad96a24

22 files changed

Lines changed: 3140 additions & 2 deletions

File tree

packages/cli/src/__tests__/e2e/p1/create.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Commands:
1919
wasm [options] <language> <name> Create a Polywrap wasm wrapper. langs:
2020
assemblyscript, rust, golang, interface
2121
app [options] <language> <name> Create a Polywrap application. langs:
22-
typescript, python, rust, android
22+
typescript, python, rust, android, ios
2323
plugin [options] <language> <name> Create a Polywrap plugin. langs:
2424
typescript, rust, python
2525
template [options] <url> <name> Download template from a URL. formats:

packages/cli/src/commands/create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const urlStr = intlMsg.commands_create_options_t_url();
2828

2929
export const supportedLangs = {
3030
wasm: ["assemblyscript", "rust", "golang", "interface"] as const,
31-
app: ["typescript", "python", "rust", "android"] as const,
31+
app: ["typescript", "python", "rust", "android", "ios"] as const,
3232
plugin: ["typescript", "rust", "python"] as const,
3333
};
3434

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Polywrap
2+
wrap
3+
4+
# AppCode
5+
.idea/
6+
.idea_modules/
7+
8+
# User-specific
9+
*.iml
10+
11+
# Xcode
12+
*.pbxuser
13+
!default.pbxuser
14+
*.mode1v3
15+
!default.mode1v3
16+
*.mode2v3
17+
!default.mode2v3
18+
*.perspectivev3
19+
!default.perspectivev3
20+
xcuserdata/
21+
*.moved-aside
22+
23+
# Compiled Source
24+
*.pyc
25+
*.o
26+
*.out
27+
28+
# CocoaPods
29+
Pods/
30+
31+
# Carthage
32+
Carthage/Build
33+
34+
# Swift Package Manager
35+
.build/
36+
37+
# macOS
38+
.DS_Store
39+
.AppleDouble
40+
.LSOverride
41+
42+
# Unix
43+
*.swp
44+
*~

packages/templates/app/ios/Podfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Uncomment the next line to define a global platform for your project
2+
# platform :ios, '9.0'
3+
4+
target 'Template' do
5+
# Comment the next line if you don't want to use dynamic frameworks
6+
use_frameworks!
7+
8+
# Pods for Template
9+
pod 'PolywrapClient', '0.0.8'
10+
11+
target 'TemplateTests' do
12+
inherit! :search_paths
13+
# Pods for testing
14+
end
15+
16+
target 'TemplateUITests' do
17+
# Pods for testing
18+
end
19+
20+
end
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
PODS:
2+
- AsyncObjects (2.1.0):
3+
- OrderedCollections (~> 1.0.0)
4+
- MessagePacker (0.4.7)
5+
- OrderedCollections (1.0.4)
6+
- PolywrapClient (0.0.8):
7+
- AsyncObjects (~> 2.1.0)
8+
- MessagePacker (~> 0.4.7)
9+
- PolywrapClientNative (~> 0.0.7)
10+
- PolywrapClientNative (0.0.7)
11+
12+
DEPENDENCIES:
13+
- PolywrapClient (= 0.0.8)
14+
15+
SPEC REPOS:
16+
trunk:
17+
- AsyncObjects
18+
- MessagePacker
19+
- OrderedCollections
20+
- PolywrapClient
21+
- PolywrapClientNative
22+
23+
SPEC CHECKSUMS:
24+
AsyncObjects: 37d04187100fd9cd545a6570a8ad727c5a3c5090
25+
MessagePacker: ab2fe250e86ea7aedd1a9ee47a37083edd41fd02
26+
OrderedCollections: c754ce5f9e42cf22b73afd73582317347903ab6d
27+
PolywrapClient: c8f2edac2500bbc421dfe7d2c4af757fa6db7224
28+
PolywrapClientNative: 30398b076b00c8bbf5c2046cfa1c1554c3c31321
29+
30+
PODFILE CHECKSUM: 90587966da0d18a791d29e2a8d3181c36468506e
31+
32+
COCOAPODS: 1.12.1

0 commit comments

Comments
 (0)