Exemplo n.º 1
0
        private void HandleDeprecatedComponents()
        {
            deprecatedAssets = new string[] {
                Utils.GetDeprecateDependencyName(Utils.generalDeprecateDependency, platform),
                Utils.GetDeprecateDependencyName(Utils.teenDeprecateDependency, platform),
                Utils.GetDeprecateDependencyName(Utils.promoDeprecateDependency, platform),
                Utils.GetDependencyName("Additional", platform)
            };

            for (int i = 0; i < deprecatedAssets.Length; i++)
            {
                if (deprecateDependenciesExist |= AssetDatabase.FindAssets(deprecatedAssets[i]).Length > 0)
                {
                    break;
                }
            }

            // Remove deprecated CAS settings raw data
            if (File.Exists(Utils.androidResSettingsPath + ".json"))
            {
                AssetDatabase.MoveAssetToTrash(Utils.androidResSettingsPath + ".json");
            }
        }