Пример #1
0
        public override void ConfigureAgde(Configuration conf, CommonTarget target)
        {
            base.ConfigureAgde(conf, target);

            conf.AddProject <ExeProject>(target);

            if (!_hasCopiedResources)
            {
                //copy top-level build gradle files to root dir
                AndroidUtil.DirectoryCopy(Path.Combine(conf.Solution.SharpmakeCsPath, @"..\gradle\root"), conf.SolutionPath);
                _hasCopiedResources = true;
            }
        }
Пример #2
0
        private void CopyAndroidResources(string projectPath)
        {
            _hasCopiedResources = true;

            string dstPath = Path.Combine(projectPath, @"src\main");

            if (!Directory.Exists(dstPath))
            {
                Directory.CreateDirectory(dstPath);
            }
            string srcManifestFile = Path.Combine(SharpmakeCsProjectPath, @"..\..\resources\AndroidManifest.xml");
            string dstManifestFile = Path.Combine(dstPath, "AndroidManifest.xml");

            Util.ForceCopy(srcManifestFile, dstManifestFile);
            UpdateManifestXML(dstManifestFile, "HelloAndroidAgde");

            // Copy module build gradle file to project folder
            string srcModulePath = Path.Combine(SharpmakeCsProjectPath, @"..\..\gradle\app");

            AndroidUtil.DirectoryCopy(srcModulePath, projectPath);
        }