mirror of https://github.com/grpc/grpc.git
commit
45d54e4581
124 changed files with 3254 additions and 30245 deletions
@ -0,0 +1,3 @@ |
|||||||
|
bin |
||||||
|
obj |
||||||
|
*.nupkg |
@ -0,0 +1,124 @@ |
|||||||
|
#region Copyright notice and license |
||||||
|
|
||||||
|
// Copyright 2015, Google Inc. |
||||||
|
// All rights reserved. |
||||||
|
// |
||||||
|
// Redistribution and use in source and binary forms, with or without |
||||||
|
// modification, are permitted provided that the following conditions are |
||||||
|
// met: |
||||||
|
// |
||||||
|
// * Redistributions of source code must retain the above copyright |
||||||
|
// notice, this list of conditions and the following disclaimer. |
||||||
|
// * Redistributions in binary form must reproduce the above |
||||||
|
// copyright notice, this list of conditions and the following disclaimer |
||||||
|
// in the documentation and/or other materials provided with the |
||||||
|
// distribution. |
||||||
|
// * Neither the name of Google Inc. nor the names of its |
||||||
|
// contributors may be used to endorse or promote products derived from |
||||||
|
// this software without specific prior written permission. |
||||||
|
// |
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||||
|
|
||||||
|
#endregion |
||||||
|
|
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.IO; |
||||||
|
using System.Security.Cryptography; |
||||||
|
|
||||||
|
using Google.Apis.Auth.OAuth2; |
||||||
|
using Mono.Security.Cryptography; |
||||||
|
using Newtonsoft.Json.Linq; |
||||||
|
using Org.BouncyCastle.Crypto.Parameters; |
||||||
|
using Org.BouncyCastle.Security; |
||||||
|
|
||||||
|
namespace Grpc.Auth |
||||||
|
{ |
||||||
|
// TODO(jtattermusch): Remove this class once possible. |
||||||
|
/// <summary> |
||||||
|
/// A temporary placeholder for Google credential from |
||||||
|
/// Google Auth library for .NET. It emulates the usage pattern |
||||||
|
/// for Usable auth. |
||||||
|
/// </summary> |
||||||
|
public class GoogleCredential |
||||||
|
{ |
||||||
|
private const string GoogleApplicationCredentialsEnvName = "GOOGLE_APPLICATION_CREDENTIALS"; |
||||||
|
private const string ClientEmailFieldName = "client_email"; |
||||||
|
private const string PrivateKeyFieldName = "private_key"; |
||||||
|
|
||||||
|
private ServiceCredential credential; |
||||||
|
|
||||||
|
private GoogleCredential(ServiceCredential credential) |
||||||
|
{ |
||||||
|
this.credential = credential; |
||||||
|
} |
||||||
|
|
||||||
|
public static GoogleCredential GetApplicationDefault() |
||||||
|
{ |
||||||
|
return new GoogleCredential(null); |
||||||
|
} |
||||||
|
|
||||||
|
public bool IsCreateScopedRequired |
||||||
|
{ |
||||||
|
get |
||||||
|
{ |
||||||
|
return true; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public GoogleCredential CreateScoped(IEnumerable<string> scopes) |
||||||
|
{ |
||||||
|
var credsPath = Environment.GetEnvironmentVariable(GoogleApplicationCredentialsEnvName); |
||||||
|
if (credsPath == null) |
||||||
|
{ |
||||||
|
// Default to ComputeCredentials if path to JSON key is not set. |
||||||
|
// ComputeCredential is not scoped actually, but for our use case it's |
||||||
|
// fine to treat is as such. |
||||||
|
return new GoogleCredential(new ComputeCredential(new ComputeCredential.Initializer())); |
||||||
|
} |
||||||
|
|
||||||
|
JObject o1 = JObject.Parse(File.ReadAllText(credsPath)); |
||||||
|
string clientEmail = o1.GetValue(ClientEmailFieldName).Value<string>(); |
||||||
|
string privateKeyString = o1.GetValue(PrivateKeyFieldName).Value<string>(); |
||||||
|
var privateKey = ParsePrivateKeyFromString(privateKeyString); |
||||||
|
|
||||||
|
var serviceCredential = new ServiceAccountCredential( |
||||||
|
new ServiceAccountCredential.Initializer(clientEmail) |
||||||
|
{ |
||||||
|
Scopes = scopes, |
||||||
|
Key = privateKey |
||||||
|
}); |
||||||
|
return new GoogleCredential(serviceCredential); |
||||||
|
} |
||||||
|
|
||||||
|
internal ServiceCredential InternalCredential |
||||||
|
{ |
||||||
|
get |
||||||
|
{ |
||||||
|
return credential; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
private RSACryptoServiceProvider ParsePrivateKeyFromString(string base64PrivateKey) |
||||||
|
{ |
||||||
|
// TODO(jtattermusch): temporary code to create RSACryptoServiceProvider. |
||||||
|
base64PrivateKey = base64PrivateKey.Replace("-----BEGIN PRIVATE KEY-----", "").Replace("\n", "").Replace("-----END PRIVATE KEY-----", ""); |
||||||
|
PKCS8.PrivateKeyInfo PKI = new PKCS8.PrivateKeyInfo(Convert.FromBase64String(base64PrivateKey)); |
||||||
|
RsaPrivateCrtKeyParameters key = (RsaPrivateCrtKeyParameters)PrivateKeyFactory.CreateKey(PKI.GetBytes()); |
||||||
|
RSAParameters rsaParameters = DotNetUtilities.ToRSAParameters(key); |
||||||
|
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(); |
||||||
|
rsa.ImportParameters(rsaParameters); |
||||||
|
return rsa; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,104 @@ |
|||||||
|
#region Copyright notice and license |
||||||
|
|
||||||
|
// Copyright 2015, Google Inc. |
||||||
|
// All rights reserved. |
||||||
|
// |
||||||
|
// Redistribution and use in source and binary forms, with or without |
||||||
|
// modification, are permitted provided that the following conditions are |
||||||
|
// met: |
||||||
|
// |
||||||
|
// * Redistributions of source code must retain the above copyright |
||||||
|
// notice, this list of conditions and the following disclaimer. |
||||||
|
// * Redistributions in binary form must reproduce the above |
||||||
|
// copyright notice, this list of conditions and the following disclaimer |
||||||
|
// in the documentation and/or other materials provided with the |
||||||
|
// distribution. |
||||||
|
// * Neither the name of Google Inc. nor the names of its |
||||||
|
// contributors may be used to endorse or promote products derived from |
||||||
|
// this software without specific prior written permission. |
||||||
|
// |
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||||||
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||||||
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||||||
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||||||
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||||
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||||
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||||||
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||||||
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||||||
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||||||
|
|
||||||
|
#endregion |
||||||
|
|
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Diagnostics; |
||||||
|
using System.IO; |
||||||
|
using System.Security.Cryptography.X509Certificates; |
||||||
|
using System.Text.RegularExpressions; |
||||||
|
using System.Threading; |
||||||
|
using System.Threading.Tasks; |
||||||
|
|
||||||
|
using Google.Apis.Auth.OAuth2; |
||||||
|
using Google.Apis.Util; |
||||||
|
using Grpc.Core; |
||||||
|
using Grpc.Core.Utils; |
||||||
|
|
||||||
|
namespace Grpc.Auth |
||||||
|
{ |
||||||
|
public static class OAuth2InterceptorFactory |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// Creates OAuth2 interceptor. |
||||||
|
/// </summary> |
||||||
|
public static HeaderInterceptorDelegate Create(GoogleCredential googleCredential) |
||||||
|
{ |
||||||
|
var interceptor = new OAuth2Interceptor(googleCredential.InternalCredential, SystemClock.Default); |
||||||
|
return new HeaderInterceptorDelegate(interceptor.InterceptHeaders); |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Injects OAuth2 authorization header into initial metadata (= request headers). |
||||||
|
/// </summary> |
||||||
|
private class OAuth2Interceptor |
||||||
|
{ |
||||||
|
private const string AuthorizationHeader = "Authorization"; |
||||||
|
private const string Schema = "Bearer"; |
||||||
|
|
||||||
|
private ServiceCredential credential; |
||||||
|
private IClock clock; |
||||||
|
|
||||||
|
public OAuth2Interceptor(ServiceCredential credential, IClock clock) |
||||||
|
{ |
||||||
|
this.credential = credential; |
||||||
|
this.clock = clock; |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Gets access token and requests refreshing it if is going to expire soon. |
||||||
|
/// </summary> |
||||||
|
/// <param name="cancellationToken"></param> |
||||||
|
/// <returns></returns> |
||||||
|
public string GetAccessToken(CancellationToken cancellationToken) |
||||||
|
{ |
||||||
|
if (credential.Token == null || credential.Token.IsExpired(clock)) |
||||||
|
{ |
||||||
|
// TODO(jtattermusch): Parallel requests will spawn multiple requests to refresh the token once the token expires. |
||||||
|
// TODO(jtattermusch): Rethink synchronous wait to obtain the result. |
||||||
|
if (!credential.RequestAccessTokenAsync(cancellationToken).Result) |
||||||
|
{ |
||||||
|
throw new InvalidOperationException("The access token has expired but we can't refresh it"); |
||||||
|
} |
||||||
|
} |
||||||
|
return credential.Token.AccessToken; |
||||||
|
} |
||||||
|
|
||||||
|
public void InterceptHeaders(Metadata.Builder headerBuilder) |
||||||
|
{ |
||||||
|
var accessToken = GetAccessToken(CancellationToken.None); |
||||||
|
headerBuilder.Add(new Metadata.MetadataEntry(AuthorizationHeader, Schema + " " + accessToken)); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,14 @@ |
|||||||
|
using System.Reflection; |
||||||
|
using System.Runtime.CompilerServices; |
||||||
|
|
||||||
|
[assembly: AssemblyTitle("Grpc.Auth")] |
||||||
|
[assembly: AssemblyDescription("")] |
||||||
|
[assembly: AssemblyConfiguration("")] |
||||||
|
[assembly: AssemblyCompany("")] |
||||||
|
[assembly: AssemblyProduct("")] |
||||||
|
[assembly: AssemblyCopyright("Google Inc. All rights reserved.")] |
||||||
|
[assembly: AssemblyTrademark("")] |
||||||
|
[assembly: AssemblyCulture("")] |
||||||
|
[assembly: AssemblyVersion("0.2.*")] |
||||||
|
|
||||||
|
[assembly: InternalsVisibleTo("Grpc.Auth.Tests")] |
@ -1,20 +0,0 @@ |
|||||||
PODS: |
|
||||||
- GRPCClient (0.0.1): |
|
||||||
- RxLibrary (~> 0.0) |
|
||||||
- RxLibrary (0.0.1) |
|
||||||
|
|
||||||
DEPENDENCIES: |
|
||||||
- GRPCClient (from `../../GRPCClient`) |
|
||||||
- RxLibrary (from `../../RxLibrary`) |
|
||||||
|
|
||||||
EXTERNAL SOURCES: |
|
||||||
GRPCClient: |
|
||||||
:path: ../../GRPCClient |
|
||||||
RxLibrary: |
|
||||||
:path: ../../RxLibrary |
|
||||||
|
|
||||||
SPEC CHECKSUMS: |
|
||||||
GRPCClient: 05c58faab99661384178bb7c5f93b60c2bfc89f8 |
|
||||||
RxLibrary: 70cfcf1573ec16a375b4fe61d976a3188aab9303 |
|
||||||
|
|
||||||
COCOAPODS: 0.35.0 |
|
@ -1 +0,0 @@ |
|||||||
../../../../../../GRPCClient/GRPCCall.h |
|
@ -1 +0,0 @@ |
|||||||
../../../../../../GRPCClient/GRPCMethodName.h |
|
@ -1 +0,0 @@ |
|||||||
../../../../../../RxLibrary/GRXImmediateWriter.h |
|
@ -1 +0,0 @@ |
|||||||
../../../../../../RxLibrary/transformations/GRXMappingWriter.h |
|
@ -1 +0,0 @@ |
|||||||
../../../../../../RxLibrary/GRXWriteable.h |
|
@ -1 +0,0 @@ |
|||||||
../../../../../../RxLibrary/GRXWriter+Immediate.h |
|
@ -1 +0,0 @@ |
|||||||
../../../../../../RxLibrary/GRXWriter+Transformations.h |
|
@ -1 +0,0 @@ |
|||||||
../../../../../../RxLibrary/GRXWriter.h |
|
@ -1 +0,0 @@ |
|||||||
../../../../../../RxLibrary/NSEnumerator+GRXUtil.h |
|
@ -1,14 +0,0 @@ |
|||||||
Pod::Spec.new do |s| |
|
||||||
s.name = 'GRPCClient' |
|
||||||
s.version = '0.0.1' |
|
||||||
s.summary = 'Generic gRPC client library for iOS' |
|
||||||
s.author = { |
|
||||||
'Jorge Canizales' => 'jcanizales@google.com' |
|
||||||
} |
|
||||||
s.source_files = '*.{h,m}', 'private/*.{h,m}' |
|
||||||
s.private_header_files = 'private/*.h' |
|
||||||
s.platform = :ios |
|
||||||
s.ios.deployment_target = '6.0' |
|
||||||
s.requires_arc = true |
|
||||||
s.dependency 'RxLibrary', '~> 0.0' |
|
||||||
end |
|
@ -1,13 +0,0 @@ |
|||||||
Pod::Spec.new do |s| |
|
||||||
s.name = 'RxLibrary' |
|
||||||
s.version = '0.0.1' |
|
||||||
s.summary = 'Reactive Extensions library for iOS' |
|
||||||
s.author = { |
|
||||||
'Jorge Canizales' => 'jcanizales@google.com' |
|
||||||
} |
|
||||||
s.source_files = '*.{h,m}', 'transformations/*.{h,m}', 'private/*.{h,m}' |
|
||||||
s.private_header_files = 'private/*.h' |
|
||||||
s.platform = :ios |
|
||||||
s.ios.deployment_target = '6.0' |
|
||||||
s.requires_arc = true |
|
||||||
end |
|
@ -1,20 +0,0 @@ |
|||||||
PODS: |
|
||||||
- GRPCClient (0.0.1): |
|
||||||
- RxLibrary (~> 0.0) |
|
||||||
- RxLibrary (0.0.1) |
|
||||||
|
|
||||||
DEPENDENCIES: |
|
||||||
- GRPCClient (from `../../GRPCClient`) |
|
||||||
- RxLibrary (from `../../RxLibrary`) |
|
||||||
|
|
||||||
EXTERNAL SOURCES: |
|
||||||
GRPCClient: |
|
||||||
:path: ../../GRPCClient |
|
||||||
RxLibrary: |
|
||||||
:path: ../../RxLibrary |
|
||||||
|
|
||||||
SPEC CHECKSUMS: |
|
||||||
GRPCClient: 05c58faab99661384178bb7c5f93b60c2bfc89f8 |
|
||||||
RxLibrary: 70cfcf1573ec16a375b4fe61d976a3188aab9303 |
|
||||||
|
|
||||||
COCOAPODS: 0.35.0 |
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +0,0 @@ |
|||||||
#include "Pods-GRPCClient.xcconfig" |
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 |
|
||||||
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Build" "${PODS_ROOT}/Headers/Build/GRPCClient" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GRPCClient" "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_LDFLAGS = -ObjC |
|
||||||
PODS_ROOT = ${SRCROOT} |
|
@ -1,5 +0,0 @@ |
|||||||
#import <Foundation/Foundation.h> |
|
||||||
@interface PodsDummy_Pods_GRPCClient : NSObject |
|
||||||
@end |
|
||||||
@implementation PodsDummy_Pods_GRPCClient |
|
||||||
@end |
|
@ -1,5 +0,0 @@ |
|||||||
#ifdef __OBJC__ |
|
||||||
#import <UIKit/UIKit.h> |
|
||||||
#endif |
|
||||||
|
|
||||||
#import "Pods-environment.h" |
|
@ -1,5 +0,0 @@ |
|||||||
#include "Pods-RxLibrary.xcconfig" |
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 |
|
||||||
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Build" "${PODS_ROOT}/Headers/Build/RxLibrary" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GRPCClient" "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_LDFLAGS = -ObjC |
|
||||||
PODS_ROOT = ${SRCROOT} |
|
@ -1,5 +0,0 @@ |
|||||||
#import <Foundation/Foundation.h> |
|
||||||
@interface PodsDummy_Pods_RxLibrary : NSObject |
|
||||||
@end |
|
||||||
@implementation PodsDummy_Pods_RxLibrary |
|
||||||
@end |
|
@ -1,5 +0,0 @@ |
|||||||
#ifdef __OBJC__ |
|
||||||
#import <UIKit/UIKit.h> |
|
||||||
#endif |
|
||||||
|
|
||||||
#import "Pods-environment.h" |
|
@ -1,5 +0,0 @@ |
|||||||
#include "Pods-Sample-GRPCClient.xcconfig" |
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 |
|
||||||
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Build" "${PODS_ROOT}/Headers/Build/GRPCClient" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GRPCClient" "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_LDFLAGS = -ObjC |
|
||||||
PODS_ROOT = ${SRCROOT} |
|
@ -1,5 +0,0 @@ |
|||||||
#import <Foundation/Foundation.h> |
|
||||||
@interface PodsDummy_Pods_Sample_GRPCClient : NSObject |
|
||||||
@end |
|
||||||
@implementation PodsDummy_Pods_Sample_GRPCClient |
|
||||||
@end |
|
@ -1,5 +0,0 @@ |
|||||||
#ifdef __OBJC__ |
|
||||||
#import <UIKit/UIKit.h> |
|
||||||
#endif |
|
||||||
|
|
||||||
#import "Pods-Sample-environment.h" |
|
@ -1,5 +0,0 @@ |
|||||||
#include "Pods-Sample-RxLibrary.xcconfig" |
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 |
|
||||||
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Build" "${PODS_ROOT}/Headers/Build/RxLibrary" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GRPCClient" "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_LDFLAGS = -ObjC |
|
||||||
PODS_ROOT = ${SRCROOT} |
|
@ -1,5 +0,0 @@ |
|||||||
#import <Foundation/Foundation.h> |
|
||||||
@interface PodsDummy_Pods_Sample_RxLibrary : NSObject |
|
||||||
@end |
|
||||||
@implementation PodsDummy_Pods_Sample_RxLibrary |
|
||||||
@end |
|
@ -1,5 +0,0 @@ |
|||||||
#ifdef __OBJC__ |
|
||||||
#import <UIKit/UIKit.h> |
|
||||||
#endif |
|
||||||
|
|
||||||
#import "Pods-Sample-environment.h" |
|
@ -1,3 +0,0 @@ |
|||||||
# Acknowledgements |
|
||||||
This application makes use of the following third party libraries: |
|
||||||
Generated by CocoaPods - http://cocoapods.org |
|
@ -1,29 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
|
||||||
<plist version="1.0"> |
|
||||||
<dict> |
|
||||||
<key>PreferenceSpecifiers</key> |
|
||||||
<array> |
|
||||||
<dict> |
|
||||||
<key>FooterText</key> |
|
||||||
<string>This application makes use of the following third party libraries:</string> |
|
||||||
<key>Title</key> |
|
||||||
<string>Acknowledgements</string> |
|
||||||
<key>Type</key> |
|
||||||
<string>PSGroupSpecifier</string> |
|
||||||
</dict> |
|
||||||
<dict> |
|
||||||
<key>FooterText</key> |
|
||||||
<string>Generated by CocoaPods - http://cocoapods.org</string> |
|
||||||
<key>Title</key> |
|
||||||
<string></string> |
|
||||||
<key>Type</key> |
|
||||||
<string>PSGroupSpecifier</string> |
|
||||||
</dict> |
|
||||||
</array> |
|
||||||
<key>StringsTable</key> |
|
||||||
<string>Acknowledgements</string> |
|
||||||
<key>Title</key> |
|
||||||
<string>Acknowledgements</string> |
|
||||||
</dict> |
|
||||||
</plist> |
|
@ -1,5 +0,0 @@ |
|||||||
#import <Foundation/Foundation.h> |
|
||||||
@interface PodsDummy_Pods_Sample : NSObject |
|
||||||
@end |
|
||||||
@implementation PodsDummy_Pods_Sample |
|
||||||
@end |
|
@ -1,20 +0,0 @@ |
|||||||
|
|
||||||
// To check if a library is compiled with CocoaPods you
|
|
||||||
// can use the `COCOAPODS` macro definition which is
|
|
||||||
// defined in the xcconfigs so it is available in
|
|
||||||
// headers also when they are imported in the client
|
|
||||||
// project.
|
|
||||||
|
|
||||||
|
|
||||||
// GRPCClient
|
|
||||||
#define COCOAPODS_POD_AVAILABLE_GRPCClient |
|
||||||
#define COCOAPODS_VERSION_MAJOR_GRPCClient 0 |
|
||||||
#define COCOAPODS_VERSION_MINOR_GRPCClient 0 |
|
||||||
#define COCOAPODS_VERSION_PATCH_GRPCClient 1 |
|
||||||
|
|
||||||
// RxLibrary
|
|
||||||
#define COCOAPODS_POD_AVAILABLE_RxLibrary |
|
||||||
#define COCOAPODS_VERSION_MAJOR_RxLibrary 0 |
|
||||||
#define COCOAPODS_VERSION_MINOR_RxLibrary 0 |
|
||||||
#define COCOAPODS_VERSION_PATCH_RxLibrary 1 |
|
||||||
|
|
@ -1,74 +0,0 @@ |
|||||||
#!/bin/sh |
|
||||||
set -e |
|
||||||
|
|
||||||
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" |
|
||||||
|
|
||||||
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt |
|
||||||
> "$RESOURCES_TO_COPY" |
|
||||||
|
|
||||||
install_resource() |
|
||||||
{ |
|
||||||
case $1 in |
|
||||||
*.storyboard) |
|
||||||
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" |
|
||||||
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" |
|
||||||
;; |
|
||||||
*.xib) |
|
||||||
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" |
|
||||||
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" |
|
||||||
;; |
|
||||||
*.framework) |
|
||||||
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" |
|
||||||
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" |
|
||||||
echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" |
|
||||||
rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" |
|
||||||
;; |
|
||||||
*.xcdatamodel) |
|
||||||
echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" |
|
||||||
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" |
|
||||||
;; |
|
||||||
*.xcdatamodeld) |
|
||||||
echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" |
|
||||||
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" |
|
||||||
;; |
|
||||||
*.xcmappingmodel) |
|
||||||
echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" |
|
||||||
xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" |
|
||||||
;; |
|
||||||
*.xcassets) |
|
||||||
;; |
|
||||||
/*) |
|
||||||
echo "$1" |
|
||||||
echo "$1" >> "$RESOURCES_TO_COPY" |
|
||||||
;; |
|
||||||
*) |
|
||||||
echo "${PODS_ROOT}/$1" |
|
||||||
echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" |
|
||||||
;; |
|
||||||
esac |
|
||||||
} |
|
||||||
|
|
||||||
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" |
|
||||||
if [[ "${ACTION}" == "install" ]]; then |
|
||||||
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" |
|
||||||
fi |
|
||||||
rm -f "$RESOURCES_TO_COPY" |
|
||||||
|
|
||||||
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ `find . -name '*.xcassets' | wc -l` -ne 0 ] |
|
||||||
then |
|
||||||
case "${TARGETED_DEVICE_FAMILY}" in |
|
||||||
1,2) |
|
||||||
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" |
|
||||||
;; |
|
||||||
1) |
|
||||||
TARGET_DEVICE_ARGS="--target-device iphone" |
|
||||||
;; |
|
||||||
2) |
|
||||||
TARGET_DEVICE_ARGS="--target-device ipad" |
|
||||||
;; |
|
||||||
*) |
|
||||||
TARGET_DEVICE_ARGS="--target-device mac" |
|
||||||
;; |
|
||||||
esac |
|
||||||
find "${PWD}" -name "*.xcassets" -print0 | xargs -0 actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" |
|
||||||
fi |
|
@ -1,6 +0,0 @@ |
|||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 |
|
||||||
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GRPCClient" "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/GRPCClient" -isystem "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_LDFLAGS = -ObjC -l"Pods-Sample-GRPCClient" -l"Pods-Sample-RxLibrary" |
|
||||||
OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) |
|
||||||
PODS_ROOT = ${SRCROOT}/Pods |
|
@ -1,6 +0,0 @@ |
|||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 |
|
||||||
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GRPCClient" "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/GRPCClient" -isystem "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_LDFLAGS = -ObjC -l"Pods-Sample-GRPCClient" -l"Pods-Sample-RxLibrary" |
|
||||||
OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) |
|
||||||
PODS_ROOT = ${SRCROOT}/Pods |
|
@ -1,5 +0,0 @@ |
|||||||
#include "Pods-SampleTests-GRPCClient.xcconfig" |
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 |
|
||||||
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Build" "${PODS_ROOT}/Headers/Build/GRPCClient" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GRPCClient" "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_LDFLAGS = -ObjC |
|
||||||
PODS_ROOT = ${SRCROOT} |
|
@ -1,5 +0,0 @@ |
|||||||
#import <Foundation/Foundation.h> |
|
||||||
@interface PodsDummy_Pods_SampleTests_GRPCClient : NSObject |
|
||||||
@end |
|
||||||
@implementation PodsDummy_Pods_SampleTests_GRPCClient |
|
||||||
@end |
|
@ -1,5 +0,0 @@ |
|||||||
#ifdef __OBJC__ |
|
||||||
#import <UIKit/UIKit.h> |
|
||||||
#endif |
|
||||||
|
|
||||||
#import "Pods-SampleTests-environment.h" |
|
@ -1,5 +0,0 @@ |
|||||||
#include "Pods-SampleTests-RxLibrary.xcconfig" |
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 |
|
||||||
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Build" "${PODS_ROOT}/Headers/Build/RxLibrary" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GRPCClient" "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_LDFLAGS = -ObjC |
|
||||||
PODS_ROOT = ${SRCROOT} |
|
@ -1,5 +0,0 @@ |
|||||||
#import <Foundation/Foundation.h> |
|
||||||
@interface PodsDummy_Pods_SampleTests_RxLibrary : NSObject |
|
||||||
@end |
|
||||||
@implementation PodsDummy_Pods_SampleTests_RxLibrary |
|
||||||
@end |
|
@ -1,5 +0,0 @@ |
|||||||
#ifdef __OBJC__ |
|
||||||
#import <UIKit/UIKit.h> |
|
||||||
#endif |
|
||||||
|
|
||||||
#import "Pods-SampleTests-environment.h" |
|
@ -1,3 +0,0 @@ |
|||||||
# Acknowledgements |
|
||||||
This application makes use of the following third party libraries: |
|
||||||
Generated by CocoaPods - http://cocoapods.org |
|
@ -1,29 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
|
||||||
<plist version="1.0"> |
|
||||||
<dict> |
|
||||||
<key>PreferenceSpecifiers</key> |
|
||||||
<array> |
|
||||||
<dict> |
|
||||||
<key>FooterText</key> |
|
||||||
<string>This application makes use of the following third party libraries:</string> |
|
||||||
<key>Title</key> |
|
||||||
<string>Acknowledgements</string> |
|
||||||
<key>Type</key> |
|
||||||
<string>PSGroupSpecifier</string> |
|
||||||
</dict> |
|
||||||
<dict> |
|
||||||
<key>FooterText</key> |
|
||||||
<string>Generated by CocoaPods - http://cocoapods.org</string> |
|
||||||
<key>Title</key> |
|
||||||
<string></string> |
|
||||||
<key>Type</key> |
|
||||||
<string>PSGroupSpecifier</string> |
|
||||||
</dict> |
|
||||||
</array> |
|
||||||
<key>StringsTable</key> |
|
||||||
<string>Acknowledgements</string> |
|
||||||
<key>Title</key> |
|
||||||
<string>Acknowledgements</string> |
|
||||||
</dict> |
|
||||||
</plist> |
|
@ -1,5 +0,0 @@ |
|||||||
#import <Foundation/Foundation.h> |
|
||||||
@interface PodsDummy_Pods_SampleTests : NSObject |
|
||||||
@end |
|
||||||
@implementation PodsDummy_Pods_SampleTests |
|
||||||
@end |
|
@ -1,20 +0,0 @@ |
|||||||
|
|
||||||
// To check if a library is compiled with CocoaPods you
|
|
||||||
// can use the `COCOAPODS` macro definition which is
|
|
||||||
// defined in the xcconfigs so it is available in
|
|
||||||
// headers also when they are imported in the client
|
|
||||||
// project.
|
|
||||||
|
|
||||||
|
|
||||||
// GRPCClient
|
|
||||||
#define COCOAPODS_POD_AVAILABLE_GRPCClient |
|
||||||
#define COCOAPODS_VERSION_MAJOR_GRPCClient 0 |
|
||||||
#define COCOAPODS_VERSION_MINOR_GRPCClient 0 |
|
||||||
#define COCOAPODS_VERSION_PATCH_GRPCClient 1 |
|
||||||
|
|
||||||
// RxLibrary
|
|
||||||
#define COCOAPODS_POD_AVAILABLE_RxLibrary |
|
||||||
#define COCOAPODS_VERSION_MAJOR_RxLibrary 0 |
|
||||||
#define COCOAPODS_VERSION_MINOR_RxLibrary 0 |
|
||||||
#define COCOAPODS_VERSION_PATCH_RxLibrary 1 |
|
||||||
|
|
@ -1,74 +0,0 @@ |
|||||||
#!/bin/sh |
|
||||||
set -e |
|
||||||
|
|
||||||
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" |
|
||||||
|
|
||||||
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt |
|
||||||
> "$RESOURCES_TO_COPY" |
|
||||||
|
|
||||||
install_resource() |
|
||||||
{ |
|
||||||
case $1 in |
|
||||||
*.storyboard) |
|
||||||
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" |
|
||||||
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" |
|
||||||
;; |
|
||||||
*.xib) |
|
||||||
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" |
|
||||||
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" |
|
||||||
;; |
|
||||||
*.framework) |
|
||||||
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" |
|
||||||
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" |
|
||||||
echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" |
|
||||||
rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" |
|
||||||
;; |
|
||||||
*.xcdatamodel) |
|
||||||
echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" |
|
||||||
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" |
|
||||||
;; |
|
||||||
*.xcdatamodeld) |
|
||||||
echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" |
|
||||||
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" |
|
||||||
;; |
|
||||||
*.xcmappingmodel) |
|
||||||
echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" |
|
||||||
xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" |
|
||||||
;; |
|
||||||
*.xcassets) |
|
||||||
;; |
|
||||||
/*) |
|
||||||
echo "$1" |
|
||||||
echo "$1" >> "$RESOURCES_TO_COPY" |
|
||||||
;; |
|
||||||
*) |
|
||||||
echo "${PODS_ROOT}/$1" |
|
||||||
echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" |
|
||||||
;; |
|
||||||
esac |
|
||||||
} |
|
||||||
|
|
||||||
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" |
|
||||||
if [[ "${ACTION}" == "install" ]]; then |
|
||||||
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" |
|
||||||
fi |
|
||||||
rm -f "$RESOURCES_TO_COPY" |
|
||||||
|
|
||||||
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ `find . -name '*.xcassets' | wc -l` -ne 0 ] |
|
||||||
then |
|
||||||
case "${TARGETED_DEVICE_FAMILY}" in |
|
||||||
1,2) |
|
||||||
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" |
|
||||||
;; |
|
||||||
1) |
|
||||||
TARGET_DEVICE_ARGS="--target-device iphone" |
|
||||||
;; |
|
||||||
2) |
|
||||||
TARGET_DEVICE_ARGS="--target-device ipad" |
|
||||||
;; |
|
||||||
*) |
|
||||||
TARGET_DEVICE_ARGS="--target-device mac" |
|
||||||
;; |
|
||||||
esac |
|
||||||
find "${PWD}" -name "*.xcassets" -print0 | xargs -0 actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" |
|
||||||
fi |
|
@ -1,6 +0,0 @@ |
|||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 |
|
||||||
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GRPCClient" "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/GRPCClient" -isystem "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_LDFLAGS = -ObjC -l"Pods-SampleTests-GRPCClient" -l"Pods-SampleTests-RxLibrary" |
|
||||||
OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) |
|
||||||
PODS_ROOT = ${SRCROOT}/Pods |
|
@ -1,6 +0,0 @@ |
|||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 |
|
||||||
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GRPCClient" "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/GRPCClient" -isystem "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_LDFLAGS = -ObjC -l"Pods-SampleTests-GRPCClient" -l"Pods-SampleTests-RxLibrary" |
|
||||||
OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) |
|
||||||
PODS_ROOT = ${SRCROOT}/Pods |
|
@ -1,3 +0,0 @@ |
|||||||
# Acknowledgements |
|
||||||
This application makes use of the following third party libraries: |
|
||||||
Generated by CocoaPods - http://cocoapods.org |
|
@ -1,29 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
|
||||||
<plist version="1.0"> |
|
||||||
<dict> |
|
||||||
<key>PreferenceSpecifiers</key> |
|
||||||
<array> |
|
||||||
<dict> |
|
||||||
<key>FooterText</key> |
|
||||||
<string>This application makes use of the following third party libraries:</string> |
|
||||||
<key>Title</key> |
|
||||||
<string>Acknowledgements</string> |
|
||||||
<key>Type</key> |
|
||||||
<string>PSGroupSpecifier</string> |
|
||||||
</dict> |
|
||||||
<dict> |
|
||||||
<key>FooterText</key> |
|
||||||
<string>Generated by CocoaPods - http://cocoapods.org</string> |
|
||||||
<key>Title</key> |
|
||||||
<string></string> |
|
||||||
<key>Type</key> |
|
||||||
<string>PSGroupSpecifier</string> |
|
||||||
</dict> |
|
||||||
</array> |
|
||||||
<key>StringsTable</key> |
|
||||||
<string>Acknowledgements</string> |
|
||||||
<key>Title</key> |
|
||||||
<string>Acknowledgements</string> |
|
||||||
</dict> |
|
||||||
</plist> |
|
@ -1,5 +0,0 @@ |
|||||||
#import <Foundation/Foundation.h> |
|
||||||
@interface PodsDummy_Pods : NSObject |
|
||||||
@end |
|
||||||
@implementation PodsDummy_Pods |
|
||||||
@end |
|
@ -1,20 +0,0 @@ |
|||||||
|
|
||||||
// To check if a library is compiled with CocoaPods you
|
|
||||||
// can use the `COCOAPODS` macro definition which is
|
|
||||||
// defined in the xcconfigs so it is available in
|
|
||||||
// headers also when they are imported in the client
|
|
||||||
// project.
|
|
||||||
|
|
||||||
|
|
||||||
// GRPCClient
|
|
||||||
#define COCOAPODS_POD_AVAILABLE_GRPCClient |
|
||||||
#define COCOAPODS_VERSION_MAJOR_GRPCClient 0 |
|
||||||
#define COCOAPODS_VERSION_MINOR_GRPCClient 0 |
|
||||||
#define COCOAPODS_VERSION_PATCH_GRPCClient 1 |
|
||||||
|
|
||||||
// RxLibrary
|
|
||||||
#define COCOAPODS_POD_AVAILABLE_RxLibrary |
|
||||||
#define COCOAPODS_VERSION_MAJOR_RxLibrary 0 |
|
||||||
#define COCOAPODS_VERSION_MINOR_RxLibrary 0 |
|
||||||
#define COCOAPODS_VERSION_PATCH_RxLibrary 1 |
|
||||||
|
|
@ -1,74 +0,0 @@ |
|||||||
#!/bin/sh |
|
||||||
set -e |
|
||||||
|
|
||||||
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" |
|
||||||
|
|
||||||
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt |
|
||||||
> "$RESOURCES_TO_COPY" |
|
||||||
|
|
||||||
install_resource() |
|
||||||
{ |
|
||||||
case $1 in |
|
||||||
*.storyboard) |
|
||||||
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" |
|
||||||
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" |
|
||||||
;; |
|
||||||
*.xib) |
|
||||||
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" |
|
||||||
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" |
|
||||||
;; |
|
||||||
*.framework) |
|
||||||
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" |
|
||||||
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" |
|
||||||
echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" |
|
||||||
rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" |
|
||||||
;; |
|
||||||
*.xcdatamodel) |
|
||||||
echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" |
|
||||||
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" |
|
||||||
;; |
|
||||||
*.xcdatamodeld) |
|
||||||
echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" |
|
||||||
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" |
|
||||||
;; |
|
||||||
*.xcmappingmodel) |
|
||||||
echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" |
|
||||||
xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" |
|
||||||
;; |
|
||||||
*.xcassets) |
|
||||||
;; |
|
||||||
/*) |
|
||||||
echo "$1" |
|
||||||
echo "$1" >> "$RESOURCES_TO_COPY" |
|
||||||
;; |
|
||||||
*) |
|
||||||
echo "${PODS_ROOT}/$1" |
|
||||||
echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" |
|
||||||
;; |
|
||||||
esac |
|
||||||
} |
|
||||||
|
|
||||||
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" |
|
||||||
if [[ "${ACTION}" == "install" ]]; then |
|
||||||
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" |
|
||||||
fi |
|
||||||
rm -f "$RESOURCES_TO_COPY" |
|
||||||
|
|
||||||
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ `find . -name '*.xcassets' | wc -l` -ne 0 ] |
|
||||||
then |
|
||||||
case "${TARGETED_DEVICE_FAMILY}" in |
|
||||||
1,2) |
|
||||||
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" |
|
||||||
;; |
|
||||||
1) |
|
||||||
TARGET_DEVICE_ARGS="--target-device iphone" |
|
||||||
;; |
|
||||||
2) |
|
||||||
TARGET_DEVICE_ARGS="--target-device ipad" |
|
||||||
;; |
|
||||||
*) |
|
||||||
TARGET_DEVICE_ARGS="--target-device mac" |
|
||||||
;; |
|
||||||
esac |
|
||||||
find "${PWD}" -name "*.xcassets" -print0 | xargs -0 actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" |
|
||||||
fi |
|
@ -1,6 +0,0 @@ |
|||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 |
|
||||||
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GRPCClient" "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/GRPCClient" -isystem "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_LDFLAGS = -ObjC -l"Pods-GRPCClient" -l"Pods-RxLibrary" |
|
||||||
OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) |
|
||||||
PODS_ROOT = ${SRCROOT}/Pods |
|
@ -1,6 +0,0 @@ |
|||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 |
|
||||||
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GRPCClient" "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/GRPCClient" -isystem "${PODS_ROOT}/Headers/Public/RxLibrary" |
|
||||||
OTHER_LDFLAGS = -ObjC -l"Pods-GRPCClient" -l"Pods-RxLibrary" |
|
||||||
OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) |
|
||||||
PODS_ROOT = ${SRCROOT}/Pods |
|
@ -1,2 +1 @@ |
|||||||
When contributing changes to this sample, use Cocoapods to manage the workspace |
This sample app requires the use of Cocoapods. After installing Cocoapods, run `pod install` in this directory to recreate its dependencies. (This will compile OpenSSL, which takes some time). |
||||||
file and everything under the Pods directory. |
|
||||||
|
@ -1,10 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<Workspace |
|
||||||
version = "1.0"> |
|
||||||
<FileRef |
|
||||||
location = "group:Sample.xcodeproj"> |
|
||||||
</FileRef> |
|
||||||
<FileRef |
|
||||||
location = "group:Pods/Pods.xcodeproj"> |
|
||||||
</FileRef> |
|
||||||
</Workspace> |
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue