Xamarin creates and maintains Xamarin.Android and Xamarin.iOS bindings for Facebook SDKs.
Before building the libraries and samples in this repository, you will need to install .NET Core and the Cake .NET Core Tool:
dotnet tool install -g cake.tool
When building on macOS, you may also need to install CocoaPods:
# Homebrew
brew install cocoapods
# Ruby Gems
gem install cocoapods
You can either build all the libraries and samples in the repository from the root:
dotnet cake
Or, you can build each component separately:
# iOS
cd Facebook.iOS
dotnet cake
# Android
cd Facebook.Android
dotnet cake
The following targets can be specified using the --target=<target-name>
:
libs
builds the class library bindings (depends onexternals
)externals
downloads and builds the external dependenciessamples
builds all of the samples (depends onlibs
)nuget
builds the nuget packages (depends onlibs
)clean
cleans up everything
Before the .sln
files will compile in the IDEs, the external dependencies need to be downloaded. This can be done by running the externals
target:
dotnet cake --target=externals
After the externals are downloaded and built, the .sln
files should compile in your IDE.
The license for this repository is specified in License.md
Files named External-Dependency-Info within this repository exist to provide content to the THIRD-PARTY-NOTICES file of the Xamarin Component and NuGet binary packages. Information within the External-Dependency-Info files describe potential dependencies bundled with packages as a result of building projects within this repo.
You will need to complete a Contribution License Agreement before your pull request can be accepted. You can complete the CLA by going through the steps at https://cla2.dotnetfoundation.org/.
This project is part of the .NET Foundation