public static void ImportLatestEdEx() { PlayFabEditorHttp.MakeDownloadCall("https://api.playfab.com/sdks/download/unity-edex-upgrade", (fileName) => { AssetDatabase.ImportPackage(fileName, false); Debug.Log("PlayFab EdEx Upgrade: Complete"); }); }
public static void ImportLatestSDK() { PlayFabEditorHttp.MakeDownloadCall("https://api.playfab.com/sdks/download/unity-via-edex", (fileName) => { Debug.Log("PlayFab SDK Install: Complete"); AssetDatabase.ImportPackage(fileName, false); PlayFabEditorDataService.envDetails.sdkPath = PlayFabEditorHelper.DEFAULT_SDK_LOCATION; PlayFabEditorDataService.SaveEnvDetails(); }); }
public static void InstallEdExPackage(string key) { //TODO update this to work with a standardized key nomenclature if (EditorUtility.DisplayDialog("Confirm Package Installation", "This will install the " + key + " package.", "Confirm", "Cancel")) { PlayFabEditorHttp.MakeDownloadCall("https://api.playfab.com/sdks/download/android-push50-via-edex", (fileName) => { AssetDatabase.ImportPackage(fileName, true); Debug.Log(string.Format("EdEx: {0} Installation Complete", key)); }); } else { //TODO this will need to be updated when we have several plugins. AndroidPushPlugin = false; _androidPushPluginPreviousState = false; } }