@@ -100,8 +100,8 @@ def _process_feature_module(
100100 _common .get_host_javabase (ctx ),
101101 )
102102
103- has_dex = bool (feature_target [AndroidFeatureModuleInfo ].has_dex )
104- if has_dex :
103+ has_code = bool (feature_target [AndroidFeatureModuleInfo ].has_code )
104+ if has_code :
105105 binary = feature_target [AndroidFeatureModuleInfo ].binary [ApkInfo ].unsigned_apk
106106 else :
107107 # Remove the dex files.
@@ -118,7 +118,7 @@ def _process_feature_module(
118118
119119 # Create res .proto-apk_, output depending on whether further manipulations
120120 # are required after busybox. This prevents action conflicts.
121- if has_native_libs or is_asset_pack or has_dex :
121+ if has_native_libs or is_asset_pack or has_code :
122122 res_apk = ctx .actions .declare_file (ctx .label .name + "/" + feature_target .label .name + "/res.proto-ap_" )
123123 else :
124124 res_apk = out
@@ -158,7 +158,7 @@ def _process_feature_module(
158158 application_id = application_id ,
159159 )
160160
161- if not is_asset_pack and not has_native_libs and not has_dex :
161+ if not is_asset_pack and not has_native_libs and not has_code :
162162 return
163163
164164 if is_asset_pack :
@@ -177,8 +177,8 @@ def _process_feature_module(
177177 _common .filter_zip_include (ctx , binary , native_libs , ["lib/*" ])
178178 inputs_to_merge .append (native_libs )
179179
180- # Add dex files if has_dex is enabled
181- if has_dex :
180+ # Add dex files if has_code is enabled
181+ if has_code :
182182 if feature_dex :
183183 # Use R8 feature splits dex output
184184 inputs_to_merge .append (feature_dex )
@@ -220,7 +220,7 @@ def _create_feature_manifest(
220220 args .add (info .title_id )
221221 args .add (info .fused )
222222 args .add (aapt2 .executable )
223- args .add (info .has_dex )
223+ args .add (info .has_code )
224224
225225 ctx .actions .run (
226226 executable = feature_manifest_script ,
@@ -239,7 +239,7 @@ def _create_feature_manifest(
239239 # Rule has a manifest (already validated by android_feature_module).
240240 # Generate a priority manifest and then merge the user supplied manifest.
241241 is_asset_pack = feature_target [AndroidFeatureModuleInfo ].is_asset_pack
242- has_dex = feature_target [AndroidFeatureModuleInfo ].has_dex
242+ has_code = feature_target [AndroidFeatureModuleInfo ].has_code
243243 priority_manifest = ctx .actions .declare_file (
244244 ctx .label .name + "/" + feature_target .label .name + "/Priority_AndroidManifest.xml" ,
245245 )
@@ -251,7 +251,7 @@ def _create_feature_manifest(
251251 args .add (aapt2 .executable )
252252 args .add (info .manifest )
253253 args .add (is_asset_pack )
254- args .add (has_dex )
254+ args .add (has_code )
255255
256256 ctx .actions .run (
257257 executable = priority_feature_manifest_script ,
@@ -331,7 +331,7 @@ def _impl(ctx):
331331 all_proguard_specs = list (ctx .files .proguard_specs )
332332 for feature in ctx .attr .feature_modules :
333333 info = feature [AndroidFeatureModuleInfo ]
334- if info .has_dex :
334+ if info .has_code :
335335 feature_deploy_jars [info .feature_name ] = info .pre_dexed_jar
336336 if info .proguards_specs :
337337 all_proguard_specs .extend (info .proguards_specs )
0 commit comments