Skip to content

Commit

Permalink
Merge pull request #5 from vinted/swift-package-manager-2
Browse files Browse the repository at this point in the history
Swift Package manager Support
  • Loading branch information
abackys authored Nov 3, 2021
2 parents 5c668bf + fcf5c03 commit e3a924d
Show file tree
Hide file tree
Showing 21 changed files with 160 additions and 109 deletions.
46 changes: 46 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "VGHtmlParser",
platforms: [
.iOS(.v11)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "VGHtmlParserDynamic",
type: .dynamic,
targets: ["VGHtmlParser"]
),
.library(
name: "VGHtmlParserStatic",
type: .static,
targets: ["VGHtmlParser"]
)
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "VGHtmlParser",
dependencies: [
.target(name: "hpple")
],
path: "VGHtmlParser/Classes",
sources: ["."],
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("Private/DefaultTransformers"),
.headerSearchPath("Private/VintedTransformers")
]
),
.target(
name: "hpple",
path: "VGHtmlParser/Dependencies/hpple/Classes",
publicHeadersPath: "."
)
]
)
193 changes: 101 additions & 92 deletions VGHtmlParser.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
//

#import <Foundation/Foundation.h>
#import <VGHtmlParser/VGHtmlTagTransform.h>
#import "VGHtmlTagTransform.h"


extern NSString * const VintedLinkAttributeName;

@interface HtmlATagTransform : NSObject<VGHtmlTagTransform>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import <VGHtmlParser/VGHtmlTagTransform.h>
#import "VGHtmlTagTransform.h"

@interface HtmlBTagTransform : NSObject<VGHtmlTagTransform>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2014 Vinted. All rights reserved.
//

@import UIKit;
#import <UIKit/UIKit.h>
#import "HtmlBTagTransform.h"

@implementation HtmlBTagTransform
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import <VGHtmlParser/VGHtmlTagTransform.h>
#import "VGHtmlTagTransform.h"

@interface HtmlITagTransform : NSObject<VGHtmlTagTransform>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2014 Vinted. All rights reserved.
//

@import UIKit;
#import <UIKit/UIKit.h>
#import "HtmlITagTransform.h"

@implementation HtmlITagTransform
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import <Foundation/Foundation.h>
#import <VGHtmlParser/VGHtmlTagTransform.h>
#import "VGHtmlTagTransform.h"

@interface HtmlLiTagTransform : NSObject<VGHtmlTagTransform>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import UIKit;
#import <UIKit/UIKit.h>
#import "HtmlLiTagTransform.h"

@implementation HtmlLiTagTransform
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#import <UIKit/UIKit.h>
#import <VGHtmlParser/VGHtmlTagTransform.h>
#import <VGHtmlParser/HtmlATagTransform.h>
#import <VGHtmlParser/HtmlITagTransform.h>
#import <VGHtmlParser/HtmlBTagTransform.h>
#import <VGHtmlParser/HtmlLiTagTransform.h>
#import <VGHtmlParser/XPathQuery.h>
#import "VGHtmlTagTransform.h"

extern NSString * _Nonnull const VintedLinkAttributeName;
extern NSString * __nonnull const VGHtmlParserMissingTagNameException;

@interface VGHtmlParser : NSObject
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <Foundation/Foundation.h>
#import <VGHtmlParser/TFHpple.h>
#import "TFHpple.h"

@protocol VGHtmlTagTransform <NSObject>

Expand Down
2 changes: 1 addition & 1 deletion VGHtmlParser/Dependencies/hpple/Classes/TFHpple.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


#import <Foundation/Foundation.h>
#import <VGHtmlParser/TFHppleElement.h>
#import "TFHppleElement.h"

@interface TFHpple : NSObject

Expand Down

0 comments on commit e3a924d

Please sign in to comment.