cocoapods-packager-qcloud 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +4 -0
  4. data/.idea/.rakeTasks +7 -0
  5. data/.idea/misc.xml +4 -0
  6. data/.idea/modules.xml +8 -0
  7. data/.idea/vcs.xml +6 -0
  8. data/.rubocop-cocoapods.yml +71 -0
  9. data/.rubocop.yml +38 -0
  10. data/.travis.yml +9 -0
  11. data/Gemfile +12 -0
  12. data/Gemfile.lock +121 -0
  13. data/LICENSE +22 -0
  14. data/README.md +42 -0
  15. data/Rakefile +12 -0
  16. data/cocoapods-packager.gemspec +23 -0
  17. data/lib/cocoapods-packager/builder.rb +298 -0
  18. data/lib/cocoapods-packager/framework.rb +66 -0
  19. data/lib/cocoapods-packager/mangle.rb +32 -0
  20. data/lib/cocoapods-packager/pod_utils.rb +265 -0
  21. data/lib/cocoapods-packager/spec_builder.rb +63 -0
  22. data/lib/cocoapods-packager/symbols.rb +35 -0
  23. data/lib/cocoapods-packager/user_interface/build_failed_report.rb +15 -0
  24. data/lib/cocoapods_packager.rb +5 -0
  25. data/lib/cocoapods_plugin.rb +8 -0
  26. data/lib/pod/command/package.rb +173 -0
  27. data/scripts/lstconst.sh +9 -0
  28. data/scripts/lstsym.sh +8 -0
  29. data/spec/command/error_spec.rb +74 -0
  30. data/spec/command/package_spec.rb +359 -0
  31. data/spec/command/rctl_spec.rb +13 -0
  32. data/spec/command/subspecs_spec.rb +30 -0
  33. data/spec/fixtures/Builder.podspec +25 -0
  34. data/spec/fixtures/CPDColors.podspec +19 -0
  35. data/spec/fixtures/FH.podspec +18 -0
  36. data/spec/fixtures/KFData.podspec +73 -0
  37. data/spec/fixtures/LibraryConsumerDemo/.gitignore +22 -0
  38. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.pbxproj +340 -0
  39. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  40. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer.xcodeproj/xcshareddata/xcschemes/LibraryConsumer.xcscheme +100 -0
  41. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.h +17 -0
  42. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer/AppDelegate.m +27 -0
  43. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer/Info.plist +40 -0
  44. data/spec/fixtures/LibraryConsumerDemo/LibraryConsumer/main.m +16 -0
  45. data/spec/fixtures/LibraryConsumerDemo/Podfile +5 -0
  46. data/spec/fixtures/LibraryDemo.podspec +14 -0
  47. data/spec/fixtures/NikeKit.podspec +19 -0
  48. data/spec/fixtures/OpenSans.podspec +18 -0
  49. data/spec/fixtures/PackagerTest/.gitignore +21 -0
  50. data/spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.pbxproj +536 -0
  51. data/spec/fixtures/PackagerTest/PackagerTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  52. data/spec/fixtures/PackagerTest/PackagerTest.xcodeproj/xcshareddata/xcschemes/PackagerTest.xcscheme +110 -0
  53. data/spec/fixtures/PackagerTest/PackagerTest.xcworkspace/contents.xcworkspacedata +1 -0
  54. data/spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.h +15 -0
  55. data/spec/fixtures/PackagerTest/PackagerTest/CPDAppDelegate.m +49 -0
  56. data/spec/fixtures/PackagerTest/PackagerTest/Images.xcassets/AppIcon.appiconset/Contents.json +23 -0
  57. data/spec/fixtures/PackagerTest/PackagerTest/Images.xcassets/LaunchImage.launchimage/Contents.json +23 -0
  58. data/spec/fixtures/PackagerTest/PackagerTest/PackagerTest-Info.plist +38 -0
  59. data/spec/fixtures/PackagerTest/PackagerTest/PackagerTest-Prefix.pch +16 -0
  60. data/spec/fixtures/PackagerTest/PackagerTest/en.lproj/InfoPlist.strings +2 -0
  61. data/spec/fixtures/PackagerTest/PackagerTest/main.m +18 -0
  62. data/spec/fixtures/PackagerTest/PackagerTestTests/PackagerTestTests-Info.plist +22 -0
  63. data/spec/fixtures/PackagerTest/PackagerTestTests/PackagerTestTests.m +34 -0
  64. data/spec/fixtures/PackagerTest/PackagerTestTests/en.lproj/InfoPlist.strings +2 -0
  65. data/spec/fixtures/PackagerTest/Podfile +10 -0
  66. data/spec/fixtures/PackagerTest/Podfile.lock +32 -0
  67. data/spec/fixtures/Weakly.podspec +13 -0
  68. data/spec/fixtures/a.podspec +19 -0
  69. data/spec/fixtures/foo-bar.podspec +19 -0
  70. data/spec/fixtures/layer-client-messaging-schema.podspec +13 -0
  71. data/spec/integration/project_spec.rb +70 -0
  72. data/spec/pod/utils_spec.rb +58 -0
  73. data/spec/spec_helper.rb +50 -0
  74. data/spec/specification/builder_spec.rb +40 -0
  75. data/spec/specification/spec_builder_spec.rb +61 -0
  76. data/spec/user_interface/build_failed_report_spec.rb +11 -0
  77. metadata +232 -0
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "self:PackagerTest.xcodeproj">
6
+ </FileRef>
7
+ </Workspace>
@@ -0,0 +1,110 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ LastUpgradeVersion = "0610"
4
+ version = "1.3">
5
+ <BuildAction
6
+ parallelizeBuildables = "YES"
7
+ buildImplicitDependencies = "YES">
8
+ <BuildActionEntries>
9
+ <BuildActionEntry
10
+ buildForTesting = "YES"
11
+ buildForRunning = "YES"
12
+ buildForProfiling = "YES"
13
+ buildForArchiving = "YES"
14
+ buildForAnalyzing = "YES">
15
+ <BuildableReference
16
+ BuildableIdentifier = "primary"
17
+ BlueprintIdentifier = "A1DE56B419AA4A97000339C6"
18
+ BuildableName = "PackagerTest.app"
19
+ BlueprintName = "PackagerTest"
20
+ ReferencedContainer = "container:PackagerTest.xcodeproj">
21
+ </BuildableReference>
22
+ </BuildActionEntry>
23
+ <BuildActionEntry
24
+ buildForTesting = "YES"
25
+ buildForRunning = "YES"
26
+ buildForProfiling = "NO"
27
+ buildForArchiving = "NO"
28
+ buildForAnalyzing = "YES">
29
+ <BuildableReference
30
+ BuildableIdentifier = "primary"
31
+ BlueprintIdentifier = "A1DE56CF19AA4A97000339C6"
32
+ BuildableName = "PackagerTestTests.xctest"
33
+ BlueprintName = "PackagerTestTests"
34
+ ReferencedContainer = "container:PackagerTest.xcodeproj">
35
+ </BuildableReference>
36
+ </BuildActionEntry>
37
+ </BuildActionEntries>
38
+ </BuildAction>
39
+ <TestAction
40
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
41
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
42
+ shouldUseLaunchSchemeArgsEnv = "YES"
43
+ buildConfiguration = "Debug">
44
+ <Testables>
45
+ <TestableReference
46
+ skipped = "NO">
47
+ <BuildableReference
48
+ BuildableIdentifier = "primary"
49
+ BlueprintIdentifier = "A1DE56CF19AA4A97000339C6"
50
+ BuildableName = "PackagerTestTests.xctest"
51
+ BlueprintName = "PackagerTestTests"
52
+ ReferencedContainer = "container:PackagerTest.xcodeproj">
53
+ </BuildableReference>
54
+ </TestableReference>
55
+ </Testables>
56
+ <MacroExpansion>
57
+ <BuildableReference
58
+ BuildableIdentifier = "primary"
59
+ BlueprintIdentifier = "A1DE56B419AA4A97000339C6"
60
+ BuildableName = "PackagerTest.app"
61
+ BlueprintName = "PackagerTest"
62
+ ReferencedContainer = "container:PackagerTest.xcodeproj">
63
+ </BuildableReference>
64
+ </MacroExpansion>
65
+ </TestAction>
66
+ <LaunchAction
67
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
68
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
69
+ launchStyle = "0"
70
+ useCustomWorkingDirectory = "NO"
71
+ buildConfiguration = "Debug"
72
+ ignoresPersistentStateOnLaunch = "NO"
73
+ debugDocumentVersioning = "YES"
74
+ allowLocationSimulation = "YES">
75
+ <BuildableProductRunnable>
76
+ <BuildableReference
77
+ BuildableIdentifier = "primary"
78
+ BlueprintIdentifier = "A1DE56B419AA4A97000339C6"
79
+ BuildableName = "PackagerTest.app"
80
+ BlueprintName = "PackagerTest"
81
+ ReferencedContainer = "container:PackagerTest.xcodeproj">
82
+ </BuildableReference>
83
+ </BuildableProductRunnable>
84
+ <AdditionalOptions>
85
+ </AdditionalOptions>
86
+ </LaunchAction>
87
+ <ProfileAction
88
+ shouldUseLaunchSchemeArgsEnv = "YES"
89
+ savedToolIdentifier = ""
90
+ useCustomWorkingDirectory = "NO"
91
+ buildConfiguration = "Release"
92
+ debugDocumentVersioning = "YES">
93
+ <BuildableProductRunnable>
94
+ <BuildableReference
95
+ BuildableIdentifier = "primary"
96
+ BlueprintIdentifier = "A1DE56B419AA4A97000339C6"
97
+ BuildableName = "PackagerTest.app"
98
+ BlueprintName = "PackagerTest"
99
+ ReferencedContainer = "container:PackagerTest.xcodeproj">
100
+ </BuildableReference>
101
+ </BuildableProductRunnable>
102
+ </ProfileAction>
103
+ <AnalyzeAction
104
+ buildConfiguration = "Debug">
105
+ </AnalyzeAction>
106
+ <ArchiveAction
107
+ buildConfiguration = "Release"
108
+ revealArchiveInOrganizer = "YES">
109
+ </ArchiveAction>
110
+ </Scheme>
@@ -0,0 +1 @@
1
+ <?xml version='1.0' encoding='UTF-8'?><Workspace version='1.0'><FileRef location='group:PackagerTest.xcodeproj'/><FileRef location='group:Pods/Pods.xcodeproj'/></Workspace>
@@ -0,0 +1,15 @@
1
+ //
2
+ // CPDAppDelegate.h
3
+ // PackagerTest
4
+ //
5
+ // Created by Boris Bügling on 24/08/14.
6
+ // Copyright (c) 2014 CocoaPods. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ @interface CPDAppDelegate : UIResponder <UIApplicationDelegate>
12
+
13
+ @property (strong, nonatomic) UIWindow *window;
14
+
15
+ @end
@@ -0,0 +1,49 @@
1
+ //
2
+ // CPDAppDelegate.m
3
+ // PackagerTest
4
+ //
5
+ // Created by Boris Bügling on 24/08/14.
6
+ // Copyright (c) 2014 CocoaPods. All rights reserved.
7
+ //
8
+
9
+ #import "CPDAppDelegate.h"
10
+
11
+ @implementation CPDAppDelegate
12
+
13
+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
14
+ {
15
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
16
+ // Override point for customization after application launch.
17
+ self.window.backgroundColor = [UIColor whiteColor];
18
+ [self.window makeKeyAndVisible];
19
+ return YES;
20
+ }
21
+
22
+ - (void)applicationWillResignActive:(UIApplication *)application
23
+ {
24
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
25
+ // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
26
+ }
27
+
28
+ - (void)applicationDidEnterBackground:(UIApplication *)application
29
+ {
30
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
31
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
32
+ }
33
+
34
+ - (void)applicationWillEnterForeground:(UIApplication *)application
35
+ {
36
+ // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
37
+ }
38
+
39
+ - (void)applicationDidBecomeActive:(UIApplication *)application
40
+ {
41
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
42
+ }
43
+
44
+ - (void)applicationWillTerminate:(UIApplication *)application
45
+ {
46
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
47
+ }
48
+
49
+ @end
@@ -0,0 +1,23 @@
1
+ {
2
+ "images" : [
3
+ {
4
+ "idiom" : "iphone",
5
+ "size" : "29x29",
6
+ "scale" : "2x"
7
+ },
8
+ {
9
+ "idiom" : "iphone",
10
+ "size" : "40x40",
11
+ "scale" : "2x"
12
+ },
13
+ {
14
+ "idiom" : "iphone",
15
+ "size" : "60x60",
16
+ "scale" : "2x"
17
+ }
18
+ ],
19
+ "info" : {
20
+ "version" : 1,
21
+ "author" : "xcode"
22
+ }
23
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "images" : [
3
+ {
4
+ "orientation" : "portrait",
5
+ "idiom" : "iphone",
6
+ "extent" : "full-screen",
7
+ "minimum-system-version" : "7.0",
8
+ "scale" : "2x"
9
+ },
10
+ {
11
+ "orientation" : "portrait",
12
+ "idiom" : "iphone",
13
+ "subtype" : "retina4",
14
+ "extent" : "full-screen",
15
+ "minimum-system-version" : "7.0",
16
+ "scale" : "2x"
17
+ }
18
+ ],
19
+ "info" : {
20
+ "version" : 1,
21
+ "author" : "xcode"
22
+ }
23
+ }
@@ -0,0 +1,38 @@
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>en</string>
7
+ <key>CFBundleDisplayName</key>
8
+ <string>${PRODUCT_NAME}</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>${EXECUTABLE_NAME}</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
+ <string>6.0</string>
15
+ <key>CFBundleName</key>
16
+ <string>${PRODUCT_NAME}</string>
17
+ <key>CFBundlePackageType</key>
18
+ <string>APPL</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>1.0</string>
21
+ <key>CFBundleSignature</key>
22
+ <string>????</string>
23
+ <key>CFBundleVersion</key>
24
+ <string>1.0</string>
25
+ <key>LSRequiresIPhoneOS</key>
26
+ <true/>
27
+ <key>UIRequiredDeviceCapabilities</key>
28
+ <array>
29
+ <string>armv7</string>
30
+ </array>
31
+ <key>UISupportedInterfaceOrientations</key>
32
+ <array>
33
+ <string>UIInterfaceOrientationPortrait</string>
34
+ <string>UIInterfaceOrientationLandscapeLeft</string>
35
+ <string>UIInterfaceOrientationLandscapeRight</string>
36
+ </array>
37
+ </dict>
38
+ </plist>
@@ -0,0 +1,16 @@
1
+ //
2
+ // Prefix header
3
+ //
4
+ // The contents of this file are implicitly included at the beginning of every source file.
5
+ //
6
+
7
+ #import <Availability.h>
8
+
9
+ #ifndef __IPHONE_3_0
10
+ #warning "This project uses features only available in iOS SDK 3.0 and later."
11
+ #endif
12
+
13
+ #ifdef __OBJC__
14
+ #import <UIKit/UIKit.h>
15
+ #import <Foundation/Foundation.h>
16
+ #endif
@@ -0,0 +1,2 @@
1
+ /* Localized versions of Info.plist keys */
2
+
@@ -0,0 +1,18 @@
1
+ //
2
+ // main.m
3
+ // PackagerTest
4
+ //
5
+ // Created by Boris Bügling on 24/08/14.
6
+ // Copyright (c) 2014 CocoaPods. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+
11
+ #import "CPDAppDelegate.h"
12
+
13
+ int main(int argc, char * argv[])
14
+ {
15
+ @autoreleasepool {
16
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([CPDAppDelegate class]));
17
+ }
18
+ }
@@ -0,0 +1,22 @@
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>en</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>${EXECUTABLE_NAME}</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundlePackageType</key>
14
+ <string>BNDL</string>
15
+ <key>CFBundleShortVersionString</key>
16
+ <string>1.0</string>
17
+ <key>CFBundleSignature</key>
18
+ <string>????</string>
19
+ <key>CFBundleVersion</key>
20
+ <string>1</string>
21
+ </dict>
22
+ </plist>
@@ -0,0 +1,34 @@
1
+ //
2
+ // PackagerTestTests.m
3
+ // PackagerTestTests
4
+ //
5
+ // Created by Boris Bügling on 24/08/14.
6
+ // Copyright (c) 2014 CocoaPods. All rights reserved.
7
+ //
8
+
9
+ #import <XCTest/XCTest.h>
10
+
11
+ @interface PackagerTestTests : XCTestCase
12
+
13
+ @end
14
+
15
+ @implementation PackagerTestTests
16
+
17
+ - (void)setUp
18
+ {
19
+ [super setUp];
20
+ // Put setup code here. This method is called before the invocation of each test method in the class.
21
+ }
22
+
23
+ - (void)tearDown
24
+ {
25
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
26
+ [super tearDown];
27
+ }
28
+
29
+ - (void)testExample
30
+ {
31
+ XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
32
+ }
33
+
34
+ @end
@@ -0,0 +1,2 @@
1
+ /* Localized versions of Info.plist keys */
2
+
@@ -0,0 +1,10 @@
1
+ source 'https://github.com/CocoaPods/Specs.git'
2
+
3
+ platform :ios, "6.0"
4
+
5
+ target "PackagerTest" do
6
+
7
+ pod 'AFNetworking'
8
+
9
+ end
10
+
@@ -0,0 +1,32 @@
1
+ PODS:
2
+ - AFNetworking (2.3.1):
3
+ - AFNetworking/NSURLConnection (= 2.3.1)
4
+ - AFNetworking/NSURLSession (= 2.3.1)
5
+ - AFNetworking/Reachability (= 2.3.1)
6
+ - AFNetworking/Security (= 2.3.1)
7
+ - AFNetworking/Serialization (= 2.3.1)
8
+ - AFNetworking/UIKit (= 2.3.1)
9
+ - AFNetworking/NSURLConnection (2.3.1):
10
+ - AFNetworking/Reachability
11
+ - AFNetworking/Security
12
+ - AFNetworking/Serialization
13
+ - AFNetworking/NSURLSession (2.3.1):
14
+ - AFNetworking/Reachability
15
+ - AFNetworking/Security
16
+ - AFNetworking/Serialization
17
+ - AFNetworking/Reachability (2.3.1)
18
+ - AFNetworking/Security (2.3.1)
19
+ - AFNetworking/Serialization (2.3.1)
20
+ - AFNetworking/UIKit (2.3.1):
21
+ - AFNetworking/NSURLConnection
22
+ - AFNetworking/NSURLSession
23
+
24
+ DEPENDENCIES:
25
+ - AFNetworking
26
+
27
+ SPEC CHECKSUMS:
28
+ AFNetworking: 05b9f6e3aa5ac45bc383b4bb108ef338080a26c7
29
+
30
+ PODFILE CHECKSUM: 5099f0db5f9f3c3a6167fc27cde4e08d429a30ec
31
+
32
+ COCOAPODS: 1.1.1
@@ -0,0 +1,13 @@
1
+ Pod::Spec.new do |s|
2
+ s.name = "Weakly"
3
+ s.version = "0.1.0"
4
+ s.summary = "Yo"
5
+ s.homepage = "http://google.com"
6
+ s.license = "MIT"
7
+ s.author = { "Boris Bügling" => "boris@icculus.org" }
8
+ s.platform = :ios, '8.0'
9
+ s.source = { :git => "https://github.com/neonichu/CPDColors.git", :tag => s.version }
10
+ s.source_files = 'Code'
11
+
12
+ s.dependency 'PromiseKit', '~> 1.5'
13
+ end