Conversation
|
Can you add some instructions to the README file? We'll need to tweak the build server as well |
|
Sure. |
|
As a side note - Cocoapods doesn't have a great way to integrate yet with Xcode Bots. I'm not terribly surprised :) |
|
There are instructions for reference in the refactor branch, when we removed the Pods there: https://github.com/wordpress-mobile/WordPress-iOS/blob/31b4172afb7772894d19a4e85226a82d4f0b1ffd/README.md |
|
Has the project been built after removing the pods, then I think with 'AFNetworking', '~> 1.3' you'll get 1.3.3 now which changes the authentication methods a bit. In Pods/WordPressApi/WPXMLRPCClient.m you'll get build errors since two of the methods cease to exist. The authentication block can be replaced with setWillSendRequestForAuthenticationChallengeBlock:block I believe, but not 100% on what to do about the protection space. This was discovered on updating the pods for work on AFIncrementalStore integration. |
|
I remember pinning pods to a specific version, but I don't know in which branch. We should make sure the pods stay in the current version |
|
The Podfile.lock is supposed to do that, so hopefully it does successfully :) DTCoreText also has updates which breaks colorWithHexString: which is replaced with DTColor *DTColorCreateWithHexString(NSString *hexString); Might be a good idea to update some pods eventually though. I'm using AFNetworking 1.3.3 for AFIncrementalStore, so I'll at least be updating that at some point (previous comment) |
|
@xtreme-rebecca-putinski - I did test the build with pod install after this check in and it worked good. |
|
Added the README, @beaucollins helped me out and got the build server working so that Jenkins will compile with the new changes. |
|
Given that Podfile.lock is still in the repo, I think that's why |
|
Right, you'll need to do |
|
Build triggered. |
|
Note that after this is done, to get the first benefit above (a smaller initial download), you'll need to do some git wizardry to remove all the files from the commit history: This is a risky operation (make sure you delete the right thing heh) but I've done it in the past for big binary files. |
|
Please don't. Using that trick would rewrite all project history, invalidating every repo clone out there. Plus, it would rewrite history 👎 If you want a smaller download, use |
|
@koke The first benefit listed in the issue for this pull is "Smaller repo to download initially." I'm merely pointing out this won't be a benefit without some extra (risky) work. |
|
I'm with @koke on this and am uncomfortable about the idea of rewriting the history, I know one of the goals was a smaller download size, but I think even with the current download size having no Pods directory is a win for us so we don't have to deal with people updating pods, pushing them to the repo, having to deal with possible merge conflicts, etc. |
|
👍 then :) |
|
Closing this and will redo it since this PR is super old and don't want to deal with an unnecessary merge nightmare. |
Fixes #288. h/t @xtreme-rebecca-putinski