V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
ming1016
V2EX  ›  iDev

刚把最近做的一个 rss 阅读器放到了 github 上,第一次开源不知道需要注意些什么

  •  
  •   ming1016 ·
    ming1016 · 2014-05-14 11:26:25 +08:00 · 3688 次点击
    这是一个创建于 3633 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我把整个workspace都传上去了,包括pod里的,感觉应该不对。大家一般是怎么处理这个的。
    项目地址:
    https://github.com/ming1016/RSSRead/

    解析rss我用的是MWFeedParser。
    在添加rss源时还不知道如何处理直接在网页地址里找rss地址,所以现在只能够输入rss地址
    本地存储用的CoreData
    21 条回复    2014-05-15 16:12:54 +08:00
    R0CKSTAR
        1
    R0CKSTAR  
       2014-05-14 11:31:17 +08:00
    挺棒的,搞个截图,git ignore把pods workspace都ignore了就更好了。
    messense
        2
    messense  
       2014-05-14 11:37:59 +08:00
    glasslion
        3
    glasslion  
       2014-05-14 11:41:54 +08:00
    LICENSE
    alexrezit
        4
    alexrezit  
       2014-05-14 13:01:26 +08:00
    一個小時就寫完上架了?
    ming1016
        5
    ming1016  
    OP
       2014-05-14 15:37:29 +08:00
    @ROCKSTAR 截图已经添加到readme.md里
    @messense 已经添加podfile
    @glasslion LICENSE的话一般用哪种比较合适,我在readme.md里写上Apache License, Version 2.0.
    @alexrezit 线上架,后上的github,github上的版本要新些

    各位有兴趣一起来完善这个项目么
    alexrezit
        6
    alexrezit  
       2014-05-14 15:59:38 +08:00 via iPhone
    @ming1016
    三條 commits?
    sneezry
        7
    sneezry  
       2014-05-14 16:07:39 +08:00
    好想用啊,可是为什么不支持ios6呢,不幸福!
    ming1016
        8
    ming1016  
    OP
       2014-05-14 16:14:52 +08:00
    @alexrezit 本地开发时没有用git管理,上线后才用上的。
    @sneezry 更新rss源时目前采用了iOS的后台刷新功能,所以直接上到iOS7,很遗憾:(,对iOS6的支持只能往后推迟了
    binux
        9
    binux  
       2014-05-14 16:16:29 +08:00
    别把密码传上去
    dorentus
        10
    dorentus  
       2014-05-14 16:18:13 +08:00
    给只支持 iOS 7 点个赞 :)
    dorentus
        11
    dorentus  
       2014-05-14 16:23:36 +08:00
    cocoapods 官方是推荐包含 Podfile 和 Podfile.lock,忽略 Pods 目录的。
    然后 RSSRead.xcodeproj 里面只要 project.pbxproj,其它全部忽略。

    已经提交上去的话就需要 git rm 然后再提交一次了……
    ZhaoMiing
        12
    ZhaoMiing  
       2014-05-14 16:29:02 +08:00
    lz的「微博娃娃」截图不忍直视。。。https://itunes.apple.com/us/app/wei-bo-wa-wa-xin-lang-wei/id659847063?mt=8
    dorentus
        13
    dorentus  
       2014-05-14 16:36:25 +08:00
    我发个 pull request,你可以参考下(不一定要直接接受 merge)。
    dorentus
        14
    dorentus  
       2014-05-14 16:38:46 +08:00
    @dorentus 如果你本地在之后有改动的话直接 merge 估计会有冲突。如果没有改动的话,线上 merge 完,pull 下来之后,就得再执行一次 pod install 来重建 Pods/ 和 RSSRead.xcworkspace 了
    tylr
        15
    tylr  
       2014-05-14 17:02:55 +08:00
    请教楼主一个关于rss的问题,我今天正好在学习用NSXMLParser,练习项目正好是一个RSS Reader,大部分网站的feed访问都只有10条记录,如何才能载入更多的记录呢?我Google了下,在stackoverflow上面看到的回答是‘RSS may be the wrong tool for this. Typically, an RSS feed displays the last X entries, with no concept of "Load more" or "Show all entries". It's up to the client RSS reader to periodically check the feed, determine which entries are new, and save them to a local database.’
    Mutoo
        16
    Mutoo  
       2014-05-14 18:04:28 +08:00   ❤️ 2
    @tylr 确实。rss 只是一个最新信息的接口,它的责任只是告诉你有新信息可读,既不保证内容的完整性,也不对以往数据做存档。

    之所以怀念 google reader 就是因为它无尝帮助大家存档了很多旧数据。
    ming1016
        17
    ming1016  
    OP
       2014-05-14 18:04:43 +08:00
    @binux 什么密码,表吓我哦
    @dorentus 真的非常感谢你:),我已经把merge了你的pull request。
    @tylr rss地址只提供最新的内容,如果要得到更多有两种方法,1,把取到的内容存到服务器,2,存本地数据库。当然也可以用一些rss服务的接口,比如说feedly
    ming1016
        18
    ming1016  
    OP
       2014-05-14 18:58:42 +08:00   ❤️ 1
    @tylr 你可以看看这个
    http://rss-sync.github.io/Open-Reader-API/resources/
    这里有列出一些rss服务器端接口规范和一些已有的提供接口的资源。
    yourtion
        19
    yourtion  
       2014-05-14 20:05:28 +08:00 via iPhone
    为只支持iOS 7点赞
    tylr
        20
    tylr  
       2014-05-14 22:10:10 +08:00
    @Mutoo
    @ming1016 谢谢两位 :)
    amon
        21
    amon  
       2014-05-15 16:12:54 +08:00
    学习了!!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3699 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 04:21 · PVG 12:21 · LAX 21:21 · JFK 00:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.