Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: sky/tools/publish_apk.py

Issue 1235813007: Fix typo in publish_apk.py (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # Modeled on examples from: 6 # Modeled on examples from:
7 # https://github.com/googlesamples/android-play-publisher-api/tree/master/v2/pyt hon 7 # https://github.com/googlesamples/android-play-publisher-api/tree/master/v2/pyt hon
8 8
9 import argparse 9 import argparse
10 import httplib2 10 import httplib2
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 track=track, 50 track=track,
51 packageName=package_name, 51 packageName=package_name,
52 body={u'versionCodes': [apk_response['versionCode']]}).execute() 52 body={u'versionCodes': [apk_response['versionCode']]}).execute()
53 53
54 print 'Track %s is set for version code(s) %s' % ( 54 print 'Track %s is set for version code(s) %s' % (
55 track_response['track'], str(track_response['versionCodes'])) 55 track_response['track'], str(track_response['versionCodes']))
56 56
57 listing_response = service.edits().apklistings().update( 57 listing_response = service.edits().apklistings().update(
58 editId=edit_id, packageName=package_name, language='en-US', 58 editId=edit_id, packageName=package_name, language='en-US',
59 apkVersionCode=apk_response['versionCode'], 59 apkVersionCode=apk_response['versionCode'],
60 body={'recentChanges': changes}).execute() 60 body={'recentChanges': changes_text}).execute()
61 61
62 print ('Listing for language %s was updated.' 62 print ('Listing for language %s was updated.'
63 % listing_response['language']) 63 % listing_response['language'])
64 64
65 commit_request = service.edits().commit( 65 commit_request = service.edits().commit(
66 editId=edit_id, packageName=package_name).execute() 66 editId=edit_id, packageName=package_name).execute()
67 67
68 print 'Edit "%s" has been committed' % (commit_request['id']) 68 print 'Edit "%s" has been committed' % (commit_request['id'])
69 69
70 70
(...skipping 28 matching lines...) Expand all
99 try: 99 try:
100 publish_apk(service, args.package_name, args.apk_path, changes_text, 100 publish_apk(service, args.package_name, args.apk_path, changes_text,
101 args.track) 101 args.track)
102 except client.AccessTokenRefreshError: 102 except client.AccessTokenRefreshError:
103 print ('The credentials have been revoked or expired, please re-run the ' 103 print ('The credentials have been revoked or expired, please re-run the '
104 'application to re-authorize') 104 'application to re-authorize')
105 105
106 106
107 if __name__ == '__main__': 107 if __name__ == '__main__':
108 main(sys.argv) 108 main(sys.argv)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698