1234567891011121314151617181920 |
- using System.IO;
- using UnityEditor;
- using UnityEditor.Android;
- using UnityEngine;
- class MyCustomBuildProcessor : IPostGenerateGradleAndroidProject {
- public int callbackOrder { get { return 0; } }
- public void OnPostGenerateGradleAndroidProject(string path) {
- Debug.Log("MyCustomBuildProcessor.OnPostGenerateGradleAndroidProject at path " + path);
- string dataPath = Application.dataPath;
- string folderAssetsDB = System.IO.Path.Combine(dataPath.Replace("Assets", ""), path, "src/main/assets/DB");
- //Debug.Log(System.IO.Directory.Exists(folderAssetsDB));
- if (Directory.Exists(folderAssetsDB)) {
- Directory.Delete(folderAssetsDB, true);
- }
- }
- }
|