Skip to content

Commit

Permalink
Merge pull request #5 from cookpad/ln/cocoapods
Browse files Browse the repository at this point in the history
Reintroduce CocoaPod support
  • Loading branch information
tera-ny authored Jan 29, 2024
2 parents 3ac67af + a86f11e commit 3fba821
Show file tree
Hide file tree
Showing 18 changed files with 49 additions and 25 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,13 @@ jobs:
uses: actions/checkout@v3
- name: Run Tests
run: xcodebuild clean test -scheme TwitterImagePipeline-Package -destination '${{ matrix.destination }}'

cocoapods:
name: CocoaPods
runs-on: macOS-13
env:
DEVELOPER_DIR: /Applications/Xcode_15.2.app/Contents/Developer
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Validate the Pod
run: pod lib lint TwitterImagePipeline.podspec --allow-warnings
2 changes: 1 addition & 1 deletion Sources/TwitterImagePipeline/TIP_ProjectCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#import <Foundation/Foundation.h>

#import <TIPLogger.h>
#import "TIPLogger.h"


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

#import <Foundation/Foundation.h>
#import <TIPImageCodecs.h>
#import "TIPImageCodecs.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion Sources/TwitterImagePipeline/include/TIPImageCodecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import <CoreGraphics/CGGeometry.h>
#import <Foundation/Foundation.h>
#import <TIPImageTypes.h>
#import "TIPImageTypes.h"
#import <UIKit/UIView.h> // UIViewContentMode

@protocol TIPImageEncoder;
Expand Down
2 changes: 1 addition & 1 deletion Sources/TwitterImagePipeline/include/TIPImageContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import <ImageIO/CGImageSource.h>
#import <TIPImageUtils.h>
#import "TIPImageUtils.h"
#import <UIKit/UIImage.h>
#import <UIKit/UIView.h>

Expand Down
4 changes: 2 additions & 2 deletions Sources/TwitterImagePipeline/include/TIPImageFetchDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// Copyright (c) 2015 Twitter. All rights reserved.
//

#import <TIPDefinitions.h>
#import <TIPImageUtils.h>
#import "TIPDefinitions.h"
#import "TIPImageUtils.h"
#import <UIKit/UIImage.h>
#import <UIKit/UIView.h>

Expand Down
4 changes: 2 additions & 2 deletions Sources/TwitterImagePipeline/include/TIPImageFetchMetrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#import <Foundation/Foundation.h>

#import <TIPDefinitions.h>
#import <TIPImageFetchOperation.h>
#import "TIPDefinitions.h"
#import "TIPImageFetchOperation.h"

@class TIPImageFetchMetricInfo;

Expand Down
8 changes: 4 additions & 4 deletions Sources/TwitterImagePipeline/include/TIPImageFetchOperation.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
// Copyright (c) 2015 Twitter. All rights reserved.
//

#import <TIPDefinitions.h>
#import <TIPImageContainer.h>
#import <TIPImageUtils.h>
#import <TIPSafeOperation.h>
#import "TIPDefinitions.h"
#import "TIPImageContainer.h"
#import "TIPImageUtils.h"
#import "TIPSafeOperation.h"
#import <UIKit/UIImage.h>

@class TIPImagePipeline;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2015 Twitter. All rights reserved.
//

#import <TIPProgressive.h>
#import "TIPProgressive.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
4 changes: 2 additions & 2 deletions Sources/TwitterImagePipeline/include/TIPImageFetchRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// Copyright © 2020 Twitter. All rights reserved.
//

#import <TIPDefinitions.h>
#import <TIPProgressive.h>
#import "TIPDefinitions.h"
#import "TIPProgressive.h"

@protocol TIPImageFetchOperationUnderlyingContext;
@protocol TIPImageFetchTransformer;
Expand Down
2 changes: 1 addition & 1 deletion Sources/TwitterImagePipeline/include/TIPImageUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import <ImageIO/CGImageProperties.h>
#import <ImageIO/CGImageSource.h>
#import <TIPImageTypes.h>
#import "TIPImageTypes.h"
#import <UIKit/UIImage.h>
#import <UIKit/UIScreen.h>
#import <UIKit/UIView.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// Copyright © 2020 Twitter. All rights reserved.
//

#import <TIPImageFetchDelegate.h>
#import <TIPImageUtils.h>
#import "TIPImageFetchDelegate.h"
#import "TIPImageUtils.h"
#import <UIKit/UIView.h>

@class TIPImageFetchMetrics;
Expand Down
2 changes: 1 addition & 1 deletion Sources/TwitterImagePipeline/include/TIPProgressive.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#import <Foundation/Foundation.h>

#import <TIPImageUtils.h>
#import "TIPImageUtils.h"

@class TIPImageFetchOperation;

Expand Down
4 changes: 2 additions & 2 deletions Sources/TwitterImagePipeline/include/UIImage+TIPAdditions.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//

#import <ImageIO/ImageIO.h>
#import <TIPImageTypes.h>
#import <TIPImageUtils.h>
#import "TIPImageTypes.h"
#import "TIPImageUtils.h"
#import <UIKit/UIImage.h>

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

#import <TIPImageFetchable.h>
#import "TIPImageFetchable.h"
#import <UIKit/UIImageView.h>

@class TIPImageViewFetchHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2020 Twitter. All rights reserved.
//

#import <TIPImageCodecs.h>
#import "TIPImageCodecs.h"

@protocol TIPXMP4DecoderConfig;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2020 Twitter. All rights reserved.
//

#import <TIPImageCodecs.h>
#import "TIPImageCodecs.h"


NS_ASSUME_NONNULL_BEGIN
Expand Down
15 changes: 15 additions & 0 deletions TwitterImagePipeline.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Pod::Spec.new do |s|
s.name = 'TwitterImagePipeline'
s.version = '2.25.2'
s.compiler_flags = '-DTIP_PROJECT_VERSION=2.25'
s.summary = 'Twitter Image Pipeline is a robust and performant image loading and caching framework for iOS'
s.description = 'Twitter created a framework for image loading/caching in order to fulfill the numerous needs of Twitter for iOS including being fast, safe, modular and versatile.'
s.homepage = 'https://github.com/twitter/ios-twitter-image-pipeline'
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' }
s.author = { 'Twitter' => '[email protected]' }
s.source = { :git => 'https://github.com/twitter/ios-twitter-image-pipeline.git', :tag => s.version.to_s }
s.ios.deployment_target = '10.0'
s.swift_versions = [ 5.0 ]
s.source_files = 'Sources/TwitterImagePipeline/**/*.{h,m}', 'Sources/TIPUtils/**/*.{h,m}'
s.public_header_files = 'Sources/TwitterImagePipeline/include/*.h'
end

0 comments on commit 3fba821

Please sign in to comment.