cocoapods-acknowledgements-addons 0.1.0
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 +7 -0
- data/.gitignore +50 -0
- data/.gitmodules +3 -0
- data/CHANGELOG.md +10 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +100 -0
- data/LICENSE +21 -0
- data/README.md +49 -0
- data/Rakefile +14 -0
- data/cocoapods_acknowledgements_addons.gemspec +26 -0
- data/example/.gitignore +36 -0
- data/example/Acknowledgements/Crypto/Crypto.podspec +8 -0
- data/example/Acknowledgements/Crypto/LICENSE +1 -0
- data/example/App.xcodeproj/project.pbxproj +402 -0
- data/example/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/example/App.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- data/example/App.xcworkspace/contents.xcworkspacedata +13 -0
- data/example/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- data/example/App/AppDelegate.swift +25 -0
- data/example/App/Assets.xcassets/AppIcon.appiconset/Contents.json +98 -0
- data/example/App/Assets.xcassets/Contents.json +6 -0
- data/example/App/Base.lproj/LaunchScreen.storyboard +25 -0
- data/example/App/Info.plist +41 -0
- data/example/Cartfile +3 -0
- data/example/Cartfile.resolved +3 -0
- data/example/Gemfile +5 -0
- data/example/Gemfile.lock +94 -0
- data/example/Makefile +8 -0
- data/example/Podfile +15 -0
- data/example/Podfile.lock +16 -0
- data/example/README.md +32 -0
- data/lib/cocoapods_acknowledgements/addons.rb +29 -0
- data/lib/cocoapods_acknowledgements/addons/plist_modifier.rb +36 -0
- data/lib/cocoapods_acknowledgements/addons/podspec_accumulator.rb +34 -0
- data/lib/cocoapods_plugin.rb +1 -0
- data/lib/version.rb +5 -0
- metadata +135 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Workspace
|
3
|
+
version = "1.0">
|
4
|
+
<FileRef
|
5
|
+
location = "group:Cartfile">
|
6
|
+
</FileRef>
|
7
|
+
<FileRef
|
8
|
+
location = "group:App.xcodeproj">
|
9
|
+
</FileRef>
|
10
|
+
<FileRef
|
11
|
+
location = "group:Pods/Pods.xcodeproj">
|
12
|
+
</FileRef>
|
13
|
+
</Workspace>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
//
|
2
|
+
// AppDelegate.swift
|
3
|
+
// App
|
4
|
+
//
|
5
|
+
// Created by Ben on 11/05/2019.
|
6
|
+
// Copyright © 2019 bcylin. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
import UIKit
|
10
|
+
import CPDAcknowledgements
|
11
|
+
|
12
|
+
@UIApplicationMain
|
13
|
+
class AppDelegate: UIResponder, UIApplicationDelegate {
|
14
|
+
|
15
|
+
var window: UIWindow?
|
16
|
+
|
17
|
+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
18
|
+
window = UIWindow(frame: UIScreen.main.bounds)
|
19
|
+
window?.backgroundColor = .white
|
20
|
+
window?.rootViewController = UINavigationController(rootViewController: CPDAcknowledgementsViewController())
|
21
|
+
window?.makeKeyAndVisible()
|
22
|
+
return true
|
23
|
+
}
|
24
|
+
|
25
|
+
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
{
|
2
|
+
"images" : [
|
3
|
+
{
|
4
|
+
"idiom" : "iphone",
|
5
|
+
"size" : "20x20",
|
6
|
+
"scale" : "2x"
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"idiom" : "iphone",
|
10
|
+
"size" : "20x20",
|
11
|
+
"scale" : "3x"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"idiom" : "iphone",
|
15
|
+
"size" : "29x29",
|
16
|
+
"scale" : "2x"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"idiom" : "iphone",
|
20
|
+
"size" : "29x29",
|
21
|
+
"scale" : "3x"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"idiom" : "iphone",
|
25
|
+
"size" : "40x40",
|
26
|
+
"scale" : "2x"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"idiom" : "iphone",
|
30
|
+
"size" : "40x40",
|
31
|
+
"scale" : "3x"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"idiom" : "iphone",
|
35
|
+
"size" : "60x60",
|
36
|
+
"scale" : "2x"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"idiom" : "iphone",
|
40
|
+
"size" : "60x60",
|
41
|
+
"scale" : "3x"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"idiom" : "ipad",
|
45
|
+
"size" : "20x20",
|
46
|
+
"scale" : "1x"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"idiom" : "ipad",
|
50
|
+
"size" : "20x20",
|
51
|
+
"scale" : "2x"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"idiom" : "ipad",
|
55
|
+
"size" : "29x29",
|
56
|
+
"scale" : "1x"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"idiom" : "ipad",
|
60
|
+
"size" : "29x29",
|
61
|
+
"scale" : "2x"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"idiom" : "ipad",
|
65
|
+
"size" : "40x40",
|
66
|
+
"scale" : "1x"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"idiom" : "ipad",
|
70
|
+
"size" : "40x40",
|
71
|
+
"scale" : "2x"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"idiom" : "ipad",
|
75
|
+
"size" : "76x76",
|
76
|
+
"scale" : "1x"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"idiom" : "ipad",
|
80
|
+
"size" : "76x76",
|
81
|
+
"scale" : "2x"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"idiom" : "ipad",
|
85
|
+
"size" : "83.5x83.5",
|
86
|
+
"scale" : "2x"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"idiom" : "ios-marketing",
|
90
|
+
"size" : "1024x1024",
|
91
|
+
"scale" : "1x"
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"info" : {
|
95
|
+
"version" : 1,
|
96
|
+
"author" : "xcode"
|
97
|
+
}
|
98
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
3
|
+
<dependencies>
|
4
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
|
5
|
+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
6
|
+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
7
|
+
</dependencies>
|
8
|
+
<scenes>
|
9
|
+
<!--View Controller-->
|
10
|
+
<scene sceneID="EHf-IW-A2E">
|
11
|
+
<objects>
|
12
|
+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
13
|
+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
14
|
+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
15
|
+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
16
|
+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
17
|
+
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
18
|
+
</view>
|
19
|
+
</viewController>
|
20
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
21
|
+
</objects>
|
22
|
+
<point key="canvasLocation" x="53" y="375"/>
|
23
|
+
</scene>
|
24
|
+
</scenes>
|
25
|
+
</document>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
6
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
7
|
+
<key>CFBundleExecutable</key>
|
8
|
+
<string>$(EXECUTABLE_NAME)</string>
|
9
|
+
<key>CFBundleIdentifier</key>
|
10
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
12
|
+
<string>6.0</string>
|
13
|
+
<key>CFBundleName</key>
|
14
|
+
<string>$(PRODUCT_NAME)</string>
|
15
|
+
<key>CFBundlePackageType</key>
|
16
|
+
<string>APPL</string>
|
17
|
+
<key>CFBundleShortVersionString</key>
|
18
|
+
<string>1.0</string>
|
19
|
+
<key>CFBundleVersion</key>
|
20
|
+
<string>1</string>
|
21
|
+
<key>LSRequiresIPhoneOS</key>
|
22
|
+
<true/>
|
23
|
+
<key>UILaunchStoryboardName</key>
|
24
|
+
<string>LaunchScreen</string>
|
25
|
+
<key>UIRequiredDeviceCapabilities</key>
|
26
|
+
<array>
|
27
|
+
<string>armv7</string>
|
28
|
+
</array>
|
29
|
+
<key>UISupportedInterfaceOrientations</key>
|
30
|
+
<array>
|
31
|
+
<string>UIInterfaceOrientationPortrait</string>
|
32
|
+
</array>
|
33
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
34
|
+
<array>
|
35
|
+
<string>UIInterfaceOrientationPortrait</string>
|
36
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
37
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
38
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
39
|
+
</array>
|
40
|
+
</dict>
|
41
|
+
</plist>
|
data/example/Cartfile
ADDED
data/example/Gemfile
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
cocoapods-acknowledgements-addons (0.1.0)
|
5
|
+
cocoapods (>= 0.36)
|
6
|
+
cocoapods-acknowledgements
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
CFPropertyList (3.0.0)
|
12
|
+
activesupport (4.2.11.1)
|
13
|
+
i18n (~> 0.7)
|
14
|
+
minitest (~> 5.1)
|
15
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
16
|
+
tzinfo (~> 1.1)
|
17
|
+
atomos (0.1.3)
|
18
|
+
claide (1.0.2)
|
19
|
+
cocoapods (1.6.1)
|
20
|
+
activesupport (>= 4.0.2, < 5)
|
21
|
+
claide (>= 1.0.2, < 2.0)
|
22
|
+
cocoapods-core (= 1.6.1)
|
23
|
+
cocoapods-deintegrate (>= 1.0.2, < 2.0)
|
24
|
+
cocoapods-downloader (>= 1.2.2, < 2.0)
|
25
|
+
cocoapods-plugins (>= 1.0.0, < 2.0)
|
26
|
+
cocoapods-search (>= 1.0.0, < 2.0)
|
27
|
+
cocoapods-stats (>= 1.0.0, < 2.0)
|
28
|
+
cocoapods-trunk (>= 1.3.1, < 2.0)
|
29
|
+
cocoapods-try (>= 1.1.0, < 2.0)
|
30
|
+
colored2 (~> 3.1)
|
31
|
+
escape (~> 0.0.4)
|
32
|
+
fourflusher (>= 2.2.0, < 3.0)
|
33
|
+
gh_inspector (~> 1.0)
|
34
|
+
molinillo (~> 0.6.6)
|
35
|
+
nap (~> 1.0)
|
36
|
+
ruby-macho (~> 1.4)
|
37
|
+
xcodeproj (>= 1.8.1, < 2.0)
|
38
|
+
cocoapods-acknowledgements (1.1.3)
|
39
|
+
activesupport (>= 4.0.2, < 5)
|
40
|
+
redcarpet (~> 3.3)
|
41
|
+
cocoapods-core (1.6.1)
|
42
|
+
activesupport (>= 4.0.2, < 6)
|
43
|
+
fuzzy_match (~> 2.0.4)
|
44
|
+
nap (~> 1.0)
|
45
|
+
cocoapods-deintegrate (1.0.4)
|
46
|
+
cocoapods-downloader (1.2.2)
|
47
|
+
cocoapods-plugins (1.0.0)
|
48
|
+
nap
|
49
|
+
cocoapods-search (1.0.0)
|
50
|
+
cocoapods-stats (1.1.0)
|
51
|
+
cocoapods-trunk (1.3.1)
|
52
|
+
nap (>= 0.8, < 2.0)
|
53
|
+
netrc (~> 0.11)
|
54
|
+
cocoapods-try (1.1.0)
|
55
|
+
coderay (1.1.2)
|
56
|
+
colored2 (3.1.2)
|
57
|
+
concurrent-ruby (1.1.5)
|
58
|
+
escape (0.0.4)
|
59
|
+
fourflusher (2.2.0)
|
60
|
+
fuzzy_match (2.0.4)
|
61
|
+
gh_inspector (1.1.3)
|
62
|
+
i18n (0.9.5)
|
63
|
+
concurrent-ruby (~> 1.0)
|
64
|
+
method_source (0.9.2)
|
65
|
+
minitest (5.11.3)
|
66
|
+
molinillo (0.6.6)
|
67
|
+
nanaimo (0.2.6)
|
68
|
+
nap (1.1.0)
|
69
|
+
netrc (0.11.0)
|
70
|
+
pry (0.12.2)
|
71
|
+
coderay (~> 1.1.0)
|
72
|
+
method_source (~> 0.9.0)
|
73
|
+
redcarpet (3.4.0)
|
74
|
+
ruby-macho (1.4.0)
|
75
|
+
thread_safe (0.3.6)
|
76
|
+
tzinfo (1.2.5)
|
77
|
+
thread_safe (~> 0.1)
|
78
|
+
xcodeproj (1.9.0)
|
79
|
+
CFPropertyList (>= 2.3.3, < 4.0)
|
80
|
+
atomos (~> 0.1.3)
|
81
|
+
claide (>= 1.0.2, < 2.0)
|
82
|
+
colored2 (~> 3.1)
|
83
|
+
nanaimo (~> 0.2.6)
|
84
|
+
|
85
|
+
PLATFORMS
|
86
|
+
ruby
|
87
|
+
|
88
|
+
DEPENDENCIES
|
89
|
+
cocoapods
|
90
|
+
cocoapods-acknowledgements-addons!
|
91
|
+
pry
|
92
|
+
|
93
|
+
BUNDLED WITH
|
94
|
+
2.0.1
|
data/example/Makefile
ADDED
data/example/Podfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
platform :ios, "12.0"
|
2
|
+
|
3
|
+
target :App do
|
4
|
+
use_frameworks!
|
5
|
+
|
6
|
+
pod "CPDAcknowledgements", inhibit_warnings: true
|
7
|
+
end
|
8
|
+
|
9
|
+
# Generates a plist of dependencies installed via CocoaPods
|
10
|
+
plugin "cocoapods-acknowledgements"
|
11
|
+
|
12
|
+
# Adds additional acknowledgements to the generated plist
|
13
|
+
plugin "cocoapods-acknowledgements-addons",
|
14
|
+
add: ["Acknowledgements", "Carthage/Checkouts", "Dependencies"],
|
15
|
+
exclude: ["QuickTableViewController"]
|
@@ -0,0 +1,16 @@
|
|
1
|
+
PODS:
|
2
|
+
- CPDAcknowledgements (1.0.0)
|
3
|
+
|
4
|
+
DEPENDENCIES:
|
5
|
+
- CPDAcknowledgements
|
6
|
+
|
7
|
+
SPEC REPOS:
|
8
|
+
https://github.com/cocoapods/specs.git:
|
9
|
+
- CPDAcknowledgements
|
10
|
+
|
11
|
+
SPEC CHECKSUMS:
|
12
|
+
CPDAcknowledgements: 6e15e71849ba4ad5e8a17a0bb9d20938ad23bac8
|
13
|
+
|
14
|
+
PODFILE CHECKSUM: 598ed9ea4a87fa4bc416516acc9b4eaec99a63c0
|
15
|
+
|
16
|
+
COCOAPODS: 1.6.1
|
data/example/README.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Example iOS app
|
2
|
+
|
3
|
+
### Podfile
|
4
|
+
|
5
|
+
```rb
|
6
|
+
plugin "cocoapods-acknowledgements-addons",
|
7
|
+
add: ["Acknowledgements", "Carthage/Checkouts", "Dependencies"],
|
8
|
+
exclude: ["QuickTableViewController"]
|
9
|
+
```
|
10
|
+
|
11
|
+
The plugin finds additional acknowledgements from the following directories:
|
12
|
+
|
13
|
+
```
|
14
|
+
.
|
15
|
+
├── Acknowledgements
|
16
|
+
│ └── Crypto (with podspec)
|
17
|
+
├── Carthage
|
18
|
+
│ └── Checkouts
|
19
|
+
│ ├── Alamofire
|
20
|
+
│ ├── Crypto
|
21
|
+
│ └── QuickTableViewController (ignored)
|
22
|
+
├── Dependencies
|
23
|
+
│ └── Strongify
|
24
|
+
├── Podfile
|
25
|
+
└── Podfile.lock
|
26
|
+
```
|
27
|
+
|
28
|
+
### Launch the project
|
29
|
+
|
30
|
+
```sh
|
31
|
+
make install && open App.xcworkspace
|
32
|
+
```
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require "cocoapods"
|
2
|
+
require "cocoapods_acknowledgements"
|
3
|
+
require "cocoapods_acknowledgements/addons/podspec_accumulator"
|
4
|
+
require "cocoapods_acknowledgements/addons/plist_modifier"
|
5
|
+
|
6
|
+
module CocoaPodsAcknowledgements
|
7
|
+
module AddOns
|
8
|
+
|
9
|
+
Pod::HooksManager.register("cocoapods-acknowledgements-addons", :post_install) do |context, user_options|
|
10
|
+
paths = [*user_options[:add]]
|
11
|
+
excluded_names = [*user_options[:exclude]]
|
12
|
+
|
13
|
+
podspecs = paths.reduce([]) do |specs, path|
|
14
|
+
accumulator = PodspecAccumulator.new(Pathname(path).expand_path)
|
15
|
+
specs + accumulator.podspecs
|
16
|
+
end
|
17
|
+
modifier = PlistModifier.new
|
18
|
+
|
19
|
+
sandbox = context.sandbox if defined? context.sandbox
|
20
|
+
sandbox ||= Pod::Sandbox.new(context.sandbox_root)
|
21
|
+
|
22
|
+
context.umbrella_targets.each do |target|
|
23
|
+
plist_path = sandbox.root + "#{target.cocoapods_target_label}-metadata.plist"
|
24
|
+
modifier.add_podspecs_to_plist(podspecs, plist_path, excluded_names)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|