Rename the aapt2 library to .apk, which is what aapt2 expects for static libraries.
RELNOTES: None
@@ -96,9 +96,9 @@ public final class AndroidRuleClasses {
public static final SafeImplicitOutputsFunction ANDROID_RESOURCES_APK =
fromTemplates("%{name}.ap_");
public static final SafeImplicitOutputsFunction ANDROID_RESOURCES_AAPT2_LIBRARY_APK =
- fromTemplates("%{name}_files/aapt2_library.ap_");
+ fromTemplates("%{name}_files/aapt2_library.apk");
public static final SafeImplicitOutputsFunction ANDROID_RESOURCES_AAPT2_R_TXT =
- fromTemplates("%{name}_symbols/r.aapt2.txt");
+ fromTemplates("%{name}_symbols/R.aapt2.txt");
public static final SafeImplicitOutputsFunction ANDROID_RESOURCES_AAPT2_SOURCE_JAR =
fromTemplates("%{name}_files/%{name}_resources_aapt2-src.jar");
public static final SafeImplicitOutputsFunction ANDROID_RESOURCES_SHRUNK_APK =
