Skip to content

Commit dc3a1e7

Browse files
committed
Update to geos 3.10.1, Xcode 13.2
* Drop support for Carthage * Add support for watchos * Use cmake instead of autotools in update script
1 parent b7d9efe commit dc3a1e7

File tree

524 files changed

+53034
-15790
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

524 files changed

+53034
-15790
lines changed

Package.swift

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// swift-tools-version:5.1
1+
// swift-tools-version:5.3
22
import PackageDescription
33

44
let package = Package(
55
name: "geos",
6-
platforms: [.iOS(.v9), .macOS("10.9"), .tvOS(.v9)],
6+
platforms: [.iOS(.v9), .macOS("10.9"), .tvOS(.v9), .watchOS(.v2)],
77
products: [
88
.library(
99
name: "geos",
@@ -13,10 +13,45 @@ let package = Package(
1313
targets: [
1414
.target(
1515
name: "geos",
16+
exclude: ["include/geos/geom/PrecisionModel.inl",
17+
"include/geos/geomgraph/Depth.inl",
18+
"include/geos/geom/Coordinate.inl",
19+
"include/geos/geomgraph/index/SegmentIntersector.inl",
20+
"include/geos/operation/overlayng/Edge.inl",
21+
"include/geos/noding/snapround/HotPixel.inl",
22+
"include/geos/noding/SegmentNode.inl",
23+
"include/geos/geomgraph/TopologyLocation.inl",
24+
"include/geos/operation/overlayng/OverlayEdge.inl",
25+
"include/geos/io/ByteOrderDataInStream.inl",
26+
"include/geos/geomgraph/GeometryGraph.inl",
27+
"include/geos/algorithm/LineIntersector.inl",
28+
"include/geos/noding/NodingIntersectionFinder.inl",
29+
"include/geos/geom/GeometryFactory.inl",
30+
"include/geos/geom/Envelope.inl",
31+
"include/geos/operation/overlay/MinimalEdgeRing.inl",
32+
"include/geos/geomgraph/DirectedEdge.inl",
33+
"include/geos/noding/MCIndexNoder.inl",
34+
"include/geos/geom/MultiPolygon.inl",
35+
"include/geos/io/WKTReader.inl",
36+
"include/geos/algorithm/ConvexHull.inl",
37+
"include/geos/operation/overlayng/EdgeKey.inl",
38+
"include/geos/noding/BasicSegmentString.inl",
39+
"include/geos/noding/NodedSegmentString.inl",
40+
"include/geos/geom/LineSegment.inl",
41+
"include/geos/geomgraph/Label.inl",
42+
"include/geos/operation/overlayng/OverlayLabel.inl",
43+
"include/geos/algorithm/CGAlgorithmsDD.inl",
44+
"include/geos/geom/GeometryCollection.inl",
45+
"include/geos/geom/Quadrant.inl",
46+
"include/geos/geom/MultiLineString.inl",
47+
"include/geos/geom/CoordinateArraySequenceFactory.inl"],
1648
publicHeadersPath: "public",
1749
cxxSettings: [
1850
.define("USE_UNSTABLE_GEOS_CPP_API"),
19-
.headerSearchPath("include")])
51+
.define("GEOS_INLINE"),
52+
.define("NDEBUG"),
53+
.headerSearchPath("include"),
54+
.headerSearchPath("src/deps")])
2055
],
2156
cxxLanguageStandard: .cxx11
2257
)

README.md

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
# GEOS
22

3+
[![Swift Package Manager Compatible](https://img.shields.io/badge/SwiftPM-compatible-4BC51D.svg?style=flat)](https://swift.org/package-manager/)
34
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/geos.svg)](https://cocoapods.org)
4-
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
5-
[![SwiftPM Compatible](https://img.shields.io/badge/SwiftPM-compatible-4BC51D.svg?style=flat)](https://swift.org/package-manager/)
65
[![Platform](https://img.shields.io/cocoapods/p/geos.svg?style=flat)](https://github.com/GEOSwift/geos)
76

87
## Podspec
98

109
GEOS is an open source C++ library for working with geospatial geometry. Learn
1110
more on its [homepage](http://trac.osgeo.org/geos). This repo makes its C
12-
interface available through CocoaPods, Carthage, and Swift PM so you can use it
13-
in your Swift or Objective-C project. It is commonly used via
11+
interface available through Swift Package Manager and CocoaPods so you can use
12+
it in your Swift or Objective-C project. It is commonly used via
1413
[GEOSwift](https://github.com/GEOSwift/GEOSwift).
1514

1615
## Requirements
1716

18-
* iOS 9.0+, macOS 10.9+, tvOS 9.0+ (CocoaPods, Carthage, Swift PM)
19-
* Linux (Swift PM)
17+
* iOS 9.0+, macOS 10.9+, tvOS 9.0+ (Swift Package Manager, CocoaPods)
18+
* Linux (Swift Package Manager)
2019

2120
> GEOS is licensed under LGPL 2.1 and its compatibility with static linking is
2221
at least controversial. Use of geos without dynamic linking is discouraged.
@@ -30,20 +29,11 @@ at least controversial. Use of geos without dynamic linking is discouraged.
3029

3130
2. Run `$ pod install`
3231

33-
## Installing with Carthage
34-
35-
1. Update your `Cartfile` to include:
36-
37-
github "GEOSwift/geos" ~> 6.0.2
38-
39-
2. Finish updating your project by following the [typical Carthage
40-
workflow](https://github.com/Carthage/Carthage#quick-start).
41-
42-
## Installing with Swift PM
32+
## Installing with Swift Package Manager
4333

4434
1. Update the top-level dependencies in your `Package.swift` to include:
4535

46-
.package(url: "https://github.com/GEOSwift/geos.git", from: "6.0.2")
36+
.package(url: "https://github.com/GEOSwift/geos.git", from: "7.0.0")
4737

4838
2. Update the target dependencies in your `Package.swift` to include
4939

@@ -80,16 +70,15 @@ details.
8070
The most common development activity is updating to a new version of GEOS. To
8171
get started:
8272

83-
1. Install autotools: `$ brew install autoconf automake libtool`
73+
1. Install cmake: `$ brew install cmake`
8474
2. Modify `update.sh` to indicate the version of GEOS that you wish to use.
8575
3. Run `update.sh`
8676
4. Debug any issues. The script may need to be modified to work with newer
8777
versions of the library. Please keep it up-to-date so that we have a record of
8878
how to get from the GEOS source to the end result in this repo.
89-
5. Update `geos.podspec`, `geos.xcodeproj`, and `Package.swift` to ensure
90-
continued support for CocoaPods, Carthage, and Swift PM.
91-
6. Test all your changes on the full matrix of supported configs (CocoaPods,
92-
Carthage, Swift PM) x (iOS, macOS, tvOS) + Swift PM x Linux.
93-
7. Update the version numbers in `Resources/Info.plist`, `geos.podspec`,
94-
and `README.md`
79+
5. Update `Package.swift` and `geos.podspec` to ensure
80+
continued support for Swift Package Manager and CocoaPods.
81+
6. Test all your changes on the full matrix of supported configs
82+
(Swift Package Manager, CocoaPods) x (iOS, macOS, tvOS) + Swift PackageManager x Linux.
83+
7. Update the version numbers in `geos.podspec` and `README.md`
9584
8. Update this README with any relevant information.

Resources/Info.plist

Lines changed: 0 additions & 22 deletions
This file was deleted.

Resources/geos.h

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)