Пример #1
0
        public string GetPackageName(MonoDroidProjectConfiguration conf)
        {
            var f = GetManifestFileName(conf);

            if (!f.IsNullOrEmpty)
            {
                if (packageNameCache == null)
                {
                    packageNameCache = new AndroidPackageNameCache(this);
                }
                string packageName = packageNameCache.GetPackageName(f);
                if (!string.IsNullOrEmpty(packageName))
                {
                    return(packageName);
                }
            }

            //no name in manifest, use same default package name as GetAndroidPackageName MSBuild task
            var name = conf.CompiledOutputName.FileNameWithoutExtension.Replace(" ", "");

            if (name.Contains("."))
            {
                return(name);
            }
            else
            {
                return(name + "." + name);
            }
        }
Пример #2
0
        public override void Dispose()
        {
            lock (this) {
                if (disposed)
                {
                    return;
                }
                disposed = true;
            }

            MonoDroidFramework.DeviceManager.DecrementOpenProjectCount();

            if (packageNameCache != null)
            {
                packageNameCache.Dispose();
                packageNameCache = null;
            }

            base.Dispose();
        }