Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

Commit

Permalink
support for iOS 11
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsorokoletov committed Oct 19, 2017
1 parent 077b97d commit 8f8f131
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -32,11 +32,11 @@ Prerequisites:
- run `mozroots --import --sync` to import SSL root certificates.
- NuGet 3. To update NuGet, run `sudo nuget update -Self`
- Xamarin iOS
- ObjectiveSharpie. [Download information and manual](https://developer.xamarin.com/guides/cross-platform/macios/binding/objective-sharpie/).
- ObjectiveSharpie latest (3.4). [Download information and manual](https://developer.xamarin.com/guides/cross-platform/macios/binding/objective-sharpie/).

**First stage - generate bindings**

To generate bindings `sh bind.sh POD=FirebaseDatabase` or `sh bind.sh POD=Firebase/Messaging` or use other pod names (see here https://firebase.google.com/docs/ios/setup in _Available Pods_ section)
To generate bindings `sh bind.sh POD=LMGaugeView` or `sh bind.sh POD=Firebase/Messaging` or use other pod names (see here https://firebase.google.com/docs/ios/setup in _Available Pods_ section)

Other options:
- POD=podName
Expand All @@ -46,7 +46,7 @@ Other options:
- VERBOSE - to enable verbose output

**Second stage - compile and package as nuget**
To compile bindings and package then, run `sh FirebaseDatabase.build.sh` script in the `bindings` folder. This script is generated automatically and will show any errors in the bindings you need to correct.
To compile bindings and package then, run `sh LMGaugeView.build.sh` script in the `bindings` folder. This script is generated automatically and will show any errors in the bindings you need to correct.

After 2nd stage you should have a set of nuget packages ready for publishing in folder [bindings/packages-raw](https://github.com/alexsorokoletov/Xamarin.Firebase.iOS/tree/dev/automatic/bindings/packages-raw)

Expand Down
4 changes: 2 additions & 2 deletions build.fsx
Expand Up @@ -331,7 +331,7 @@ let generateCSharpBindingsForFramework pod podExpandedFolder =
let podNamespace = rootNamespace + fileSafePodName podName
let dependenciesHeaders = getDependentHeadersLocations pod
let depHeadersOption = if dependenciesHeaders.Length > 0 then (" " + String.Join(" ", dependenciesHeaders )) else ""
let sharpieArgs = "-tlm-do-not-submit bind -output " + bindingFolder + " -sdk "+ iosSdkInSharpie + " -scope " + allHeaders + " "
let sharpieArgs = "bind -output " + bindingFolder + " -sdk "+ iosSdkInSharpie + " -scope " + allHeaders + " "
+ rootHeaderFile + " -n " + podNamespace + " -c -I" + headersFolder + depHeadersOption + " -v"
let result = execProcess (fun info ->
info.FileName <- "sharpie"
Expand Down Expand Up @@ -373,7 +373,7 @@ let generateCSharpBindingsForCustom pod =
let dependenciesHeaders = [podPrivate; podPublic] |> Seq.toArray
let depHeadersOption = if dependenciesHeaders.Length > 0 then (" " + String.Join(" ", dependenciesHeaders)) else ""
let podNamespace = rootNamespace + safePodName
let sharpieArgs = "-tlm-do-not-submit bind -output " + bindingFolder + " -sdk "+ iosSdkInSharpie + " -scope " + headersFolder
let sharpieArgs = "bind -output " + bindingFolder + " -sdk "+ iosSdkInSharpie + " -scope " + headersFolder
+ " " + mainHeader
+ " -n " + podNamespace + " -c " + depHeadersOption + " -v"
let result = execProcess (fun info ->
Expand Down

0 comments on commit 8f8f131

Please sign in to comment.