Skip to content

Commit

Permalink
Update for 0.7.8 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Jul 24, 2024
1 parent c386c9b commit 3efd582
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
fail-fast: false
matrix:
macos:
- 11
- 13
- 12
- 14
xcode:
- latest-stable
runs-on: macos-${{ matrix.macos }}
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## [0.7.8](https://github.com/nicklockwood/Euclid/releases/tag/0.7.8) (2024-07-23)

- Fixed some bugs with `Path` subpaths
- Added support for watchOS

## [0.7.7](https://github.com/nicklockwood/Euclid/releases/tag/0.7.7) (2024-02-11)

- Added method to create a `Path` from a set of `LineSegment`s
Expand Down
4 changes: 2 additions & 2 deletions Euclid.podspec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Euclid",
"version": "0.7.7",
"version": "0.7.8",
"license": {
"type": "MIT",
"file": "LICENSE.md"
Expand All @@ -10,7 +10,7 @@
"authors": "Nick Lockwood",
"source": {
"git": "https://github.com/nicklockwood/Euclid.git",
"tag": "0.7.7"
"tag": "0.7.8"
},
"source_files": "Sources",
"requires_arc": true,
Expand Down
12 changes: 10 additions & 2 deletions Euclid.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.7.7;
MARKETING_VERSION = 0.7.8;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14";
OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=75";
Expand All @@ -807,6 +807,9 @@
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,3,7";
TVOS_DEPLOYMENT_TARGET = 11.0;
WATCHOS_DEPLOYMENT_TARGET = 4.0;
XROS_DEPLOYMENT_TARGET = 1.0;
};
name = Debug;
};
Expand All @@ -833,7 +836,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.7.7;
MARKETING_VERSION = 0.7.8;
MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++";
MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++14";
OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=75";
Expand All @@ -845,6 +848,9 @@
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,3,7";
TVOS_DEPLOYMENT_TARGET = 11.0;
WATCHOS_DEPLOYMENT_TARGET = 4.0;
XROS_DEPLOYMENT_TARGET = 1.0;
};
name = Release;
};
Expand All @@ -871,6 +877,7 @@
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,3,6";
TVOS_DEPLOYMENT_TARGET = 11.0;
};
name = Debug;
};
Expand All @@ -897,6 +904,7 @@
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2,3,6";
TVOS_DEPLOYMENT_TARGET = 11.0;
};
name = Release;
};
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ Euclid is packaged as a dynamic framework that you can import into your Xcode pr
To install Euclid using CocoaPods, add the following to your Podfile:

```ruby
pod 'Euclid', '~> 0.7.7'
pod 'Euclid', '~> 0.7.8'
```

To install using Carthage, add this to your Cartfile:

```ogdl
github "nicklockwood/Euclid" ~> 0.7.7
github "nicklockwood/Euclid" ~> 0.7.8
```

To install using Swift Package Manager, add this to the `dependencies:` section in your Package.swift file:

```swift
.package(url: "https://github.com/nicklockwood/Euclid.git", .upToNextMinor(from: "0.7.7")),
.package(url: "https://github.com/nicklockwood/Euclid.git", .upToNextMinor(from: "0.7.8")),
```


Expand Down
14 changes: 8 additions & 6 deletions Tests/SceneKitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ class SceneKitTests: XCTestCase {
}

func testImportedSTLFileHasFixedNormals() throws {
let cubeFile = URL(fileURLWithPath: #file)
.deletingLastPathComponent().appendingPathComponent("Cube.stl")
let cube = try Mesh(url: cubeFile, ignoringTransforms: false)
XCTAssert(cube.polygons.allSatisfy { polygon in
polygon.vertices.allSatisfy { $0.normal == polygon.plane.normal }
})
if #available(macOS 13, *) { // workaround for macOS 12 bug
let cubeFile = URL(fileURLWithPath: #file)
.deletingLastPathComponent().appendingPathComponent("Cube.stl")
let cube = try Mesh(url: cubeFile, ignoringTransforms: false)
XCTAssert(cube.polygons.allSatisfy { polygon in
polygon.vertices.allSatisfy { $0.normal == polygon.plane.normal }
})
}
}

func testExportImportTriangles() throws {
Expand Down

0 comments on commit 3efd582

Please sign in to comment.