pmusolino / Wormholy

iOS network debugging, like a wizard 🧙‍♂️
MIT License
2.31k stars 184 forks source link

Migrate to SPM #116

Open ipavlidakis opened 2 years ago

ipavlidakis commented 2 years ago

Resolves #112, #139

ipavlidakis commented 2 years ago

@pmusolino what do you think?

gmoraleda commented 1 year ago

It would be great to see this merged @pmusolino 🙌 Thanks for the PR @ipavlidakis !

dnKaratzas commented 1 year ago

Could you please merge that?

zdurlan commented 1 year ago

Please merge this when possible, this will be of real help

pmusolino commented 1 year ago

Hey @ipavlidakis, thank you so much for your contribution! I was just wondering if you could help me understand the changes you made in this PR that aren't related to the SPM migration, such as the changes to the XIB files. Would you be able to explain the reasoning behind those changes? Thanks again!

dnKaratzas commented 1 year ago

@pmusolino the only diff I see is that the files moved to a different directory

pmusolino commented 1 year ago

@dnKaratzas ActionableTableViewCell.xib was not moved but has some changes for example.

ipavlidakis commented 1 year ago

@pmusolino I don't recall making changes to .xib files other than moving them to match the SPM file structure. The changes were probably made from the different version of Xcode, that's why you can see mainly changes on version fields

dnKaratzas commented 1 year ago

@pmusolino minor changes cause opened the xib on a different Xcode version. So those are Xcode changes. Then onlly actual change I can spot is the module name that is an accepted change: customModule="WormholySwift"

mparmar-covantex commented 1 year ago

Right. I agree with @dnKaratzas & @ipavlidakis as well

Can you please merge it? @pmusolino

Thank you in advance..

mparmar-covantex commented 1 year ago

It would be great to see this merged @pmusolino , Any updates?

mehulparmar4ever commented 1 year ago

Hello @pmusolino, Can you please merge this PR? cc: @ipavlidakis

Thanks.

azdurlan-spectra commented 7 months ago

We really need this.

mehulparmar4ever commented 6 months ago

@ipavlidakis @pmusolino Any updates?

pmusolino commented 6 months ago

@ipavlidakis could I ask you to fix the merge conflicts, so I can review this PR and merge it?

pmusolino commented 4 months ago

@ipavlidakis do you have time to fix the merge conflicts? It would be really helpful to offer SPM 🙌 thanks!

ipavlidakis commented 4 months ago

Sure, i'm on it and should have something ready in following few hours 🤞🏻

pmusolino commented 3 months ago

@ipavlidakis do you have any update on this? 🙏

ipavlidakis commented 3 months ago

Hey @pmusolino sorry for the delay. I have updated the PR and I'm going to test it tomorrow. It will be great if you can also check it and let me know your thoughts. Thanks

pmusolino commented 3 months ago

Thanks @ipavlidakis! Can I test it right away or should you need to apply extra changes?

ipavlidakis commented 3 months ago

Feel free to test it as it is.

pmusolino commented 3 months ago

I'll test it this weekend and early next week, thanks @ipavlidakis 🙏

pmusolino commented 3 months ago

@ipavlidakis I'm testing the PR.

The first issue that I noticed, is that while I try to run WormholyDemo on the simulator, I get this error: Missing package product Wormholy

Screenshot 2024-03-25 at 14 37 11

Taking a look at the structure of the Xcode project, it seems that all the classes of the library, the folders, etc... are missing. I'm using Xcode 15.2.0.

Screenshot 2024-03-25 at 14 43 11

Any suggestion on how to move forward?

parmar-mehul commented 3 months ago

Hello @ipavlidakis ,

PR: https://github.com/ipavlidakis/Wormholy/pull/3

Below line should be removed, There is no similar file. "Support Files/Assets.xcassets"

Screenshot 2024-03-26 at 9 43 51 AM

And, You can delete this two files as well, May be, That is old structure. Remove it and Build demo app, It works.

Screenshot 2024-03-26 at 9 40 17 AM

Screenshot 2024-03-26 at 9 40 33 AM

pmusolino commented 3 months ago

Thanks, @parmar-mehul for the collaboration 🚀 let's wait for @ipavlidakis to review and merge your PR.

parmar-mehul commented 3 months ago

Thanks, @parmar-mehul for the collaboration 🚀 let's wait for @ipavlidakis to review and merge your PR.

Hello @ipavlidakis, Do we have any updates? It has been a week now! Hope we will get this done soon. Thank you for your time!!

pmusolino commented 2 months ago

@ipavlidakis let us know when you will be able to take care of this, thanks! 🙌

ipavlidakis commented 2 months ago

Sorry for the wait folks but that ended up being much more complicated than it was when the PR was initially opened (that combined with limited personal time to work on it made me pick up on it late).

I tested the current changes with a project integrating the library via SPM and made sure that embedded Demo project builds. It would be great if any of you is available to do a quick check with Cocoapods & Carthage as I haven't used them in a very long time and it may take me some time to set them up.

@pmusolino let me know your thoughts.

pmusolino commented 2 months ago

Thank you @ipavlidakis for finding the time!

I did a test with Cocoapods, and I got an error in this file:

Screenshot 2024-04-18 at 17 15 52

While, commenting it, allowed me to compile the app and launch WormHoly, and everything seems to work properly.

ipavlidakis commented 2 months ago

Thanks for checking @pmusolino. I just updated podspec to ignore the file. do you mind trying one more time?

pmusolino commented 2 months ago

The issue still persists @ipavlidakis, it seems the file has not been excluded, I'm still able to see it.

ipavlidakis commented 2 months ago

Interesting, maybe the pattern was wrong. I simplified it to be just the folder. Hope it works now

pmusolino commented 2 months ago

@ipavlidakis Now it works like a charm. I also tried to run the demo, and it works well! I'll review the code ASAP, and we can merge it. 👏

pmusolino commented 2 months ago

@ipavlidakis I started testing it with SPM. It has been integrated correctly into a project, with no issues. But Wormholy cannot be presented: manual fire or shake doesn't work. Any idea?

federicosacca commented 2 months ago

Hi @pmusolino, the problem is that the class at line 7 in the file (1) is 0x0 (null), because the correct class seems to be _WormholySwift. Maybe there is an issue in the package.swift declaration. Even if you change the class from @Wormholy.Wormholy to @Wormholy._WormholySwift, you will have problem in Flow.storyboard instantation, file (2).

(1) https://github.com/pmusolino/Wormholy/blob/master/Sources/Objc/WormholyConstructor.m (2) https://github.com/pmusolino/Wormholy/blob/master/Sources/UI/Flow.storyboard

ipavlidakis commented 2 months ago

@pmusolino do you have some code i can look into?

pmusolino commented 2 months ago

@ipavlidakis no code I can share. In any case, it's a project with both CocoaPods and SPM. Do you have the time to check what @federicosacca mentioned above?

pmusolino commented 3 weeks ago

@ipavlidakis do you have any news on this?

parmar-mehul commented 2 weeks ago

Hello Team, Can you please merge & release latest changes? @ipavlidakis

We are waiting for this changes to be merge from your side.

acamcor-seatcode commented 1 week ago

Hi! We are waiting too. It would be cool to have it. Tx!