Skip to content

Commit 2bb42b8

Browse files
committed
Teach store v2 reader to look in libxamarin-app.so, too
1 parent 6b89360 commit 2bb42b8

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

tools/assembly-store-reader-mk2/AssemblyStore/StoreReader_V2.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ static StoreReader_V2 ()
4040
GetArchPath (AndroidTargetArch.Arm),
4141
GetArchPath (AndroidTargetArch.X86_64),
4242
GetArchPath (AndroidTargetArch.X86),
43+
44+
GetArchPath (AndroidTargetArch.Arm64, embeddedBlob: true),
45+
GetArchPath (AndroidTargetArch.Arm, embeddedBlob: true),
46+
GetArchPath (AndroidTargetArch.X86_64, embeddedBlob: true),
47+
GetArchPath (AndroidTargetArch.X86, embeddedBlob: true),
4348
};
4449
ApkPaths = paths.AsReadOnly ();
4550
AabBasePaths = ApkPaths;
@@ -50,10 +55,15 @@ static StoreReader_V2 ()
5055
GetArchPath (AndroidTargetArch.Arm, AabBaseDir),
5156
GetArchPath (AndroidTargetArch.X86_64, AabBaseDir),
5257
GetArchPath (AndroidTargetArch.X86, AabBaseDir),
58+
59+
GetArchPath (AndroidTargetArch.Arm64, AabBaseDir, embeddedBlob: true),
60+
GetArchPath (AndroidTargetArch.Arm, AabBaseDir, embeddedBlob: true),
61+
GetArchPath (AndroidTargetArch.X86_64, AabBaseDir, embeddedBlob: true),
62+
GetArchPath (AndroidTargetArch.X86, AabBaseDir, embeddedBlob: true),
5363
};
5464
AabPaths = paths.AsReadOnly ();
5565

56-
string GetArchPath (AndroidTargetArch arch, string? root = null)
66+
string GetArchPath (AndroidTargetArch arch, string? root = null, bool embeddedBlob = false)
5767
{
5868
const string LibDirName = "lib";
5969

@@ -65,7 +75,9 @@ string GetArchPath (AndroidTargetArch arch, string? root = null)
6575
root = LibDirName;
6676
}
6777
parts.Add (abi);
68-
parts.Add (GetBlobName (abi));
78+
parts.Add (
79+
embeddedBlob ? "libxamarin-app.so" : GetBlobName (abi)
80+
);
6981

7082
return MonoAndroidHelper.MakeZipArchivePath (root, parts);
7183
}

0 commit comments

Comments
 (0)