| | |
| | | static string File_LauncherManifest = Application.dataPath + "/Plugins/Android/LauncherManifest.xml";
|
| | | static string File_launcherTemplate = Application.dataPath + "/Plugins/Android/launcherTemplate.gradle";
|
| | | static string File_mainTemplate = Application.dataPath + "/Plugins/Android/mainTemplate.gradle";
|
| | |
|
| | | static string File_deps = Application.dataPath + "/Plugins/Android/deps.gradle";
|
| | |
|
| | | /// <summary>
|
| | | /// 打包
|
| | |
| | | File.Delete(File_launcherTemplate);
|
| | | if (File.Exists(File_mainTemplate))
|
| | | File.Delete(File_mainTemplate);
|
| | | if (File.Exists(File_deps))
|
| | | File.Delete(File_deps);
|
| | | var variant = _development ? "debug" : "release";
|
| | |
|
| | | string channelSdkPath;
|
| | |
| | | copySdkFile = StringUtility.Contact(_sdkPath, "/Channel/Android/", versionConfig.appId, "/baseProjectTemplate.gradle");
|
| | | File.Copy(copySdkFile, File_baseProjectTemplate);
|
| | | copySdkFile = StringUtility.Contact(_sdkPath, "/Channel/Android/", versionConfig.appId, "/deps.gradle");
|
| | | File.Copy(copySdkFile, File_baseProjectTemplate);
|
| | | File.Copy(copySdkFile, File_deps);
|
| | | copySdkFile = StringUtility.Contact(_sdkPath, "/Channel/Android/", versionConfig.appId, "/google-services.json");
|
| | | File.Copy(copySdkFile, File_google_services);
|
| | | copySdkFile = StringUtility.Contact(_sdkPath, "/Channel/Android/", versionConfig.appId, "/gradleTemplate.properties");
|