Building app

This commit is contained in:
Pengwius 2021-03-25 23:41:11 +01:00
parent 504ea2b3a4
commit e77d645d31
11 changed files with 765 additions and 0 deletions

28
Package.swift Normal file
View file

@ -0,0 +1,28 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "wulkanowy-ios",
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "wulkanowy-ios",
targets: ["wulkanowy-ios"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "wulkanowy-ios",
dependencies: []),
.testTarget(
name: "wulkanowy-iosTests",
dependencies: ["wulkanowy-ios"]),
]
)

View file

@ -0,0 +1,3 @@
struct wulkanowy_ios {
var text = "Hello, World!"
}

7
Tests/LinuxMain.swift Normal file
View file

@ -0,0 +1,7 @@
import XCTest
import wulkanowy_iosTests
var tests = [XCTestCaseEntry]()
tests += wulkanowy_iosTests.allTests()
XCTMain(tests)

View file

@ -0,0 +1,9 @@
import XCTest
#if !canImport(ObjectiveC)
public func allTests() -> [XCTestCaseEntry] {
return [
testCase(wulkanowy_iosTests.allTests),
]
}
#endif

View file

@ -0,0 +1,15 @@
import XCTest
@testable import wulkanowy_ios
final class wulkanowy_iosTests: XCTestCase {
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
XCTAssertEqual(wulkanowy_ios().text, "Hello, World!")
}
static var allTests = [
("testExample", testExample),
]
}

View file

