Skip to content

Commit feb557a

Browse files
committed
Adjust quotation mark usage and deployment target
1 parent c20e596 commit feb557a

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

CGRPCZlib.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
1212

1313
s.swift_version = '5.0'
1414
s.ios.deployment_target = '10.0'
15-
s.osx.deployment_target = '10.12'
15+
s.osx.deployment_target = '10.10'
1616
s.tvos.deployment_target = '10.0'
1717
s.source_files = 'Sources/CGRPCZlib/**/*.{swift,c,h}'
1818

gRPC-Swift.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
1212

1313
s.swift_version = '5.0'
1414
s.ios.deployment_target = '10.0'
15-
s.osx.deployment_target = '10.12'
15+
s.osx.deployment_target = '10.10'
1616
s.tvos.deployment_target = '10.0'
1717
s.source_files = 'Sources/GRPC/**/*.{swift,c,h}'
1818

scripts/build_podspecs.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
import argparse
2222

2323
class Dependency:
24-
def __init__(self, name, version="s.version.to_s", internal=True):
24+
def __init__(self, name, version='s.version.to_s', useVerbatimVersion=True):
2525
self.name = name
2626
self.version = version
27-
self.internal = internal
27+
self.useVerbatimVersion = useVerbatimVersion
2828

2929
def as_podspec(self):
30-
if self.internal:
30+
if self.useVerbatimVersion:
3131
return " s.dependency '%s', %s\n" % (self.name, self.version)
3232
else:
3333
return " s.dependency '%s', '%s'\n" % (self.name, self.version)
@@ -65,7 +65,7 @@ def as_podspec(self):
6565
podspec += " s.swift_version = '5.0'\n"
6666

6767
podspec += " s.ios.deployment_target = '10.0'\n"
68-
podspec += " s.osx.deployment_target = '10.12'\n"
68+
podspec += " s.osx.deployment_target = '10.10'\n"
6969
podspec += " s.tvos.deployment_target = '10.0'\n"
7070

7171
podspec += " s.source_files = 'Sources/%s/**/*.{swift,c,h}'\n" % (self.module_name)
@@ -87,13 +87,13 @@ def __init__(self, directory, version, should_publish):
8787
self.should_publish = should_publish
8888

8989
def write(self, pod, contents):
90-
print(" Writing to %s/%s.podspec " % (self.directory, pod))
91-
with open("%s/%s.podspec" % (self.directory, pod), "w") as f:
90+
print(' Writing to %s/%s.podspec ' % (self.directory, pod))
91+
with open('%s/%s.podspec' % (self.directory, pod), 'w') as f:
9292
f.write(contents)
9393

9494
def publish(self, pod_name):
9595
os.system('pod repo update')
96-
print(" Publishing %s.podspec" % (pod_name))
96+
print(' Publishing %s.podspec' % (pod_name))
9797
os.system('pod repo push %s/%s.podspec' % (self.directory, pod_name))
9898

9999
def build_pods(self):
@@ -112,7 +112,7 @@ def go(self):
112112
if self.should_publish:
113113
self.publish(target.name)
114114
else:
115-
print(" Skipping Publishing...")
115+
print(' Skipping Publishing...')
116116

117117
def process_package(string):
118118
pod_mappings = {
@@ -132,9 +132,9 @@ def get_grpc_deps():
132132

133133
deps = []
134134

135-
for obj in data["object"]["pins"]:
136-
package = process_package(obj["package"])
137-
version = obj["state"]["version"]
135+
for obj in data['object']['pins']:
136+
package = process_package(obj['package'])
137+
version = obj['state']['version']
138138

139139
deps.append(Dependency(package, version, False))
140140

0 commit comments

Comments
 (0)