GooglePlayServices.ResolverVer1_1.ReplaceVariables C# (CSharp) Method

ReplaceVariables() private method

Replaces the variables in the AndroidManifest file.
private ReplaceVariables ( string exploded ) : void
exploded string Exploded.
return void
        void ReplaceVariables(string exploded)
        {
            string manifest = Path.Combine(exploded, "AndroidManifest.xml");
            if (File.Exists(manifest))
            {
                StreamReader sr = new StreamReader(manifest);
                string body = sr.ReadToEnd();
                sr.Close();

                body = body.Replace("${applicationId}", PlayerSettings.bundleIdentifier);

                using (var wr = new StreamWriter(manifest, false))
                {
                    wr.Write(body);
                }
            }
        }
    }