-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include iOS scheme in Xcode package. Clean up Xcode project.
- Loading branch information
Showing
12 changed files
with
174 additions
and
50 deletions.
There are no files selected for viewing
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
77 changes: 77 additions & 0 deletions
77
NumberKit.xcodeproj/xcshareddata/xcschemes/NumberKit iOS.xcscheme
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,77 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1130" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "CCD2603823F20F7200DFE5A4" | ||
BuildableName = "NumberKit iOS.framework" | ||
BlueprintName = "NumberKit iOS" | ||
ReferencedContainer = "container:NumberKit.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "CC99F5581B7AA6E200355E1E" | ||
BuildableName = "NumberKitTests.xctest" | ||
BlueprintName = "NumberKitTests" | ||
ReferencedContainer = "container:NumberKit.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
</Testables> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "CCD2603823F20F7200DFE5A4" | ||
BuildableName = "NumberKit iOS.framework" | ||
BlueprintName = "NumberKit iOS" | ||
ReferencedContainer = "container:NumberKit.xcodeproj"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
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
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 |
---|---|---|
|
@@ -12,38 +12,47 @@ each represented as a struct: | |
2. `Rational`: signed rational numbers | ||
3. `Complex`: complex floating-point numbers | ||
|
||
**Requirements**: | ||
- Xcode 11.4 | ||
- Swift 5.2 | ||
- macOS with Xcode or Swift Package Manager | ||
- Linux with Swift Package Manager | ||
|
||
**Note**: So far, with every major version of Swift, Apple decided to change the foundational APIs of the numeric | ||
types in Swift significantly and consistently in a backward incompatible way. In order to be more isolated from | ||
such changes in future, with Swift 3, I decided to introduce a distinct integer type used in NumberKit based on a | ||
new protocol `IntegerNumber`. All standard numeric integer types implement this protocol. This is now consistent | ||
with the usage of protocol `FloatingPointNumber` for floating point numbers, where there was, so far, never a | ||
real, generic enough foundation (and still isn't). | ||
|
||
|
||
## BigInt | ||
|
||
`BigInt` objects are immutable, signed, arbitrary-precision integers that can be used as a | ||
drop-in replacement for the existing binary integer types of Swift 5. Struct `BigInt` defines all | ||
drop-in replacement for the existing binary integer types of Swift 5. | ||
[Struct `BigInt`](https://github.com/objecthub/swift-numberkit/blob/master/Sources/NumberKit/BigInt.swift) defines all | ||
the standard arithmetic integer operations and implements the corresponding protocols defined | ||
in the standard library. | ||
|
||
|
||
## Rational | ||
|
||
Struct `Rational<T>` defines immutable, rational numbers based on an existing signed integer | ||
[Struct `Rational<T>`](https://github.com/objecthub/swift-numberkit/blob/master/Sources/NumberKit/Rational.swift) | ||
defines immutable, rational numbers based on an existing signed integer | ||
type `T`, like `Int32`, `Int64`, or `BigInt`. A rational number is a signed number that can | ||
be expressed as the quotient of two integers _a_ and _b_: _a / b_. | ||
|
||
|
||
## Complex | ||
|
||
Struct `Complex<T>` defines complex numbers based on an existing floating point type `T`, | ||
like `Float` or `Double`. A complex number consists of two components, a real part _re_ | ||
and an imaginary part _im_ and is typically written as: _re + im * i_ where _i_ is | ||
the _imaginary unit_. | ||
[Struct `Complex<T>`](https://github.com/objecthub/swift-numberkit/blob/master/Sources/NumberKit/Complex.swift) | ||
defines complex numbers based on an existing floating point type `T`, like `Float` or `Double`. A complex number | ||
consists of two components, a real part _re_ and an imaginary part _im_ and is typically written as: _re + im * i_ | ||
where _i_ is the _imaginary unit_. | ||
|
||
## Requirements | ||
|
||
The following technologies are needed to build the components of the _Swift NumberKit_ framework: | ||
|
||
- [Xcode 11.4](https://developer.apple.com/xcode/) | ||
- [Swift 5.2](https://developer.apple.com/swift/) | ||
- [Swift Package Manager](https://swift.org/package-manager/) | ||
- macOS or Linux | ||
|
||
## Copyright | ||
|
||
Author: Matthias Zenger (<[email protected]>) | ||
Copyright © 2016-2020 Matthias Zenger. All rights reserved. |
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
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
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
Oops, something went wrong.