public override void Repaire() { if (!this.Exists()) { this.Generate(); } this.Reload(); ConfUtility.SetDefualtIfNotExsist(this, "android.sdk", "<please edit this line>"); ConfUtility.SetDefualtIfNotExsist(this, "ant.sdk", "<please edit this line>"); //check while (!Android.CheckIsAndroidSDK(this["android.sdk"])) { bool b = EditorUtility.DisplayDialog("Android SDK Location invalid:", "Please set one", "Select", "Cancel Task"); if (!b) { throw new Exception("User Canceled in Android SDK Select"); } var path = EditorUtility.OpenFolderPanel("Select Android SDK root foler", "", ""); this["android.sdk"] = path; } while (!Ant.CheckIsAntSDK(this["ant.sdk"])) { bool b = EditorUtility.DisplayDialog("Ant Location invalid:", "Please set one", "Select", "Cancel Task"); if (!b) { throw new Exception("User Canceled in Ant Select"); } var path = EditorUtility.OpenFolderPanel("Select Ant root foler", "", ""); this["ant.sdk"] = path; } this.Save(); }
public override void Repaire() { if (!this.Exists()) { this.Generate(); } this.Reload(); ConfUtility.SetDefualtIfNotExsist(this, "android.src.dir", "${project}/NativeBuilderConf/src/"); //ConfUtility.SetDefualtIfNotExsist(this, "android.conf", "${project}/NativeBuilderConf/src/user.eupe"); //ConfUtility.SetDefualtIfNotExsist(this, "android.lib.dir", "${project}/NativeBuilderConf/lib/"); ConfUtility.SetDefualtIfNotExsist(this, "android.project", "${project}/NativeBuilderProduct/eclipse_project"); ConfUtility.SetDefualtIfNotExsist(this, "android.apk", "${project}/NativeBuilderProduct/${product_name}.apk"); //ConfUtility.SetDefualtIfNotExsist(this, "ios.conf", "${project}/NativeBuilderConf/src/user.xupe"); ConfUtility.SetDefualtIfNotExsist(this, "ios.src.dir", "${project}/NativeBuilderConf/src/"); ConfUtility.SetDefualtIfNotExsist(this, "ios.project", "${project}/NativeBuilderProduct/xCode_project"); ConfUtility.SetDefualtIfNotExsist(this, "ios.ipa", "${project}/NativeBuilderProduct/${product_name}.ipa"); ConfUtility.SetDefualtIfNotExsist(this, "temp.dir", "${project}/NativeBuilderProduct/temp"); this.Save(); }