CarthagePods 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -2
- data/lib/CarthagePods/version.rb +1 -1
- data/lib/ENV/DependencyCheck.rb +5 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74f916b29edbcf3e064ccda1c8d441f60971fcf9
|
4
|
+
data.tar.gz: f88170a3d874a9ab9aec74a61538d9e1ab229b2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aefd0a0bfe6ac77ded9824425248cb7c1de9509d7643317b36546b0c18a4f5b40dacce1a5812a5e4d92b0c13664b7d3317ce1adbd1383ca4a8f2d9a07ff310f8
|
7
|
+
data.tar.gz: 5e0b7d101442826db576aaa2d6df43938684e461995777cc4af7a0dd5685d1a3ff4883622a0af743668d93a79da9d8016c02250c227cb32d6e3207957c99c212
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# CarthagePods
|
2
2
|
|
3
|
-
The Cocoa dependency manager.
|
3
|
+
The Cocoa dependency manager. The Use of [CocoaPods](https://github.com/CocoaPods/CocoaPods) and [Carthage](https://github.com/Carthage/Carthage) dependency manager on together.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -22,7 +22,18 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
25
|
+
|
26
|
+
* Run `carthagePods init` in your project directory. Your project directory in generate `Podfile`,`Cartfile`,`CPodfile` .
|
27
|
+
* If you want to use `CocoaPods` manager dependencies between libraries . You can edit `Podfile` add your dependencies. [Detailed see](https://guides.cocoapods.org/using/using-cocoapods.html).
|
28
|
+
* If you want to use `Carthage` manager dependencies and compile framework. You can edit `Cartfile` add your dependencies. [Detailed see](https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md#cartfile).
|
29
|
+
* `CarthagePods` `Carthage` compile framework will be packaged into a `pod lib`. `CPodfile` provides a method of filtering framework.
|
30
|
+
|
31
|
+
```
|
32
|
+
filterFramework ['RxTest.framework', 'RxBlocking.framework']
|
33
|
+
```
|
34
|
+
|
35
|
+
* Run `carthagePods install` in your project directory.
|
36
|
+
* Open `App.xcworkspace` and build.
|
26
37
|
|
27
38
|
## Development
|
28
39
|
|
data/lib/CarthagePods/version.rb
CHANGED
data/lib/ENV/DependencyCheck.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require 'pastel'
|
2
2
|
class DependencyCheck
|
3
3
|
|
4
4
|
def self.carthage?
|
@@ -29,15 +29,13 @@ class DependencyCheck
|
|
29
29
|
def self.checkEnv
|
30
30
|
|
31
31
|
if !DependencyCheck.carthage?
|
32
|
-
|
33
|
-
puts
|
34
|
-
|
32
|
+
pastel = Pastel.new
|
33
|
+
puts pastel.red('[Error] Please install the Carhage. Use commend') + pastel.green(" [sudo] brew install carthage")
|
35
34
|
end
|
36
35
|
|
37
36
|
if !DependencyCheck.cocoapods?
|
38
|
-
|
39
|
-
puts
|
40
|
-
|
37
|
+
pastel = Pastel.new
|
38
|
+
puts pastel.red('[Error] Please install the Cocoapods. Use commend') + pastel.green(" [sudo] gem install cocoapods")
|
41
39
|
end
|
42
40
|
|
43
41
|
end
|