ShadowsocksR-Live / iShadowsocksR

ShadowsocksR (SSRoT) client for iOS
GNU General Public License v3.0
574 stars 326 forks source link

Fix some bugs #11

Closed youngsing closed 6 years ago

youngsing commented 6 years ago
  1. fix some warnings
  2. fix UI display bugs for RequestOverviewVC
  3. hide CloudSet in CollectionViewController and disable the update for it.

有需要可以看看。。

ssrlive commented 6 years ago

设置的云同步似乎可以留着. 你改一下吧

youngsing commented 6 years ago

我改的部分是取消基于下面地址的更新:

//API.swift
struct API {

    // Use your own API
    static let URL = "http://192.168.2.217:8000/api/"
........
}

其实就是注释了一下下面的代码:

//CloudSetManager.swift
API.updateProxyRuleSetListDetail(uuidsArray) { (response) in
    if let sets = response.result.value {
        do {
            try ProxyRuleSet.addRemoteArray(sets)
        }catch {
            error.log("Unable to save updated rulesets")
            return
        }
    }else {
        response.result.error?.log("Fail to update ruleset details")
    }
}

和你说的“设置的云同步”应该是不一样的东西吧? 还是说,我理解错了上面的,基于192.168.2.217这个地址的更新逻辑?

ssrlive commented 6 years ago

我没空看用户界面层面的代码. 仅从 CloudSet 推测是云存储的部分. 如果不是, 就可以合并了.

ssrlive commented 6 years ago

merged.

youngsing commented 6 years ago

CloudSet是原作者自定义的云集,也就是预定义配置文件,由CloudSetManager管理更新,这部分代码暂时算是没作用了。 设置的云同步由SyncManager管理的,这部分代码没有改动。