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

Side by Side Diff: build/android/gradle/generate_gradle.py

Issue 2359593002: Android Studio: Set Android Gradle plugin to v2.2.0 (Closed)
Patch Set: revert randomly changed whitespace Created 4 years, 3 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2016 The Chromium Authors. All rights reserved. 2 # Copyright 2016 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 """Generates an Android Studio project from a GN target.""" 6 """Generates an Android Studio project from a GN target."""
7 7
8 import argparse 8 import argparse
9 import codecs 9 import codecs
10 import logging 10 import logging
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 sdk_path = _RebasePath(config_json['android_sdk_root']) 372 sdk_path = _RebasePath(config_json['android_sdk_root'])
373 _WriteFile(os.path.join(gradle_output_dir, 'local.properties'), 373 _WriteFile(os.path.join(gradle_output_dir, 'local.properties'),
374 _GenerateLocalProperties(sdk_path)) 374 _GenerateLocalProperties(sdk_path))
375 375
376 if srcjar_tuples: 376 if srcjar_tuples:
377 logging.warning('Building all .srcjar files...') 377 logging.warning('Building all .srcjar files...')
378 targets = _RebasePath([s[0] for s in srcjar_tuples], output_dir) 378 targets = _RebasePath([s[0] for s in srcjar_tuples], output_dir)
379 _RunNinja(output_dir, targets) 379 _RunNinja(output_dir, targets)
380 _ExtractSrcjars(gradle_output_dir, srcjar_tuples) 380 _ExtractSrcjars(gradle_output_dir, srcjar_tuples)
381 logging.warning('Project created successfully!') 381 logging.warning('Project created successfully!')
382 logging.warning('Generated projects work best with Android Studio 2.2')
383 logging.warning('For more tips: https://chromium.googlesource.com/chromium'
384 '/src.git/+/master/docs/android_studio.md')
382 385
383 386
384 if __name__ == '__main__': 387 if __name__ == '__main__':
385 main() 388 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698