Skip to content

Commit

Permalink
Remove CocoaPods distribution build
Browse files Browse the repository at this point in the history
  • Loading branch information
frankus committed Apr 19, 2016
1 parent 4b77ee5 commit ac0ba80
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions etc/bin/build_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def run_command(command, verbose=False):
return (p.returncode, output)

class Builder(object):
COCOAPODS_DIST = "COCOAPODS_DIST"

BINARY_DIST = "BINARY_DIST"
build_root = "/tmp/apptentive_connect_build"
dist_type = None
Expand All @@ -59,7 +59,7 @@ def __init__(self, verbose=False, dist_type=None):
dist_type = self.BINARY_DIST
self.verbose = verbose
self.dist_type = dist_type
if dist_type not in [self.COCOAPODS_DIST, self.BINARY_DIST]:
if dist_type not in [self.BINARY_DIST]:
log("Unknown dist_type: %s" % dist_type)
sys.exit(1)

Expand Down Expand Up @@ -113,9 +113,7 @@ def build(self):
return False
plist = biplist.readPlist(bundle_plist_path)
plist_key = "ATInfoDistributionKey"
if self.dist_type == self.COCOAPODS_DIST:
plist[plist_key] = "CocoaPods"
elif self.dist_type == self.BINARY_DIST:
if self.dist_type == self.BINARY_DIST:
plist[plist_key] = "binary"
else:
log("Unknown dist_type")
Expand All @@ -133,8 +131,6 @@ def build(self):
if version:
if self.dist_type == self.BINARY_DIST:
filename = 'apptentive_ios_sdk-%s.tar.gz' % version
elif self.dist_type == self.COCOAPODS_DIST:
filename = 'apptentive_ios_sdk-cocoapods-%s.tar.gz' % version
tar_command = "tar -zcvf ../%s ." % filename
(status, output) = run_command(tar_command, verbose=self.verbose)
if status != 0:
Expand Down Expand Up @@ -198,7 +194,7 @@ def _ditto_file(self, path_from, path_to):
return run_command(command, verbose=self.verbose)

if __name__ == "__main__":
for dist_type in [Builder.BINARY_DIST, Builder.COCOAPODS_DIST]:
for dist_type in [Builder.BINARY_DIST]:
builder = Builder(dist_type=dist_type)
result = builder.build()
if result == True:
Expand Down

0 comments on commit ac0ba80

Please sign in to comment.