Skip to content

Commit 884977e

Browse files
committed
Adds Swift Package Manager support
1 parent ef7beb4 commit 884977e

32 files changed

+117
-135
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Pods
55
xcuserdata/
66
*.swp
77
Carthage/
8+
.build/

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Adheres to [Semantic Versioning](http://semver.org/).
44

55
---
66

7-
## 4.2.6 (TBD)
7+
## 5.0.0
88

9-
* TBD
9+
* Integrated sf-geojson-ios 5.0.0 (NS_ENUM Interoperability fixes)
1010

1111
## [4.2.5](https://github.com/ngageoint/ogc-api-features-json-ios/releases/tag/4.2.5) (04-08-2024)
1212

Package.resolved

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// swift-tools-version: 5.10
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "OGC_APIFeaturesJSON",
7+
platforms: [
8+
.iOS(.v13), .macOS(.v12)
9+
],
10+
products: [
11+
.library(
12+
name: "OGC_APIFeaturesJSON",
13+
targets: ["OGC_APIFeaturesJSON"])
14+
],
15+
dependencies: [
16+
.package(url: "https://github.com/ngageoint/simple-features-geojson-ios", branch: "psolt/Package"), // FIXME: Update to published release (5.0.0 version)
17+
],
18+
targets: [
19+
.target(
20+
name: "OGC_APIFeaturesJSON",
21+
dependencies: [
22+
.product(name: "SimpleFeaturesGeoJSON", package: "simple-features-geojson-ios")
23+
],
24+
path: "ogc-api-features-json-ios"
25+
),
26+
.testTarget(
27+
name: "OGCAPIFeaturesJSONTests",
28+
dependencies: [
29+
"OGC_APIFeaturesJSON"
30+
],
31+
path: "ogc-api-features-json-iosTests",
32+
)
33+
]
34+
)

ogc-api-features-json-ios/Info.plist

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

ogc-api-features-json-ios/OAFCollection.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
// Copyright © 2019 NGA. All rights reserved.
77
//
88

9-
#import "OAFCollection.h"
10-
#import "OAFFeaturesConverter.h"
9+
#import <OGC_APIFeaturesJSON/OAFCollection.h>
10+
#import <OGC_APIFeaturesJSON/OAFFeaturesConverter.h>
1111

1212
NSString * const OAF_ID = @"id";
1313
NSString * const OAF_DESCRIPTION = @"description";

ogc-api-features-json-ios/OAFCollections.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
// Copyright © 2019 NGA. All rights reserved.
77
//
88

9-
#import "OAFCollections.h"
10-
#import "OAFFeaturesConverter.h"
9+
#import <OGC_APIFeaturesJSON/OAFCollections.h>
10+
#import <OGC_APIFeaturesJSON/OAFFeaturesConverter.h>
1111

1212
NSString * const OAF_COLLECTIONS = @"collections";
1313

ogc-api-features-json-ios/OAFCrs.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2019 NGA. All rights reserved.
77
//
88

9-
#import "OAFCrs.h"
9+
#import <OGC_APIFeaturesJSON/OAFCrs.h>
1010

1111
NSString *const OAF_CRS_PATTERN = @"http.+/([^/]+)/([^/]+)/([^/]+)$";
1212
int const OAF_CRS_PATTERN_AUTHORITY_GROUP = 1;

ogc-api-features-json-ios/OAFExtent.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
// Copyright © 2019 NGA. All rights reserved.
77
//
88

9-
#import "OAFExtent.h"
10-
#import "OAFFeaturesConverter.h"
9+
#import <OGC_APIFeaturesJSON/OAFExtent.h>
10+
#import <OGC_APIFeaturesJSON/OAFFeaturesConverter.h>
1111

1212
NSString * const OAF_SPATIAL = @"spatial";
1313
NSString * const OAF_TEMPORAL = @"temporal";

ogc-api-features-json-ios/OAFFeatureCollection.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
// Copyright © 2019 NGA. All rights reserved.
77
//
88

9-
#import "OAFFeatureCollection.h"
10-
#import "OAFFeaturesConverter.h"
11-
#import "SFGFeatureConverter.h"
9+
#import <OGC_APIFeaturesJSON/OAFFeatureCollection.h>
10+
#import <OGC_APIFeaturesJSON/OAFFeaturesConverter.h>
11+
12+
@import SimpleFeaturesGeoJSON;
1213

1314
NSString * const OAF_LINKS = @"links";
1415
NSString * const OAF_TIME_STAMP = @"timeStamp";

0 commit comments

Comments
 (0)