Add explicit versionCode to DexMetadataHelperTest APKs
These tests were verifying against an implicit versionCode 30 which was added by the build system implicitly, using the old platform SDK. Since one was not specified by the test apps. When the SDK moved to 31, this changed what versionCode the APKs used, and thus broke the tests. This uses 9001, which should be hard to confuse with a near future platform SDK version. Bug: 189990253 Test: atest DexMetadataHelperTest Change-Id: Iaf39b1a7414e56e69a6eec57a339105e9e2ffbcc
This commit is contained in:
@@ -15,8 +15,11 @@
|
||||
-->
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.frameworks.servicestests.install_split"
|
||||
android:isolatedSplits="true">
|
||||
package="com.android.frameworks.servicestests.install_split"
|
||||
android:isolatedSplits="true"
|
||||
android:versionCode="9001"
|
||||
android:versionName="1.0"
|
||||
>
|
||||
|
||||
<application android:label="ClassloaderSplitApp">
|
||||
<activity android:name=".BaseActivity"
|
||||
|
||||
@@ -15,8 +15,11 @@
|
||||
-->
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.frameworks.servicestests.install_split"
|
||||
featureSplit="feature_a">
|
||||
package="com.android.frameworks.servicestests.install_split"
|
||||
featureSplit="feature_a"
|
||||
android:versionCode="9001"
|
||||
android:versionName="1.0"
|
||||
>
|
||||
|
||||
<application>
|
||||
<activity android:name=".feature_a.FeatureAActivity"
|
||||
|
||||
@@ -69,7 +69,7 @@ public class DexMetadataHelperTest {
|
||||
private static final String DEX_METADATA_FILE_EXTENSION = ".dm";
|
||||
private static final String DEX_METADATA_PACKAGE_NAME =
|
||||
"com.android.frameworks.servicestests.install_split";
|
||||
private static long DEX_METADATA_VERSION_CODE = 30;
|
||||
private static final long DEX_METADATA_VERSION_CODE = 9001;
|
||||
|
||||
@Rule
|
||||
public TemporaryFolder mTemporaryFolder = new TemporaryFolder();
|
||||
|
||||
Reference in New Issue
Block a user