@ -0,0 +1,605 @@
// !$*UTF8*$!
{
archiveVersion = "1";
objectVersion = "46";
objects = {
"OBJ_1" = {
isa = "PBXProject";
attributes = {
LastSwiftMigration = "9999";
LastUpgradeCheck = "9999";
};
buildConfigurationList = "OBJ_2";
compatibilityVersion = "Xcode 3.2";
developmentRegion = "en";
hasScannedForEncodings = "0";
knownRegions = (
"en"
);
mainGroup = "OBJ_5";
productRefGroup = "OBJ_14";
projectDirPath = ".";
targets = (
"wulkanowy-ios::wulkanowy-ios",
"wulkanowy-ios::SwiftPMPackageDescription",
"wulkanowy-ios::wulkanowy-iosPackageTests::ProductTarget",
"wulkanowy-ios::wulkanowy-iosTests"
);
};
"OBJ_10" = {
isa = "PBXGroup";
children = (
"OBJ_11"
);
name = "Tests";
path = "";
sourceTree = "SOURCE_ROOT";
};
"OBJ_11" = {
isa = "PBXGroup";
children = (
"OBJ_12",
"OBJ_13"
);
name = "wulkanowy-iosTests";
path = "Tests/wulkanowy-iosTests";
sourceTree = "SOURCE_ROOT";
};
"OBJ_12" = {
isa = "PBXFileReference";
path = "XCTestManifests.swift";
sourceTree = "<group>";
};
"OBJ_13" = {
isa = "PBXFileReference";
path = "wulkanowy_iosTests.swift";
sourceTree = "<group>";
};
"OBJ_14" = {
isa = "PBXGroup";
children = (
"wulkanowy-ios::wulkanowy-ios::Product",
"wulkanowy-ios::wulkanowy-iosTests::Product"
);
name = "Products";
path = "";
sourceTree = "BUILT_PRODUCTS_DIR";
};
"OBJ_17" = {
isa = "PBXFileReference";
path = "wulkanowy.xcworkspace";
sourceTree = "SOURCE_ROOT";
};
"OBJ_18" = {
isa = "PBXFileReference";
path = "wulkanowy";
sourceTree = "SOURCE_ROOT";
};
"OBJ_19" = {
isa = "PBXFileReference";
path = "wulkanowyTests";
sourceTree = "SOURCE_ROOT";
};
"OBJ_2" = {
isa = "XCConfigurationList";
buildConfigurations = (
"OBJ_3",
"OBJ_4"
);
defaultConfigurationIsVisible = "0";
defaultConfigurationName = "Release";
};
"OBJ_20" = {
isa = "PBXFileReference";
path = "Sdk";
sourceTree = "SOURCE_ROOT";
};
"OBJ_21" = {
isa = "PBXFileReference";
path = "wulkanowyUITests";
sourceTree = "SOURCE_ROOT";
};
"OBJ_22" = {
isa = "PBXFileReference";
path = "LICENSE";
sourceTree = "<group>";
};
"OBJ_23" = {
isa = "PBXFileReference";
path = "README.md";
sourceTree = "<group>";
};
"OBJ_25" = {
isa = "XCConfigurationList";
buildConfigurations = (
"OBJ_26",
"OBJ_27"
);
defaultConfigurationIsVisible = "0";
defaultConfigurationName = "Release";
};
"OBJ_26" = {
isa = "XCBuildConfiguration";
buildSettings = {
ENABLE_TESTABILITY = "YES";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PLATFORM_DIR)/Developer/Library/Frameworks"
);
HEADER_SEARCH_PATHS = (
"$(inherited)"
);
INFOPLIST_FILE = "wulkanowy-ios.xcodeproj/wulkanowy_ios_Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = "9.0";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx"
);
MACOSX_DEPLOYMENT_TARGET = "10.10";
OTHER_CFLAGS = (
"$(inherited)"
);
OTHER_LDFLAGS = (
"$(inherited)"
);
OTHER_SWIFT_FLAGS = (
"$(inherited)"
);
PRODUCT_BUNDLE_IDENTIFIER = "wulkanowy-ios";
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = "YES";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = (
"$(inherited)"
);
SWIFT_VERSION = "5.0";
TARGET_NAME = "wulkanowy-ios";
TVOS_DEPLOYMENT_TARGET = "9.0";
WATCHOS_DEPLOYMENT_TARGET = "2.0";
};
name = "Debug";
};
"OBJ_27" = {
isa = "XCBuildConfiguration";
buildSettings = {
ENABLE_TESTABILITY = "YES";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PLATFORM_DIR)/Developer/Library/Frameworks"
);
HEADER_SEARCH_PATHS = (
"$(inherited)"
);
INFOPLIST_FILE = "wulkanowy-ios.xcodeproj/wulkanowy_ios_Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = "9.0";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx"
);
MACOSX_DEPLOYMENT_TARGET = "10.10";
OTHER_CFLAGS = (
"$(inherited)"
);
OTHER_LDFLAGS = (
"$(inherited)"
);
OTHER_SWIFT_FLAGS = (
"$(inherited)"
);
PRODUCT_BUNDLE_IDENTIFIER = "wulkanowy-ios";
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = "YES";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = (
"$(inherited)"
);
SWIFT_VERSION = "5.0";
TARGET_NAME = "wulkanowy-ios";
TVOS_DEPLOYMENT_TARGET = "9.0";
WATCHOS_DEPLOYMENT_TARGET = "2.0";
};
name = "Release";
};
"OBJ_28" = {
isa = "PBXSourcesBuildPhase";
files = (
"OBJ_29"
);
};
"OBJ_29" = {
isa = "PBXBuildFile";
fileRef = "OBJ_9";
};
"OBJ_3" = {
isa = "XCBuildConfiguration";
buildSettings = {
CLANG_ENABLE_OBJC_ARC = "YES";
COMBINE_HIDPI_IMAGES = "YES";
COPY_PHASE_STRIP = "NO";
DEBUG_INFORMATION_FORMAT = "dwarf";
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_NS_ASSERTIONS = "YES";
GCC_OPTIMIZATION_LEVEL = "0";
GCC_PREPROCESSOR_DEFINITIONS = (
"$(inherited)",
"SWIFT_PACKAGE=1",
"DEBUG=1"
);
MACOSX_DEPLOYMENT_TARGET = "10.10";
ONLY_ACTIVE_ARCH = "YES";
OTHER_SWIFT_FLAGS = (
"$(inherited)",
"-DXcode"
);
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = "macosx";
SUPPORTED_PLATFORMS = (
"macosx",
"iphoneos",
"iphonesimulator",
"appletvos",
"appletvsimulator",
"watchos",
"watchsimulator"
);
SWIFT_ACTIVE_COMPILATION_CONDITIONS = (
"$(inherited)",
"SWIFT_PACKAGE",
"DEBUG"
);
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
USE_HEADERMAP = "NO";
};
name = "Debug";
};
"OBJ_30" = {
isa = "PBXFrameworksBuildPhase";
files = (
);
};
"OBJ_32" = {
isa = "XCConfigurationList";
buildConfigurations = (
"OBJ_33",
"OBJ_34"
);
defaultConfigurationIsVisible = "0";
defaultConfigurationName = "Release";
};
"OBJ_33" = {
isa = "XCBuildConfiguration";
buildSettings = {
LD = "/usr/bin/true";
OTHER_SWIFT_FLAGS = (
"-swift-version",
"5",
"-I",
"$(TOOLCHAIN_DIR)/usr/lib/swift/pm/4_2",
"-sdk",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk",
"-package-description-version",
"5.3.0"
);
SWIFT_VERSION = "5.0";
};
name = "Debug";
};
"OBJ_34" = {
isa = "XCBuildConfiguration";
buildSettings = {
LD = "/usr/bin/true";
OTHER_SWIFT_FLAGS = (
"-swift-version",
"5",
"-I",
"$(TOOLCHAIN_DIR)/usr/lib/swift/pm/4_2",
"-sdk",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk",
"-package-description-version",
"5.3.0"
);
SWIFT_VERSION = "5.0";
};
name = "Release";
};
"OBJ_35" = {
isa = "PBXSourcesBuildPhase";
files = (
"OBJ_36"
);
};
"OBJ_36" = {
isa = "PBXBuildFile";
fileRef = "OBJ_6";
};
"OBJ_38" = {
isa = "XCConfigurationList";
buildConfigurations = (
"OBJ_39",
"OBJ_40"
);
defaultConfigurationIsVisible = "0";
defaultConfigurationName = "Release";
};
"OBJ_39" = {
isa = "XCBuildConfiguration";
buildSettings = {
};
name = "Debug";
};
"OBJ_4" = {
isa = "XCBuildConfiguration";
buildSettings = {
CLANG_ENABLE_OBJC_ARC = "YES";
COMBINE_HIDPI_IMAGES = "YES";
COPY_PHASE_STRIP = "YES";
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DYLIB_INSTALL_NAME_BASE = "@rpath";
GCC_OPTIMIZATION_LEVEL = "s";
GCC_PREPROCESSOR_DEFINITIONS = (
"$(inherited)",
"SWIFT_PACKAGE=1"
);
MACOSX_DEPLOYMENT_TARGET = "10.10";
OTHER_SWIFT_FLAGS = (
"$(inherited)",
"-DXcode"
);
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = "macosx";
SUPPORTED_PLATFORMS = (
"macosx",
"iphoneos",
"iphonesimulator",
"appletvos",
"appletvsimulator",
"watchos",
"watchsimulator"
);
SWIFT_ACTIVE_COMPILATION_CONDITIONS = (
"$(inherited)",
"SWIFT_PACKAGE"
);
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
USE_HEADERMAP = "NO";
};
name = "Release";
};
"OBJ_40" = {
isa = "XCBuildConfiguration";
buildSettings = {
};
name = "Release";
};
"OBJ_41" = {
isa = "PBXTargetDependency";
target = "wulkanowy-ios::wulkanowy-iosTests";
};
"OBJ_43" = {
isa = "XCConfigurationList";
buildConfigurations = (
"OBJ_44",
"OBJ_45"
);
defaultConfigurationIsVisible = "0";
defaultConfigurationName = "Release";
};
"OBJ_44" = {
isa = "XCBuildConfiguration";
buildSettings = {
CLANG_ENABLE_MODULES = "YES";
EMBEDDED_CONTENT_CONTAINS_SWIFT = "YES";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PLATFORM_DIR)/Developer/Library/Frameworks"
);
HEADER_SEARCH_PATHS = (
"$(inherited)"
);
INFOPLIST_FILE = "wulkanowy-ios.xcodeproj/wulkanowy_iosTests_Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = "14.0";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@loader_path/../Frameworks",
"@loader_path/Frameworks"
);
MACOSX_DEPLOYMENT_TARGET = "10.15";
OTHER_CFLAGS = (
"$(inherited)"
);
OTHER_LDFLAGS = (
"$(inherited)"
);
OTHER_SWIFT_FLAGS = (
"$(inherited)"
);
SWIFT_ACTIVE_COMPILATION_CONDITIONS = (
"$(inherited)"
);
SWIFT_VERSION = "5.0";
TARGET_NAME = "wulkanowy-iosTests";
TVOS_DEPLOYMENT_TARGET = "9.0";
WATCHOS_DEPLOYMENT_TARGET = "2.0";
};
name = "Debug";
};
"OBJ_45" = {
isa = "XCBuildConfiguration";
buildSettings = {
CLANG_ENABLE_MODULES = "YES";
EMBEDDED_CONTENT_CONTAINS_SWIFT = "YES";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PLATFORM_DIR)/Developer/Library/Frameworks"
);
HEADER_SEARCH_PATHS = (
"$(inherited)"
);
INFOPLIST_FILE = "wulkanowy-ios.xcodeproj/wulkanowy_iosTests_Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = "14.0";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@loader_path/../Frameworks",
"@loader_path/Frameworks"
);
MACOSX_DEPLOYMENT_TARGET = "10.15";
OTHER_CFLAGS = (
"$(inherited)"
);
OTHER_LDFLAGS = (
"$(inherited)"
);
OTHER_SWIFT_FLAGS = (
"$(inherited)"
);
SWIFT_ACTIVE_COMPILATION_CONDITIONS = (
"$(inherited)"
);
SWIFT_VERSION = "5.0";
TARGET_NAME = "wulkanowy-iosTests";
TVOS_DEPLOYMENT_TARGET = "9.0";
WATCHOS_DEPLOYMENT_TARGET = "2.0";
};
name = "Release";
};
"OBJ_46" = {
isa = "PBXSourcesBuildPhase";
files = (
"OBJ_47",
"OBJ_48"
);
};
"OBJ_47" = {
isa = "PBXBuildFile";
fileRef = "OBJ_12";
};
"OBJ_48" = {
isa = "PBXBuildFile";
fileRef = "OBJ_13";
};
"OBJ_49" = {
isa = "PBXFrameworksBuildPhase";
files = (
"OBJ_50"
);
};
"OBJ_5" = {
isa = "PBXGroup";
children = (
"OBJ_6",
"OBJ_7",
"OBJ_10",
"OBJ_14",
"OBJ_17",
"OBJ_18",
"OBJ_19",
"OBJ_20",
"OBJ_21",
"OBJ_22",
"OBJ_23"
);
path = "";
sourceTree = "<group>";
};
"OBJ_50" = {
isa = "PBXBuildFile";
fileRef = "wulkanowy-ios::wulkanowy-ios::Product";
};
"OBJ_51" = {
isa = "PBXTargetDependency";
target = "wulkanowy-ios::wulkanowy-ios";
};
"OBJ_6" = {
isa = "PBXFileReference";
explicitFileType = "sourcecode.swift";
path = "Package.swift";
sourceTree = "<group>";
};
"OBJ_7" = {
isa = "PBXGroup";
children = (
"OBJ_8"
);
name = "Sources";
path = "";
sourceTree = "SOURCE_ROOT";
};
"OBJ_8" = {
isa = "PBXGroup";
children = (
"OBJ_9"
);
name = "wulkanowy-ios";
path = "Sources/wulkanowy-ios";
sourceTree = "SOURCE_ROOT";
};
"OBJ_9" = {
isa = "PBXFileReference";
path = "wulkanowy_ios.swift";
sourceTree = "<group>";
};
"wulkanowy-ios::SwiftPMPackageDescription" = {
isa = "PBXNativeTarget";
buildConfigurationList = "OBJ_32";
buildPhases = (
"OBJ_35"
);
dependencies = (
);
name = "wulkanowy-iosPackageDescription";
productName = "wulkanowy-iosPackageDescription";
productType = "com.apple.product-type.framework";
};
"wulkanowy-ios::wulkanowy-ios" = {
isa = "PBXNativeTarget";
buildConfigurationList = "OBJ_25";
buildPhases = (
"OBJ_28",
"OBJ_30"
);
dependencies = (
);
name = "wulkanowy-ios";
productName = "wulkanowy_ios";
productReference = "wulkanowy-ios::wulkanowy-ios::Product";
productType = "com.apple.product-type.framework";
};
"wulkanowy-ios::wulkanowy-ios::Product" = {
isa = "PBXFileReference";
path = "wulkanowy_ios.framework";
sourceTree = "BUILT_PRODUCTS_DIR";
};
"wulkanowy-ios::wulkanowy-iosPackageTests::ProductTarget" = {
isa = "PBXAggregateTarget";
buildConfigurationList = "OBJ_38";
buildPhases = (
);
dependencies = (
"OBJ_41"
);
name = "wulkanowy-iosPackageTests";
productName = "wulkanowy-iosPackageTests";
};
"wulkanowy-ios::wulkanowy-iosTests" = {
isa = "PBXNativeTarget";
buildConfigurationList = "OBJ_43";
buildPhases = (
"OBJ_46",
"OBJ_49"
);
dependencies = (
"OBJ_51"
);
name = "wulkanowy-iosTests";
productName = "wulkanowy_iosTests";
productReference = "wulkanowy-ios::wulkanowy-iosTests::Product";
productType = "com.apple.product-type.bundle.unit-test";
};
"wulkanowy-ios::wulkanowy-iosTests::Product" = {
isa = "PBXFileReference";
path = "wulkanowy_iosTests.xctest";
sourceTree = "BUILT_PRODUCTS_DIR";
};
};
rootObject = "OBJ_1";
}

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>

View file

@ -0,0 +1,8 @@
<?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>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
<false/>
</dict>
</plist>

View file

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</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>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>

View file

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</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>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>

View file

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme LastUpgradeVersion = "9999" version = "1.3">
<BuildAction parallelizeBuildables = "YES" buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry buildForTesting = "YES" buildForRunning = "YES" buildForProfiling = "YES" buildForArchiving = "YES" buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'lib$(TARGET_NAME)'"
BlueprintName = "wulkanowy-ios"
ReferencedContainer = "container:wulkanowy-ios.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "NO">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'$(TARGET_NAME)'"
BlueprintName = "wulkanowy-iosTests"
ReferencedContainer = "container:wulkanowy-ios.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
</Scheme>