更新 EF-Web-Push-202509021556.unitypackage 修复aar里面的包名
This commit is contained in:
parent
764d9f5f09
commit
5959868867
|
@ -32,8 +32,8 @@ namespace EFSDK
|
|||
CopyAndRenameFiles(ResDir, TempDir, out Dictionary<string, string> mapping);
|
||||
string manifestPath = Path.Combine(TempDir, "AndroidManifest.xml");
|
||||
File.WriteAllText(manifestPath,
|
||||
@"<manifest xmlns:android=""http://schemas.android.com/apk/res/android""
|
||||
package=""com.unity.reswrapper"">
|
||||
@$"<manifest xmlns:android=""http://schemas.android.com/apk/res/android""
|
||||
package=""com.{GetFirstEightWithUnderscore(GetMD5Hash(Application.identifier + "res"))}"">
|
||||
<application/>
|
||||
</manifest>");
|
||||
|
||||
|
@ -134,6 +134,7 @@ namespace EFSDK
|
|||
string md5Str = GetFirstEightWithUnderscore(GetMD5Hash(Application.identifier + oriFileName + oriFileName));
|
||||
return md5Str + ext;
|
||||
}
|
||||
|
||||
static string GetFirstEightWithUnderscore(string str)
|
||||
{
|
||||
if (string.IsNullOrEmpty(str)) return str;
|
||||
|
@ -142,8 +143,10 @@ namespace EFSDK
|
|||
{
|
||||
sub = "a" + sub;
|
||||
}
|
||||
|
||||
return sub;
|
||||
}
|
||||
|
||||
public static string GetMD5Hash(string input)
|
||||
{
|
||||
using (var md5 = MD5.Create())
|
||||
|
|
Loading…
Reference in New Issue