com.typhoon.unitysdk 1.0.14 → 1.0.16
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.
|
@@ -456,15 +456,34 @@ dependencies {{
|
|
|
456
456
|
/*写入untiylibrary.xml*/
|
|
457
457
|
private void WriteUnityLibrary()
|
|
458
458
|
{
|
|
459
|
-
var
|
|
459
|
+
var android = GetUnityLibrary();
|
|
460
460
|
var unityProj = GetMatchChinaAndroidProj();
|
|
461
461
|
if (unityProj == null)
|
|
462
462
|
{
|
|
463
463
|
throw new Exception($"找不到unity导出工程");
|
|
464
464
|
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
465
|
+
|
|
466
|
+
var unityLib = $"{unityProj}/unityLibrary";
|
|
467
|
+
var map = new (string androidPath, string unityPath)[]
|
|
468
|
+
{
|
|
469
|
+
//{unityProj}\unityLibrary
|
|
470
|
+
($"{android}/libs", $"{unityLib}/libs"),
|
|
471
|
+
($"{android}/src/main/assets", $"{unityLib}/src/main/assets"),
|
|
472
|
+
($"{android}/src/main/java", $"{unityLib}/src/main/java"),
|
|
473
|
+
($"{android}/src/main/jniLibs", $"{unityLib}/src/main/jniLibs"),
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
var xmlAndroid = $"{android}/src/main/AndroidManifest.xml";
|
|
477
|
+
var xmlUnity = $"{unityLib}/src/main/AndroidManifest.xml";
|
|
478
|
+
foreach (var e in map)
|
|
479
|
+
{
|
|
480
|
+
UniEditor.TryDeleteFolder(e.androidPath);
|
|
481
|
+
UniEditor.CopyFolder(e.unityPath, e.androidPath);
|
|
482
|
+
Debug.Log($"写入:{e.androidPath} ");
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
File.Copy(xmlUnity, xmlAndroid, true);
|
|
486
|
+
Debug.Log($"复制:{xmlUnity}-->{xmlAndroid} ");
|
|
468
487
|
|
|
469
488
|
var xmlPath = GetUnityLibraryAndroidManifestXml();
|
|
470
489
|
var xml = File.ReadAllText(xmlPath);
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.
|
|
1
|
+
{"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.16","description":"unity端个汇总渠道的sdk,统一接口,一键发布","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}
|