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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"originHash" : "f1fe69523c01f3f616889f74e9def3e9cf39e8a371c1a1909068977abd002349",
3+
"pins" : [
4+
{
5+
"identity" : "simple-features-geojson-ios",
6+
"kind" : "remoteSourceControl",
7+
"location" : "https://github.com/ngageoint/simple-features-geojson-ios",
8+
"state" : {
9+
"branch" : "psolt/Package",
10+
"revision" : "79674f41f5d8be1e39922cf77b45362869bb8113"
11+
}
12+
},
13+
{
14+
"identity" : "simple-features-ios",
15+
"kind" : "remoteSourceControl",
16+
"location" : "https://github.com/ngageoint/simple-features-ios",
17+
"state" : {
18+
"branch" : "psolt/v5-NS_ENUM_Package",
19+
"revision" : "0050585703585a94bca5c8530a6c45de10c0293c"
20+
}
21+
}
22+
],
23+
"version" : 3
24+
}

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";

ogc-api-features-json-ios/OAFFeaturesConverter.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 "OAFFeaturesConverter.h"
10-
#import "SFGFeatureConverter.h"
9+
#import <OGC_APIFeaturesJSON/OAFFeaturesConverter.h>
10+
#import <SimpleFeaturesGeoJSON/SimpleFeaturesGeoJSON.h>
1111

1212
@implementation OAFFeaturesConverter
1313

ogc-api-features-json-ios/OAFFeaturesObject.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 "OAFFeaturesObject.h"
10-
#import "SFGOrderedDictionary.h"
9+
#import <OGC_APIFeaturesJSON/OAFFeaturesObject.h>
10+
@import SimpleFeaturesGeoJSON;
1111

1212
@implementation OAFFeaturesObject
1313

ogc-api-features-json-ios/OAFLink.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 "OAFLink.h"
9+
#import <OGC_APIFeaturesJSON/OAFLink.h>
1010

1111
NSString * const OAF_HREF = @"href";
1212
NSString * const OAF_REL = @"rel";

ogc-api-features-json-ios/OAFSpatial.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 "OAFSpatial.h"
9+
#import <OGC_APIFeaturesJSON/OAFSpatial.h>
1010

1111
NSString * const OAF_BBOX = @"bbox";
1212
NSString * const OAF_CRS = @"crs";

ogc-api-features-json-ios/OAFTemporal.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 "OAFTemporal.h"
9+
#import <OGC_APIFeaturesJSON/OAFTemporal.h>
1010

1111
NSString * const OAF_INTERVAL = @"interval";
1212
NSString * const OAF_TRS = @"trs";

ogc-api-features-json-ios/OAFCollection.h renamed to ogc-api-features-json-ios/include/OGC_APIFeaturesJSON/OAFCollection.h

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 "OAFLink.h"
10-
#import "OAFExtent.h"
9+
#import <OGC_APIFeaturesJSON/OAFLink.h>
10+
#import <OGC_APIFeaturesJSON/OAFExtent.h>
1111

1212
/**
1313
* id property name

ogc-api-features-json-ios/OAFCollections.h renamed to ogc-api-features-json-ios/include/OGC_APIFeaturesJSON/OAFCollections.h

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 "OAFCollection.h"
9+
#import <OGC_APIFeaturesJSON/OAFCollection.h>
1010

1111
/**
1212
* collections property name

ogc-api-features-json-ios/OAFExtent.h renamed to ogc-api-features-json-ios/include/OGC_APIFeaturesJSON/OAFExtent.h

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 "OAFSpatial.h"
10-
#import "OAFTemporal.h"
9+
#import <OGC_APIFeaturesJSON/OAFSpatial.h>
10+
#import <OGC_APIFeaturesJSON/OAFTemporal.h>
1111

1212
/**
1313
* spatial property name

ogc-api-features-json-ios/OAFFeatureCollection.h renamed to ogc-api-features-json-ios/include/OGC_APIFeaturesJSON/OAFFeatureCollection.h

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 "SFGFeatureCollection.h"
10-
#import "OAFLink.h"
9+
#import <SimpleFeaturesGeoJSON/SimpleFeaturesGeoJSON.h>
10+
#import <OGC_APIFeaturesJSON/OAFLink.h>
1111

1212
/**
1313
* Links property name

ogc-api-features-json-ios/OAFFeaturesConverter.h renamed to ogc-api-features-json-ios/include/OGC_APIFeaturesJSON/OAFFeaturesConverter.h

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 "OAFFeatureCollection.h"
9+
#import <OGC_APIFeaturesJSON/OAFCollections.h>
10+
#import <OGC_APIFeaturesJSON/OAFFeatureCollection.h>
1111

1212
/**
1313
* Features Converter

ogc-api-features-json-ios/OAFLink.h renamed to ogc-api-features-json-ios/include/OGC_APIFeaturesJSON/OAFLink.h

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 "OAFFeaturesObject.h"
9+
#import <OGC_APIFeaturesJSON/OAFFeaturesObject.h>
1010

1111
/**
1212
* href property name

ogc-api-features-json-ios/OAFSpatial.h renamed to ogc-api-features-json-ios/include/OGC_APIFeaturesJSON/OAFSpatial.h

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 "OAFFeaturesObject.h"
9+
#import <OGC_APIFeaturesJSON/OAFFeaturesObject.h>
1010

1111
/**
1212
* bbox property name

ogc-api-features-json-ios/OAFTemporal.h renamed to ogc-api-features-json-ios/include/OGC_APIFeaturesJSON/OAFTemporal.h

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 "OAFFeaturesObject.h"
9+
#import <OGC_APIFeaturesJSON/OAFFeaturesObject.h>
1010

1111
/**
1212
* interval property name
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
// OGC_APIFeaturesJSON.h
3+
// ogc-api-features-json-ios
4+
//
5+
// Created by Brian Osborn on 8/6/19.
6+
// Copyright (c) 2019 NGA. All rights reserved.
7+
//
8+
9+
#ifndef ogc_api_features_json_ios_ogc_api_features_json_ios_h
10+
#define ogc_api_features_json_ios_ogc_api_features_json_ios_h
11+
12+
#import <OGC_APIFeaturesJSON/OAFCollection.h>
13+
#import <OGC_APIFeaturesJSON/OAFCollections.h>
14+
#import <OGC_APIFeaturesJSON/OAFCrs.h>
15+
#import <OGC_APIFeaturesJSON/OAFExtent.h>
16+
#import <OGC_APIFeaturesJSON/OAFFeatureCollection.h>
17+
#import <OGC_APIFeaturesJSON/OAFFeaturesConverter.h>
18+
#import <OGC_APIFeaturesJSON/OAFFeaturesObject.h>
19+
#import <OGC_APIFeaturesJSON/OAFLink.h>
20+
#import <OGC_APIFeaturesJSON/OAFSpatial.h>
21+
#import <OGC_APIFeaturesJSON/OAFTemporal.h>
22+
23+
#endif

ogc-api-features-json-ios/ogc-api-features-json-ios-Bridging-Header.h

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

ogc-api-features-json-ios/ogc-api-features-json-ios-Prefix.pch

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

ogc-api-features-json-ios/ogc_api_features_json_ios.h

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

ogc-api-features-json-ios/ogc_api_features_json_ios.swift

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

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

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

0 commit comments

Comments
 (0)