OLD | NEW |
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 import os | 6 import os |
7 import subprocess | 7 import subprocess |
8 import yaml | 8 import yaml |
9 import xml.etree.ElementTree as ET | 9 import xml.etree.ElementTree as ET |
10 | 10 |
11 | 11 |
12 PUBSPECS = [ | 12 PUBSPECS = [ |
13 'sky/sdk/pubspec.yaml', | 13 'sky/sdk/pubspec.yaml', |
14 'mojo/public/dart/pubspec.yaml', | 14 'mojo/public/dart/pubspec.yaml', |
15 'mojo/dart/mojo_services/pubspec.yaml', | 15 'mojo/dart/mojo_services/pubspec.yaml', |
16 'mojo/dart/mojom/pubspec.yaml', | 16 'mojo/dart/mojom/pubspec.yaml', |
17 ] | 17 ] |
18 | 18 |
19 MANIFESTS = [ | 19 MANIFESTS = [ |
20 'sky/sdk/example/demo_launcher/AndroidManifest.xml', | 20 'sky/sdk/example/demo_launcher/apk/AndroidManifest.xml', |
21 ] | 21 ] |
22 | 22 |
23 MANIFEST_PREFACE = '''<?xml version="1.0" encoding="utf-8"?> | 23 MANIFEST_PREFACE = '''<?xml version="1.0" encoding="utf-8"?> |
24 <!-- Copyright 2015 The Chromium Authors. All rights reserved. | 24 <!-- Copyright 2015 The Chromium Authors. All rights reserved. |
25 Use of this source code is governed by a BSD-style license that can be | 25 Use of this source code is governed by a BSD-style license that can be |
26 found in the LICENSE file. | 26 found in the LICENSE file. |
27 --> | 27 --> |
28 ''' | 28 ''' |
29 | 29 |
30 | 30 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 # TODO(eseidel): Without this ET uses 'ns0' for 'android' which is wrong. | 114 # TODO(eseidel): Without this ET uses 'ns0' for 'android' which is wrong. |
115 ET.register_namespace('android', 'http://schemas.android.com/apk/res/android
') | 115 ET.register_namespace('android', 'http://schemas.android.com/apk/res/android
') |
116 | 116 |
117 print 'APKs:' | 117 print 'APKs:' |
118 for manifest in MANIFESTS: | 118 for manifest in MANIFESTS: |
119 update_manifest(manifest) | 119 update_manifest(manifest) |
120 | 120 |
121 | 121 |
122 if __name__ == '__main__': | 122 if __name__ == '__main__': |
123 main() | 123 main() |
OLD | NEW |