WhatsApp / stickers

This repository contains the iOS and Android sample apps and API for creating third party sticker packs for WhatsApp.
Other
2.73k stars 1.7k forks source link

[Suggestion] Creating a CocoaPods pod of the framework #347

Open Zandor300 opened 5 years ago

Zandor300 commented 5 years ago

It might be handy to create a CocoaPods pod for the framework that is inside the iOS sample app for creating the Sticker and StickerPack objects and sending them over to WhatsApp. That way, creating your own app will become much easier for the less experienced developers that do know how to get along with CocoaPods and for the ones that don't, referring them to one of the many "Getting Started" tutorial videos for CocoaPods wouldn't be such a bad idea.

If you are planning on doing this. Where would you place the pod source? In this repository under an iOS-Pod directory in the root of this repo, or create an entirely new repository?

Zandor300 commented 5 years ago

Are there any plans for this already?

simonzhexu commented 5 years ago

I am not sure what CocoaPods are, @amrit-1901 ?

Zandor300 commented 5 years ago

https://cocoapods.org “CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 57 thousand libraries and is used in over 3 million apps. CocoaPods can help you scale your projects elegantly.”

I think this is the official introduction video but I’m not sure: https://youtu.be/iEAjvNRdZa0

For a guide on creating a Cocoapod, you can checkout their documentation: https://guides.cocoapods.org/making/using-pod-lib-create.html

For an example, you could look at my personal Tools pod: https://git.zsinfo.nl/Zandor300/GeneralToolsFramework

amrit-1901 commented 5 years ago

Sorry for the late response here. Creating a CocoaPods pod sounds like a good idea, but it's not our priority yet. I'll keep you posted if this will happen in the future.

Zandor300 commented 5 years ago

@amrit-1901 Just thought of another advantage: Since Apple won't accept copies of the sample iOS app, creating a Cocoapod would make it easier for developers to implement the WhatsApp sticker framework into their apps. They won't have to pick code from the sample app and are instead able to get started right away after adding the pod to their existing app through their Podfile.

Then, providing the StickerPackViewController through the pod and pushing or presenting it from (for example) their settings page would become really easy.