com.xd.sdk.common 0.0.1 → 6.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,7 +92,7 @@ namespace XD.SDK.Common.Editor{
92
92
  foreach (var dir in Directory.GetDirectories(srcPath)){
93
93
  string fileName = Path.GetFileName(dir);
94
94
  if (fileName.StartsWith(filterName)){
95
- Debug.Log("筛选到指定文件夹:" + Path.Combine(srcPath, Path.GetFileName(dir)));
95
+ Debug.Log("XDSDK 筛选到指定文件夹:" + Path.Combine(srcPath, Path.GetFileName(dir)));
96
96
  return Path.Combine(srcPath, Path.GetFileName(dir));
97
97
  }
98
98
  }
@@ -110,14 +110,23 @@ namespace XD.SDK.Common.Editor{
110
110
  if (string.IsNullOrEmpty(moduleIOSResourcesFolder)){ //优先使用npm的,否则用本地的{
111
111
  moduleIOSResourcesFolder = dataPath + "/Assets/XDSDK/Mobile/" + localModuleName;
112
112
  }
113
+ // 找不到的话,再找一次,主要 for 香肠的 unity package 导入
114
+ if (string.IsNullOrEmpty(moduleIOSResourcesFolder))
115
+ {
116
+ moduleIOSResourcesFolder = dataPath + "/Assets/Plugins/XDSDK/Mobile/" + localModuleName;
117
+ }
113
118
  }
114
119
  moduleIOSResourcesFolder = moduleIOSResourcesFolder + "/Plugins/iOS/Resource";
115
120
 
116
121
  if (Directory.Exists(moduleIOSResourcesFolder) && moduleIOSResourcesFolder != ""){
117
- Debug.Log("拷贝资源路径: " + moduleIOSResourcesFolder);
122
+ Debug.Log("XDSDK 拷贝资源路径: " + moduleIOSResourcesFolder);
118
123
  CopyAndReplaceDirectory(moduleIOSResourcesFolder, xcodeResourceFolder, mainTargetGuid, proj);
119
124
  File.WriteAllText(projPath, proj.WriteToString()); //保存
120
125
  }
126
+ else
127
+ {
128
+ Debug.LogError("XDSDK 资源文件夹不存在: " + moduleIOSResourcesFolder);
129
+ }
121
130
  }
122
131
 
123
132
  public static void AddXcodeConfig(string target, PBXProject proj, string xcodeFilePath){
@@ -435,10 +444,14 @@ namespace XD.SDK.Common.Editor{
435
444
 
436
445
  //拷贝文件夹
437
446
  if (Directory.Exists(tdsResourcePath)){
438
- Debug.Log("拷贝资源路径: " + tdsResourcePath);
447
+ Debug.Log("XDSDK 拷贝资源路径: " + tdsResourcePath);
439
448
  CopyAndReplaceDirectory(tdsResourcePath, xcodeResourceFolder, target, proj);
440
449
  File.WriteAllText(projPath, proj.WriteToString()); //保存
441
450
  }
451
+ else
452
+ {
453
+ Debug.Log("XDSDK 没有游戏资源需要拷贝" + tdsResourcePath);
454
+ }
442
455
  }
443
456
 
444
457
  private static void SetScriptClass(string pathToBuildProject){
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "com.xd.sdk.common",
3
- "version": "0.0.1",
3
+ "displayName": "XDSDK Common",
4
+ "version": "6.21.1",
4
5
  "description": "XDSDK",
5
6
  "unity": "2018.3",
6
7
  "license": "MIT",
7
8
  "dependencies": {
8
- "com.xd.sdk.common": "0.0.1",
9
9
  "com.xd.tds.common": "3.27.1-xd.1"
10
10
  }
11
11
  }