Skip to content

Commit

Permalink
Support carthage
Browse files Browse the repository at this point in the history
  • Loading branch information
W_C__L committed Mar 18, 2017
1 parent e5784c7 commit 1534aaa
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRRefresh.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
Pod::Spec.new do |s|

s.name = "CRRefresh"
s.version = "1.0.0"
s.version = "1.0.1"
s.summary = "An easy way to use pull-to-refresh"
s.homepage = "https://github.com/CRAnimation/CRRefresh"
s.license = 'MIT'
s.author = { "W_C__L" => "wangchonglei93@icloud.com" }
s.platform = :ios, "8.0"
s.source = { :git => "https://github.com/CRAnimation/CRRefresh.git", :tag => "1.0.0" }
s.source = { :git => "https://github.com/CRAnimation/CRRefresh.git", :tag => "1.0.1" }
s.source_files = ['CRRefresh/CRRefresh/*.{swift}','CRRefresh/CRRefresh/Animators/**/*.{swift}']
s.resources = 'CRRefresh/CRRefresh/Animators/**/*.{bundle}'
s.frameworks = "UIKit"
Expand Down
80 changes: 80 additions & 0 deletions CRRefresh.xcodeproj/xcshareddata/xcschemes/CRRefresh.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9753C6451E76A0D200CCBBA0"
BuildableName = "CRRefresh.framework"
BlueprintName = "CRRefresh"
ReferencedContainer = "container:CRRefresh.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9753C6451E76A0D200CCBBA0"
BuildableName = "CRRefresh.framework"
BlueprintName = "CRRefresh"
ReferencedContainer = "container:CRRefresh.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "9753C6451E76A0D200CCBBA0"
BuildableName = "CRRefresh.framework"
BlueprintName = "CRRefresh"
ReferencedContainer = "container:CRRefresh.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,29 @@

### CocoaPods

CocoaPods is the recommended way to add CRRefresh to your project.

Add a pod entry for CRRefresh to your Podfile.

```ruby
pod 'CRRefresh'
```

Second, install CRRefresh into your project:

```ruby
pod install
```
### Carthage

[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate `CRRefresh` into your Xcode project using Carthage, specify it in your `Cartfile`:

```
github "CRAnimation/CRRefresh"
```

Run `carthage update` to build the framework and drag the built `CRRefresh.framework` (in Carthage/Build/iOS folder) into your Xcode project (Linked Frameworks and Libraries in `Targets`).

### Manually

1. Download the latest code version .
Expand Down
8 changes: 8 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
pod 'CRRefresh'
```

### Carthage

使用Carthage安装

1.`Cartfile`中添加`github "CRAnimation/CRRefresh"`
2. 执行`carthage update`
3. 导入`CRRefresh.framework`

### 手动安装

1. 下载最新版本的代码
Expand Down

0 comments on commit 1534aaa

Please sign in to comment.