public static ProjectConfigration readSettingFromFile(string projectName) { string filename = System.IO.Path.Combine(Config_Path, string.Format("setting@{0}.xml", projectName)); if (!File.Exists(filename)) { return(null); } var preference = Preferences.getPreferences(filename); if (preference == null) { return(null); } var config = new ProjectConfigration(); config.KeystoreFilePath = preference.getString("keystore") ?? string.Empty; config.KeystorePassword = preference.getString("keystore_password") ?? string.Empty; config.Alias = preference.getString("alias") ?? string.Empty; config.AliasPassword = preference.getString("alias_password") ?? string.Empty; config.Candinate = preference.getList("channels") ?? config.Candinate; return(config); }
public Builder(ProjectConfigration config, String applicationName, BackgroundWorker bw, DoWorkEventArgs e) : this() { Config = config; ApplicationName = applicationName; monitor = bw; result = e; }
public AXMLBuilder(ProjectConfigration config,string apk, BackgroundWorker monitor, DoWorkEventArgs e) : base(config, apk.ToFileName(), monitor,e) { mPathToApk = apk; }
public static Worker getInstance(ProjectConfigration c, System.ComponentModel.BackgroundWorker bw, DoWorkEventArgs e) { return new Worker(c, bw,e); }
public Worker(ProjectConfigration c, System.ComponentModel.BackgroundWorker bw, DoWorkEventArgs e) { config = c; monitor = bw; result = e; }
public static ProjectConfigration readSettingFromFile(string projectName) { string filename = System.IO.Path.Combine(Config_Path, string.Format("setting@{0}.xml",projectName)); if (!File.Exists(filename)) { return null; } var preference = Preferences.getPreferences(filename); if( preference == null) { return null; } var config = new ProjectConfigration(); config.KeystoreFilePath = preference.getString("keystore") ?? string.Empty; config.KeystorePassword = preference.getString("keystore_password") ?? string.Empty; config.Alias = preference.getString("alias") ?? string.Empty; config.AliasPassword = preference.getString("alias_password") ?? string.Empty; config.Candinate = preference.getList("channels") ?? config.Candinate; return config; }
public ConfigTemplate(String configFile) : this() { //bind DataContext = this; //load configration if (!string.IsNullOrEmpty(configFile)) { config = ProjectConfigration.readSettingFromFile(configFile); SettingFile = configFile; KeystoreFilePath = config.KeystoreFilePath; KeyStorePw = config.KeystorePassword; Alias = config.Alias; AliasPw = config.AliasPassword; foreach (string item in config.Candinate) { Candinate.Add(new EditItem(item, EditState.Normal)); } } else { config = new ProjectConfigration(); } Candinate.Add(new EditItem("", EditState.Editable)); Channels.ItemsSource = Candinate; LoadTemplate(); }
public ApkBuilder(ProjectConfigration config, DecodedApkStruct das, BackgroundWorker monitor, DoWorkEventArgs e) : base(config, das.AppName, monitor,e) { ApkFolderStruct = das; }