# Add pro module frameworks

To add the pro module frameworks, you need to sponsor the project on either Patreon or Github Sponsors. See:

{% embed url="<https://chat-sdk.gitbook.io/chat-sdk/commercial/module-licensing>" %}

Once that's done, download `ChatSDKPro` and `ChatSDKPro.podspec` from:

{% embed url="<https://github.com/chat-sdk/chat-sdk-ios>" %}

Add them to your project. Then add the modules to your `Podfile`:

```
  pod "ChatSDKPro/ContactBook", :path => "../"
  pod "ChatSDKPro/Encryption", :path => "../"
  pod "ChatSDKPro/Firebase", :path => "../"
  pod "ChatSDKPro/FirebaseNearbyUsers", :path => "../"
  pod "ChatSDKPro/Message", :path => "../"
  pod "ChatSDKPro/ChatK!t", :path => "../"
```

Just add modules you are licensed to use.&#x20;

Replace the :path parameter with the path to the `ChatSDKPro.podspec` file.&#x20;

Run:&#x20;

```
pod install
```

Import the modules to your app delegate:&#x20;

```
import FirebaseModules
import ContactBookModule
import MessageModules
import FirebaseNearbyUsersModule
import EncryptionModule
import ChatSDKPro
```

Enable the modules:&#x20;

```
        var modules = [
            FirebaseNetworkAdapterModule.shared(),
            FirebasePushModule.shared(),
            FirebaseUploadModule.shared(),
            //...

            BBlockingModule.init(),
            BReadReceiptsModule.init(),
            BTypingIndicatorModule.init(),
            BLastOnlineModule.init(),
            StickerMessageModule.shared(),
            BVideoMessageModule.init(),
            FileMessageModule.init(),
            BAudioMessageModule.init(),
            BContactBookModule.init(),
            EncryptionModule.init(),
            //...
        ]
```

Activate Chat SDK and add your licensing identifier:&#x20;

```
BChatSDK.initialize(config, app: application, options: launchOptions, modules: modules, networkAdapter: nil, interfaceAdapter: nil)

BChatSDK.activateLicense(withGithub: "your-github-id")
// or
BChatSDK.activateLicense(withPatreon: "your-patreon-id")
// or
BChatSDK.activateLicense(withEmail: "your-email")
```

See full example here:&#x20;

{% embed url="<https://github.com/chat-sdk/chat-sdk-ios/tree/master/DemoSwift>" %}
