Codemotion 2013 - presentación cocoa pods

1,068 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,068
On SlideShare
0
From Embeds
0
Number of Embeds
62
Actions
Shares
0
Downloads
15
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Codemotion 2013 - presentación cocoa pods

  1. 1. Jorge Maroto García Cuando haces Pods ya no hay stop @patoroco jorge@tactilapp.com http://tactilapp.com Saturday, October 19, 13
  2. 2. Hola, me presento… Jorge Maroto García. Co-founder & iOS Developer @ Tactilapp. +3 años jugando con iOS. AFNetworking collaborative book http://afnbook.github.io/ Fanboy. Saturday, October 19, 13
  3. 3. SOFTWARE Flickr: http://www.flickr.com/photos/julianaorihuela/384300758/ Saturday, October 19, 13
  4. 4. Gestión de dependencias I Reutilización ‘manual’ del código Eufemismo del copy & paste. Pros: ¿fácil? Contras: descarga + configuración manual. lib.zip, lib-old.zip, lib-oldest.zip... Modo hacker: git clone Saturday, October 19, 13
  5. 5. Eloy Durán - Without Cocoa Pods (https://vimeo.com/63891717) Saturday, October 19, 13
  6. 6. Gestión de dependencias II Submódulos GIT Pros: fácil de actualizar. Contras: configuración manual. Saturday, October 19, 13
  7. 7. Gestión de dependencias III Saturday, October 19, 13
  8. 8. ¿Qué? Gestor de dependencias para Objective-C (iOS & Mac OS X). Basado en Ruby Gems + Bundler. Símiles para otros lenguajes. npm, gems, composer, Maven,... Saturday, October 19, 13
  9. 9. ¿Cuándo? First commit, 12 Agosto 2011. Eloy Durán (@alloy). Versión actual: 0.26.2 (19.10.13). Historia & hitos: https://speakerdeck.com/orta/cocoapods-state-of-the-union Saturday, October 19, 13
  10. 10. Saturday, October 19, 13
  11. 11. ¿Cómo? Gema de Ruby. Podfile + .podspec. Repositorio en github con todas las specs. Saturday, October 19, 13
  12. 12. ¿Dónde? Web de Cocoa Pods http://cocoapods.org/ Gema de Ruby http://rubygems.org/gems/cocoapods Saturday, October 19, 13
  13. 13. ¿Quién? Fuente: https://speakerdeck.com/orta/cocoapods-state-of-the-union Saturday, October 19, 13
  14. 14. ¿Cuánto? Saturday, October 19, 13
  15. 15. Saturday, October 19, 13
  16. 16. Saturday, October 19, 13
  17. 17. Saturday, October 19, 13
  18. 18. Datos 2 años de trabajo. 1.400 colaboradores. 2.300 librerías. 4.000 pull-requests. 6.000 podspecs. 220.000 descargas (Ruby Gems). Fuente: https://speakerdeck.com/orta/cocoapods-state-of-the-union Saturday, October 19, 13
  19. 19. Saturday, October 19, 13
  20. 20. Instalación Tip: Gemfile por proyecto * * http://www.punteroavoid.com/blog/2013/07/12/iniciando-un-nuevo-proyecto-ios/ Saturday, October 19, 13
  21. 21. Backstage Saturday, October 19, 13
  22. 22. Hello Pods! 1. Crear proyecto en XCode. 2. Crear y configurar el Podfile. 3. pod install. 4. A partir de ahora se utiliza el .xcworkspace en vez de el .xcodeproj. Saturday, October 19, 13
  23. 23. Crear el podfile Saturday, October 19, 13
  24. 24. Crear el podfile Saturday, October 19, 13
  25. 25. Editar Podfile Saturday, October 19, 13
  26. 26. Instalación Saturday, October 19, 13
  27. 27. .xcworkspace Nuevo proyecto Pods. Añadidas las librerías del Podfile. Añadidas las dependencias. Frameworks del SDK. Otras librerías Cocoa Pods. Saturday, October 19, 13
  28. 28. Utilizando la librería Saturday, October 19, 13
  29. 29. Saturday, October 19, 13
  30. 30. Saturday, October 19, 13
  31. 31. Control de versiones .xcworkspace Podfile Podfile.lock Pods/ Saturday, October 19, 13
  32. 32. ¿Librerías? Foto: http://www.dogwallpapers.net Saturday, October 19, 13
  33. 33. http://cocoapods.org Saturday, October 19, 13
  34. 34. @cocoapods Saturday, October 19, 13
  35. 35. http://github.com/CocoaPods/specs Saturday, October 19, 13
  36. 36. Saturday, October 19, 13
  37. 37. ¡Mi librería tiene que ser c00l! Saturday, October 19, 13
  38. 38. Do It Yourself 1. Crea la librería. 2. git tag (*) 3. Súbela a Github. 4. Crea el fichero .podspec 5. ¡Comparte! * Ruby Gems Semantic Versioning http://guides.rubygems.org/patterns/#semantic_versioning Saturday, October 19, 13
  39. 39. Saturday, October 19, 13
  40. 40. Saturday, October 19, 13
  41. 41. Saturday, October 19, 13
  42. 42. Los niños buenos testean los podspecs antes de enviarlos Saturday, October 19, 13
  43. 43. Saturday, October 19, 13
  44. 44. Comparte el podspec 1. Repito: verifica tu podspec. 2. No te saltes el paso 1. 3. Fork del repositorio de Specs. 4. Crear carpeta versionada de la librería. 5. Push. Saturday, October 19, 13
  45. 45. Saturday, October 19, 13
  46. 46. Saturday, October 19, 13
  47. 47. Saturday, October 19, 13
  48. 48. ¿Y si no es mi librería? Foto: http://www.fondosni.com/ Saturday, October 19, 13
  49. 49. Saturday, October 19, 13
  50. 50. Saturday, October 19, 13
  51. 51. A mi jefe no le gusta que enseñe Foto: https://vimeo.com/51631519 Saturday, October 19, 13
  52. 52. Specs privados 1. Fork del repo Specs de github (opcional). 2. Añadir repo a la búsqueda de pods. 3. Crear pod normalmente. 4. Guardar versionado. Saturday, October 19, 13
  53. 53. Saturday, October 19, 13
  54. 54. Saturday, October 19, 13
  55. 55. Saturday, October 19, 13
  56. 56. Saturday, October 19, 13
  57. 57. Saturday, October 19, 13
  58. 58. Saturday, October 19, 13
  59. 59. Una ayudita, por favor Saturday, October 19, 13
  60. 60. KFCocoaPodsPlugin https://github.com/ricobeck/KFCocoaPodsPlugin Saturday, October 19, 13
  61. 61. Saturday, October 19, 13
  62. 62. CocoaDocs http://cocoadocs.org Saturday, October 19, 13
  63. 63. Saturday, October 19, 13
  64. 64. Saturday, October 19, 13
  65. 65. Jorge Maroto García Cuando haces Pods ya no hay stop jorge@tactilapp.com @patoroco http://tactilapp.com http://jorgemaroto.es http://git.jorgemaroto.es http://in.jorgemaroto.es Saturday, October 19, 13

×