PodfileTool 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/PodfileTool +5 -1
- data/lib/PodfileTool.rb +18 -0
- 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: a309c7109483a8e1fcd76b358fa17799c025f98a
|
4
|
+
data.tar.gz: 69f48ff61feffc6b5aadc3446bea3e85538cd5fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d48b3b78ed2dd60e1feb8df35893f58db8bf0b9d09795d7651da0c56453cf7af13147c137441b4f9bda1214171ec9df6795d5058b67bc77912d8c40d4197081e
|
7
|
+
data.tar.gz: 46034960642204edcbf03ce76d8a6f98ac0315cf1531f47cd2771fd7fc0d0497bd948461e2eaf3f25f21c6b15a008759e5c96db354a83ac1522d1fc71c04f844
|
data/bin/PodfileTool
CHANGED
data/lib/PodfileTool.rb
CHANGED
@@ -50,4 +50,22 @@ class PodfileTool
|
|
50
50
|
puts "Unable to open file!"
|
51
51
|
end
|
52
52
|
end
|
53
|
+
#
|
54
|
+
# share pod project scheme,Share a User Scheme. Basically this method move the xcscheme file from the xcuserdata folder to xcshareddata folder.
|
55
|
+
#Arguments:
|
56
|
+
# pods_project_path:(pods_project_path)
|
57
|
+
# Example3:
|
58
|
+
# >> PodfileTool.sharePodScheme("/path_of_Pod_project")
|
59
|
+
# => {json}
|
60
|
+
#
|
61
|
+
#
|
62
|
+
def self.sharePodScheme(pods_project_path)
|
63
|
+
pod_name = pods_project_path.split('/')[-4]
|
64
|
+
project = Xcodeproj::Project.open(pods_project_path)
|
65
|
+
schemes = Xcodeproj::Project.schemes(pods_project_path)
|
66
|
+
unless schemes.include? pod_name
|
67
|
+
Xcodeproj::XCScheme.share_scheme(project.path, pod_name)
|
68
|
+
end
|
69
|
+
"Success share #{pod_name}"
|
70
|
+
end
|
53
71
|
end
|