Lines Matching +full:proguard +full:- +full:like
4 # Use of this source code is governed by a BSD-style license that can be
28 # Caused by protobuf runtime using -identifiernamestring in a way that
29 # doesn't work with R8. Looks like:
36 r'Ignoring -shrinkunusedprotofields since the protobuf-lite runtime is',
38 r'/third_party/.*Proguard configuration rule does not match anything',
40 r'cronet/android/test/proguard.cfg.*Proguard configuration rule does not',
41 r'Proguard configuration rule does not match anything:.*(?:' + '|'.join([
57 # We enforce that this class is removed via -checkdiscard.
60 …nsionRegistryLite)\.class:.*Could not inline ServiceLoader\.load', # pylint: disable=line-too-long
61 # This class is referenced by kotlinx-coroutines-core-jvm but it does not
74 …te has entries missing a corresponding EnclosingMethod attribute', # pylint: disable=line-too-long
75 …a/classes.jar:com/google/android/gms/internal/fido/zzel$zza.class: # pylint: disable=line-too-long
76 …ing EnclosingMethod: com.google.android.gms.internal.fido.zzel$zza # pylint: disable=line-too-long
94 parser.add_argument('--r8-path',
97 parser.add_argument('--custom-r8-path',
100 parser.add_argument('--input-paths',
102 help='GN-list of .jar files to optimize, excluding'
103 ' those --feature-jars.')
104 parser.add_argument('--output-path', help='Path to the generated .jar file.')
105 parser.add_argument('--tracerefs-json-out')
107 '--proguard-configs',
110 help='GN-list of configuration files.')
112 '--apply-mapping', help='Path to ProGuard mapping to apply.')
114 '--mapping-output',
116 help='Path for ProGuard to output mapping file to.')
118 '--extra-mapping-output-paths',
119 help='GN-list of additional paths to copy output mapping file to.')
120 parser.add_argument('--sdk-jars',
122 help='GN-list of .jar files to include as libraries.')
124 '--sdk-extension-jars',
126 help='GN-list of .jar files to include as libraries, and that are not a '
128 parser.add_argument('--main-dex-rules-path',
132 '--min-api', help='Minimum Android API level compatibility.')
133 parser.add_argument('--enable-obfuscation',
137 '--verbose', '-v', action='store_true', help='Print all ProGuard output')
138 parser.add_argument('--repackage-classes',
140 help='Value for -repackageclasses.')
141 parser.add_argument('--disable-checks',
143 help='Disable -checkdiscard directives')
144 parser.add_argument('--source-file', help='Value for source file attribute.')
145 parser.add_argument('--package-name',
148 '--force-enable-assertions',
151 parser.add_argument('--assertion-handler',
154 '--feature-jars',
158 '--dex-dest',
163 '--feature-name',
168 '--uses-split',
172 parser.add_argument('--input-art-profile',
174 parser.add_argument('--output-art-profile',
177 '--apply-startup-profile',
179 help='Whether to pass --input-art-profile as a startup profile to R8.')
181 '--keep-rules-targets-regex',
186 '--keep-rules-output-path',
188 '--keep-rules-targets-regex inputs from the rest of the inputs.')
189 parser.add_argument('--warnings-as-errors',
192 parser.add_argument('--show-desugar-default-interface-warnings',
195 parser.add_argument('--dump-inputs',
200 '--dump-unknown-refs',
204 '--stamp',
205 help='File to touch upon success. Mutually exclusive with --output-path')
206 parser.add_argument('--desugared-library-keep-rule-output',
222 parser.error('You must path both --keep-rules-targets-regex and '
223 '--keep-rules-output-path')
226 parser.error('--output-art-profile requires --input-art-profile')
228 parser.error('--apply-startup-profile requires --input-art-profile')
231 parser.error('Cannot use both --force-enable-assertions and '
232 '--assertion-handler')
268 parser.error('"%s" referenced in --uses-split not present.' % name)
344 # Allows -whyareyounotinlining, which we don't have by default, but
345 # which is useful for one-off queries.
346 '-Dcom.android.tools.r8.experimental.enablewhyareyounotinlining=1',
349 '-Dcom.android.tools.r8.enableSameFilePolicy=1',
351 # -kept (e.g. due to containing JNI).
352 '-Dcom.android.tools.r8.allowServiceLoaderRewritingPinnedTypes=1',
355 '-Dcom.android.tools.r8.allowCodeReplacement=false',
356 # Required to use "-keep,allowcodereplacement"
357 '-Dcom.android.tools.r8.allowTestProguardOptions=true',
358 # Needed because we don't add an unconditional -keep for Enum.values()
360 '-Dcom.android.tools.r8.experimentalTraceEnumReflection=1',
365 '-Dcom.android.tools.r8.androidApiExtensionLibraries=' +
369 cmd += ['-Dcom.android.tools.r8.dumpinputtofile=r8inputs.zip']
371 cmd += ['-Dcom.android.tools.r8.reportUnknownApiReferences=1']
373 '-cp',
376 '--no-data-resources',
377 '--map-id-template',
379 '--source-file-template',
381 '--output',
383 '--pg-map-output',
388 cmd += ['--isolated-splits']
391 cmd += ['--map-diagnostics:CheckDiscardDiagnostic', 'error', 'none']
393 cmd += [('--map-diagnostics:EmptyMemberRulesToDefaultInitRuleConversion'
395 cmd += ['--map-diagnostics', 'info', 'warning']
398 cmd += ['--map-diagnostics', 'error', 'warning']
401 cmd += ['--min-api', options.min_api]
404 cmd += ['--force-assertions-handler:' + options.assertion_handler]
406 cmd += ['--force-enable-assertions']
409 cmd += ['--lib', lib]
412 cmd += ['--pg-conf', config_file]
416 cmd += ['--main-dex-rules', main_dex_rule]
420 '--art-profile',
426 '--startup-profile',
434 cmd += ['--feature', in_jar, split_context.staging_dir]
473 '-cp', r8_path, 'com.android.tools.r8.tracereferences.TraceReferences',
474 '--map-diagnostics:MissingDefinitionsDiagnostic', 'error', 'warning',
475 '--keep-rules', '--output', keep_rules_output
480 cmd += ['--target', path]
482 cmd += ['--source', path]
484 cmd += ['--lib', path]
517 if exclude_generated and config.endswith('.resources.proguard.txt'):
534 ret.append('# File: //build/android/gyp/proguard.py (generated rules)')
543 ret.append(f"-repackageclasses '{options.repackage_classes}'")
545 ret.append("-dontobfuscate")
548 ret.append("-applymapping '%s'" % options.apply_mapping)
560 if info.filename.startswith('META-INF/proguard/'):
562 elif info.filename.startswith('META-INF/com.android.tools/r8/'):
564 elif info.filename.startswith('META-INF/com.android.tools/r8-from'):
566 if '-upto-' not in info.filename:
569 # Give preference to r8-from-*, then r8/, then proguard/.
573 embedded_configs[config_path] = z.read(filename).decode('utf-8').rstrip()
617 # Ensure there are no references from base -> chrome module, or from
618 # base+chrome -> feature modules.
628 # ProGuard configs that are derived from flags.
639 # ProGuard configs that are derived from flags.