-
-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d960ba
commit a9621b5
Showing
19 changed files
with
371 additions
and
0 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
projects/tuist/fixtures/multiplatform_app_with_sdk/.gitignore
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,63 @@ | ||
### macOS ### | ||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
### Xcode ### | ||
# Xcode | ||
# | ||
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | ||
|
||
## User settings | ||
xcuserdata/ | ||
|
||
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) | ||
*.xcscmblueprint | ||
*.xccheckout | ||
|
||
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) | ||
build/ | ||
DerivedData/ | ||
*.moved-aside | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
|
||
### Xcode Patch ### | ||
*.xcodeproj/* | ||
!*.xcodeproj/project.pbxproj | ||
!*.xcodeproj/xcshareddata/ | ||
!*.xcworkspace/contents.xcworkspacedata | ||
/*.gcno | ||
|
||
### Projects ### | ||
*.xcodeproj | ||
*.xcworkspace |
10 changes: 10 additions & 0 deletions
10
projects/tuist/fixtures/multiplatform_app_with_sdk/App/AppDelegate.swift
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,10 @@ | ||
import SwiftUI | ||
|
||
@main | ||
struct TuistApp: App { | ||
var body: some Scene { | ||
WindowGroup { | ||
Text("Tuist is great") | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
projects/tuist/fixtures/multiplatform_app_with_sdk/Framework/FrameworkClass.swift
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 @@ | ||
import CloudKit | ||
import SQLite3 | ||
|
||
public class FrameworkClass { | ||
public init() {} | ||
} |
30 changes: 30 additions & 0 deletions
30
projects/tuist/fixtures/multiplatform_app_with_sdk/Modules/StaticFramework/Project.swift
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,30 @@ | ||
import ProjectDescription | ||
|
||
let project = Project( | ||
name: "StaticFramework", | ||
targets: [ | ||
Target( | ||
name: "StaticFramework", | ||
platform: .iOS, | ||
product: .staticFramework, | ||
bundleId: "io.tuist.StaticFramework", | ||
infoPlist: "Support/Info.plist", | ||
sources: ["Sources/**"], | ||
headers: .headers(public: "Sources/**/*.h"), | ||
dependencies: [ | ||
.sdk(name: "c++", type: .library), | ||
] | ||
), | ||
Target( | ||
name: "StaticFrameworkTests", | ||
platform: .iOS, | ||
product: .unitTests, | ||
bundleId: "io.tuist.StaticFrameworkTests", | ||
infoPlist: "Support/Tests.plist", | ||
sources: "Tests/**", | ||
dependencies: [ | ||
.target(name: "StaticFramework"), | ||
] | ||
), | ||
] | ||
) |
3 changes: 3 additions & 0 deletions
3
.../fixtures/multiplatform_app_with_sdk/Modules/StaticFramework/Sources/FrameworkClass.swift
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,3 @@ | ||
class FrameworkClass { | ||
func something() {} | ||
} |
9 changes: 9 additions & 0 deletions
9
...tuist/fixtures/multiplatform_app_with_sdk/Modules/StaticFramework/Sources/MyObjcppClass.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,9 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface MyObjcppClass : NSObject | ||
- (void)hello; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
12 changes: 12 additions & 0 deletions
12
...uist/fixtures/multiplatform_app_with_sdk/Modules/StaticFramework/Sources/MyObjcppClass.mm
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,12 @@ | ||
#import "MyObjcppClass.h" | ||
|
||
#include <iostream> | ||
|
||
@implementation MyObjcppClass | ||
|
||
- (void)hello | ||
{ | ||
std::cout << "Hello from cpp" << std::endl; | ||
} | ||
|
||
@end |
6 changes: 6 additions & 0 deletions
6
...ist/fixtures/multiplatform_app_with_sdk/Modules/StaticFramework/Sources/StaticFramework.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,6 @@ | ||
#ifndef StaticFramework_h | ||
#define StaticFramework_h | ||
|
||
#import <StaticFramework/MyObjcppClass.h> | ||
|
||
#endif /* StaticFramework_h */ |
26 changes: 26 additions & 0 deletions
26
...ects/tuist/fixtures/multiplatform_app_with_sdk/Modules/StaticFramework/Support/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,26 @@ | ||
<?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>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>FMWK</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>$(CURRENT_PROJECT_VERSION)</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Copyright ©. All rights reserved.</string> | ||
<key>NSPrincipalClass</key> | ||
<string></string> | ||
</dict> | ||
</plist> |
24 changes: 24 additions & 0 deletions
24
...cts/tuist/fixtures/multiplatform_app_with_sdk/Modules/StaticFramework/Support/Tests.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,24 @@ | ||
<?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>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>BNDL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Copyright ©. All rights reserved.</string> | ||
</dict> | ||
</plist> |
10 changes: 10 additions & 0 deletions
10
...ixtures/multiplatform_app_with_sdk/Modules/StaticFramework/Tests/MyObjcppClassTests.swift
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,10 @@ | ||
import Foundation | ||
import XCTest | ||
|
||
@testable import StaticFramework | ||
|
||
final class MyObjcppClassTests: XCTestCase { | ||
func testHello() { | ||
XCTAssertNotNil(MyObjcppClass()) | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
projects/tuist/fixtures/multiplatform_app_with_sdk/MyTestFramework/MyTestHelper.swift
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,7 @@ | ||
import XCTest | ||
|
||
public class MyTestHelper { | ||
public init() {} | ||
|
||
public func customAssert(_: Bool, file _: StaticString = #file, line _: Int = #line) {} | ||
} |
1 change: 1 addition & 0 deletions
1
projects/tuist/fixtures/multiplatform_app_with_sdk/Playgrounds/App.playground/Contents.swift
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 @@ | ||
import Foundation |
4 changes: 4 additions & 0 deletions
4
...uist/fixtures/multiplatform_app_with_sdk/Playgrounds/App.playground/contents.xcplayground
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,4 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<playground version='5.0' target-platform='ios'> | ||
<timeline fileName='timeline.xctimeline'/> | ||
</playground> |
57 changes: 57 additions & 0 deletions
57
projects/tuist/fixtures/multiplatform_app_with_sdk/Project.swift
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,57 @@ | ||
import ProjectDescription | ||
|
||
let project = Project( | ||
name: "Project", | ||
targets: [ | ||
Target( | ||
name: "MyTestFramework", | ||
platform: .iOS, | ||
product: .framework, | ||
bundleId: "io.tuist.MyTestFramework", | ||
infoPlist: .default, | ||
sources: "MyTestFramework/**", | ||
dependencies: [ | ||
.xctest, | ||
] | ||
), | ||
Target( | ||
name: "AppTests", | ||
platform: .iOS, | ||
product: .unitTests, | ||
bundleId: "io.tuist.AppTests", | ||
infoPlist: "Support/Tests.plist", | ||
sources: "Tests/**", | ||
dependencies: [ | ||
.target(name: "App"), | ||
.target(name: "MyTestFramework"), | ||
] | ||
), | ||
], | ||
multiplatformTargets: [ | ||
Multiplatform.Target( | ||
name: "App", | ||
destinations: [.iPhone, .iPad, .mac], | ||
product: .app, | ||
bundleId: "io.tuist.App", | ||
infoPlist: "Support/App-Info.plist", | ||
sources: "App/**", | ||
dependencies: [ | ||
.sdk(name: "CloudKit", type: .framework, status: .required), | ||
.sdk(name: "ARKit", type: .framework, status: .required), | ||
.sdk(name: "MobileCoreServices", type: .framework, status: .required), | ||
] | ||
), | ||
Multiplatform.Target( | ||
name: "MultiPlatformFramework", | ||
destinations: [.iPad, .iPhone, .mac, .appleTv], | ||
product: .framework, | ||
bundleId: "io.tuist.MacFramework", | ||
infoPlist: "Support/Framework-Info.plist", | ||
sources: "Framework/**", | ||
dependencies: [ | ||
.sdk(name: "CloudKit", type: .framework, status: .optional), | ||
.sdk(name: "sqlite3", type: .library), | ||
] | ||
), | ||
] | ||
) |
43 changes: 43 additions & 0 deletions
43
projects/tuist/fixtures/multiplatform_app_with_sdk/Support/App-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,43 @@ | ||
<?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>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Copyright ©. All rights reserved.</string> | ||
<key>UIRequiredDeviceCapabilities</key> | ||
<array> | ||
<string>armv7</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations~ipad</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationPortraitUpsideDown</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
</dict> | ||
</plist> |
24 changes: 24 additions & 0 deletions
24
projects/tuist/fixtures/multiplatform_app_with_sdk/Support/Framework-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,24 @@ | ||
<?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>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>FMWK</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>$(CURRENT_PROJECT_VERSION)</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Copyright Tuist©. All rights reserved.</string> | ||
</dict> | ||
</plist> |
24 changes: 24 additions & 0 deletions
24
projects/tuist/fixtures/multiplatform_app_with_sdk/Support/Tests.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,24 @@ | ||
<?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>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>BNDL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Copyright ©. All rights reserved.</string> | ||
</dict> | ||
</plist> |
12 changes: 12 additions & 0 deletions
12
projects/tuist/fixtures/multiplatform_app_with_sdk/Tests/AppTests.swift
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,12 @@ | ||
import Foundation | ||
import MyTestFramework | ||
import XCTest | ||
|
||
@testable import App | ||
|
||
final class AppTests: XCTestCase { | ||
private let helper = MyTestHelper() | ||
func test_foo() { | ||
helper.customAssert(true) | ||
} | ||
} |