diff --git a/GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/BuildTools/AppBundleBuilder.cs b/GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/BuildTools/AppBundleBuilder.cs index 3fb6bc66..b8c18774 100644 --- a/GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/BuildTools/AppBundleBuilder.cs +++ b/GooglePlayPlugins/com.google.android.appbundle/Editor/Scripts/Internal/BuildTools/AppBundleBuilder.cs @@ -90,6 +90,7 @@ private enum BuildStatus private string _packageName; private int _versionCode; private string _versionName; + private ScriptingImplementation _scriptingBackend; private PostBuildCallback _createBundleAsyncOnSuccess = delegate { }; private IEnumerable _assetPackManifestTransformers; @@ -119,6 +120,7 @@ public virtual bool Initialize(BuildToolLogger buildToolLogger) _packageName = PlayerSettings.GetApplicationIdentifier(BuildTargetGroup.Android); _versionCode = PlayerSettings.Android.bundleVersionCode; _versionName = PlayerSettings.bundleVersion; + _scriptingBackend = PlayerSettings.GetScriptingBackend(BuildTargetGroup.Android); _assetPackManifestTransformers = AssetPackManifestTransformerRegistry.Registry.ConstructInstances(); var initializedManifestTransformers = true; @@ -760,7 +762,12 @@ private void MoveSymbolsZipFile(string aabFilePath) private string GetSymbolsFileName(string prefix) { +#if UNITY_2022_1_OR_NEWER + // Unity 2022 started adding the scripting backend to the symbol zip's name + return string.Format("{0}-{1}-v{2}-{3}.symbols.zip", prefix, _versionName, _versionCode, _scriptingBackend); +#else return string.Format("{0}-{1}-v{2}.symbols.zip", prefix, _versionName, _versionCode); +#endif } private static void CopyFilesRecursively(DirectoryInfo sourceDirectory, DirectoryInfo destinationDirectory)