修改unity的工程
This commit is contained in:
parent
38f22576de
commit
b38623c426
|
@ -236,6 +236,12 @@ storePassword=123456
|
|||
|
||||
text = open(os.path.join(dst, "build.gradle"), "r", encoding="utf-8").read()
|
||||
text = text.replace("implementation", "api")
|
||||
text = text.replace("unityStreamingAssets.tokenize(', ')", '[".unity3d", ".bundle", ".version", ".bytes", ".hash"]')
|
||||
text = text.replace("apply plugin: 'com.android.library'", """
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
}
|
||||
""")
|
||||
open(os.path.join(dst, "build.gradle"), "w", encoding="utf-8").write(text)
|
||||
|
||||
# 引用Unity项目
|
||||
|
|
Loading…
Reference in New Issue