Building the SDK (Mac)
To build the RingCentral SDK using Xamarin Studio on the Mac, follow these steps:
Build Dependencies
Build PubNub SDK
Clone PubNub Repository
$ git clone https://github.com/pubnub/c-sharp
Build PubNub Libraries
- Build the PubNub messaging DLL for each of the following: Xamarin.Android, Xamarin.iOS, Xamarin.Mac
Build RingCentral SDK
Clone RingCentral SDK Repository
$ git clone -b develop https://github.com/ringcentral/ringcentral-csharp
Build RingCentral Libraries
Bootstrap
- Open
ringcentral-csharp/RingCentral.slnin Xamarin Studio - Add
RingCentral.AndroidandRingCentral.iOSto Configuration Mappings by navigating toSolution Options > Build > Configurations > Configuration Mappingsand adding the solution items for theReleaseand / orDebugconfigurations. - Close and reopen the solution to remove the alerts.
Build RingCentral solution item
- Build
RingCentralsolution item.
Build RingCentral.Android solution item
- Go to
RingCentral.Android > Referencesin solution explorer and deletePubNubMessagingandRingCentralwhich should have red X's. - Add .Net Assembly reference to
PubNubMessaging.dllformono-for-android - Add .Net Assembly reference to
RingCentral.dllbuilt above - Build
RingCentral.Androidsolution item
Build RingCentral.iOS solution item
- Go to
RingCentral.iOS > Referencesin solution explorer and deleteJ:\IoS\PubnubMessagingandRingCentralwhich should have red X's. - Add .Net Assembly reference to
PubnubMessaging.dllformonotouch - Add .Net Assembly reference to
RingCentral.dllbuilt above - Build
RingCentral.iOSsolution item
Build RingCentral.NET40 solution item
- Go to
RingCentral.iOS > Referencesin solution explorer and deleteRingCentralwhich should have a red X. - Remove
PubnubCoreandPubnubExample.csfrom project - Add .Net Assembly reference to
PubNub-Messaging.dllformono-for-mac - Add .Net Assembly reference to
RingCentral.dllbuilt above - Build
RingCentral.NET40solution item
Build RingCentral.NET40.Test solution item
- Add .Net Assembly reference to
PubNub-Messaging.dllformono-for-mac - Build
RingCentral.NET40.Testsolution item
Build RingCentral solution
- Build
RingCentralsolution
Create NuGet Package
Edit and use the .nuspec file to create the NuGet package as appropriate. Be sure to use the proper directory forward slashes for Mac.
$ nuget pack ringcentral.mac.nuspec
See the following links for more information on publishing NuGet packages: