Updates from Jorge Bernal RSS Toggle Comment Threads | Keyboard Shortcuts

  • Jorge Bernal 12:43 pm on May 22, 2012 Permalink | Reply  

    Note to devs: trunk is broken and it’s going to be for some days. Use tags/3.0 if you want something stable

     
  • Jorge Bernal 3:38 pm on April 9, 2012 Permalink
    Tags:   

    Changes in XML-RPC for 3.4. I think that’s all, or at least everything that could be relevant for the mobile apps

    At r20403:

    New methods:

    • ‘wp.newPost’
    • ‘wp.editPost’
    • ‘wp.deletePost’
    • ‘wp.getPost’
    • ‘wp.getPosts’
    • ‘wp.newTerm’
    • ‘wp.editTerm’
    • ‘wp.deleteTerm’
    • ‘wp.getTerm’
    • ‘wp.getTerms’
    • ‘wp.getTaxonomy’
    • ‘wp.getTaxonomies’
    • ‘wp.getPostType’
    • ‘wp.getPostTypes’

    Additions to wp.getOptions:

    • image_default_link_type
    • image_default_size
    • image_default_align
    • template
    • stylesheet
    • featured_image
    • default_comment_status
    • default_ping_status

    Bugfixes:

    • New date functions to avoid invalid dates
    • metaWeblog.newPost verifies that wp_author_id is valid
    • metaWeblog.newPost supports wp_featured_image
    • metaWeblog.editPost permission checks refactored
    • metaWeblog.editPost supports wp_page_template for pages
    • metaWeblog.editPost supports wp_featured_image
    • metaWeblog.getPost (and getRecentPosts) returns last modified dates and featured images
    • metaWeblog.newMediaObject also returns attachment id
     
    • Max Cutler 4:19 pm on April 9, 2012 Permalink | Reply

      Thanks for gathering this! Be sure to watch #20396 to see if/when the name for featured_image changes.

  • Jorge Bernal 5:37 pm on March 5, 2012 Permalink
    Tags: 2.10,   

    I created the Next Release report on trac, priorities are:

    • Blocker: major features for the release
    • Critical: anything that worked before adding new features and it’s broken now
    • Major: generic bugs
    • Minor, trivial: enhancements that would be nice to include in the release if there’s time

    Not everything is in the right priority yet, but I think it’s a good way to sort priorities

     
    • Judy 1:11 pm on March 10, 2012 Permalink | Reply

      Im a PM who teaches web deign and dev, and has gotten into iOS. I would like to get involved. This would be my very first opensource participation, and if there is a proper protocol – I hope I havent just violated it by just replying to this post. If anyone can spare a little time to write me and point me in the right direction, I hope to make it up to you in contributions.

    • Usain 2:57 pm on April 1, 2012 Permalink | Reply

      Please add a feature to set a featured image, I miss that feature so hard and I know I’m not the only one.
      Keep up the good work!

      • Jorge Bernal 12:16 pm on April 2, 2012 Permalink | Reply

        Support for featured images has been added recently to the API for WordPress 3.4, it wasn’t possible until now. We’re working on bringing that to a next version of WordPress for iOS

  • Jorge Bernal 8:51 pm on February 18, 2012 Permalink  

    Early reports show a higher than usual number of crashes on WPiOS 2.9.4.

    It looks like there are 2 new bugs. At least one of them looks like an easy fix

    I’ll try to get them fixed early next week and submit a 2.9.5 with just the bugfixes

     
  • Jorge Bernal 7:22 pm on January 10, 2012 Permalink  

    In [2382]: Enabled GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS so we get a bunch new warnings if we’re using deprecated methods. Autocompletion usually helps to avoid it when writing new code, but we should review the old code. 19 warnings only :)

     
  • Jorge Bernal 8:34 pm on December 16, 2011 Permalink
    Tags: libraries   

    I plan to write some coding guidelines for iOS extending what’s here (not much, I know), but one thing I need to warn right now, just in case:

    If you add any external libraries, don’t modify them.

    That said, if you need to change them to fit our app:

    • Make it generic enough to be accepted by the original developer, if it fixes a general problem
    • Try creating a subclass, or find other workaround, if it’s too specific to our app
    • If you absolutely must modify the library, at least commit a clean copy of it to svn, then apply your changes and commit. This way we can have a diff of what we’ve modified and update the library easily in the future

    This came from trying to update the XMLRPC library. Our version was really old, the first version committed to our svn already had modifications, in all this time they moved from svn to git losing the history. There was no sane way to figure out what our changes were compared to the original version to port them over the latest version, so I had to take a guess (only picked the changes after it was added to svn)

     
    • Jorge Bernal 8:39 pm on December 16, 2011 Permalink | Reply

      I also plan next week to move all the libraries to a Vendor directory, so it’s easier to differentiate our code from third party. Since we can’t have git externals/submodules in svn, I was planning to just store a list of libraries in a text file. Something like this:

      AFNetworking
      Source: https://github.com/koke/AFNetworking
      Version: 049fef588818e29e92128a08ae835aad3a33103b
      
      XMLRPC
      Source: https://github.com/eczarny/xmlrpc
      ...
      

      I’ve been looking at dependency management for Objective-C like CocoaPods and VendorKit, but I’m not sold on any of those yet.

    • Dan 8:59 am on December 28, 2011 Permalink | Reply

      Speaking of external libraries, AFNetworking has a bunch of example code in it. We should remove that at some point.

      • Jorge Bernal 10:53 am on December 28, 2011 Permalink | Reply

        Not 100% happy about it, but it goes to the “don’t modify”. Since we can’t have them as externals/submodules, I tried to keep the files the same as upstream, and add only what we need in the Xcode project.

  • Jorge Bernal 1:47 pm on December 16, 2011 Permalink  

    Feature request from twitter: better support for finding/editing old posts:

    First we’d need support on the XML-RPC api. In theory, metaWeblog.getRecentPosts supports everything that WP_Query supports, but I can’t find search on the documentation.

    But even then, how do we decide what to keep? Most of the users will only care about the latest posts if anything, and keeping 1K posts in the app would add disk space, and possibly slow down the app.

     
    • X-Money 1:57 pm on December 16, 2011 Permalink | Reply

      Why you can’t use the same or similar API that Apple use in the Mail app? Everyone has a search or category API for iOS. Amazon, Google, EBay. You gotta reverse engineer their app. If you can make WP search and editing of posts like Apple Mail that will be awesome.

      • Jorge Bernal 3:10 pm on December 16, 2011 Permalink | Reply

        Well, the API that mail uses (IMAP) is for mail servers. Adding a search box to the app interface is relatively easy, the problem is asking your WordPress site to search. As far as I know, there’s no API for that yet.

        That doesn’t mean it’s impossible, but we’d have to wait until WordPress 3.4 (at least) to be able to make it.

        Anyway, what’s the typical case that makes you go so often to old posts?
        Do you get a comment on an old post and correct something? Do you search for old posts as a template for new posts?

    • Darnell Clayton 5:04 pm on December 16, 2011 Permalink | Reply

      Meh! I hate to say it, but I see this as (more or less) an unnecessary feature that you need to say no to (at least right now).

      If users need to edit a post, then why not enable it on the mobile web side, allowing them to log in, search, etc. and edit from there? (also is there a plugin for that?)

      Adding this feature would indeed slow the WordPress app down, and it’s better to wait for an API. To paraphrase Steve Jobs, “learn to say no to feature requests.”

    • Manuel Rubio 1:47 pm on December 17, 2011 Permalink | Reply

      I believe that WordPress release 2.9.3 has been well and you must have well-taken care of with the modifications so that it does not happen like with version 2.9.2

  • Jorge Bernal 2:31 pm on November 8, 2011 Permalink
    Tags:   

    I’ve seen some crash reports on iOS5 with the following error:

    ‘NSInvalidArgumentException’, reason: ‘Cannot set metadata in read-only store.’

    Looking at this thread and the dev forums, it seems like an Apple bug, but one user said:

    My beta testers reported that syncing with iTunes seems to clear this error up- so my guess is that iTunes sync is fixing a permissions problem.

    Let’s hope they’ll fix that in a next release, since it’s about 20% of the crashes for 2.9.1 right now

     
  • Jorge Bernal 4:25 pm on November 4, 2011 Permalink
    Tags: , , , wpios-3.0   

    I just emptied the 3.0 milestone on trac so we can start fresh.

    I’ll start working on the roadmap next week, and everything should have it’s own ticket so we can easily keep track of the changes and progress.

     
  • Jorge Bernal 12:18 pm on October 5, 2011 Permalink  

    Crash Report status for 2.9.1:

    • Fixed freeze when picking photo from library [2239]
    • Fixed crashes on iOS 4.0 [8.58% of crashes] [2236]
    • Maybe fixed crash when memory warning issued while adding/selecting categories [4% of crashes] [2240]
    • Try to avoid crash on weird cases when picking a photo [2.47% of crashes]. Can’t reproduce, but I’ve tried to make it not crash on unexpected values [2241]

    Unsolved crashes:

    • There’s a Safari bug on iOS 4.0 which makes WebCore crash [5.29% of crashes]. New version of the reader in 2.9.1 will at least not make it happen when users are somewhere else in the app, but will still crash when loading the articles that trigger that bug. That would also help pinpoint what the bug actually is
    • The crash on ojbc_msgSend [4.47% of crashes]. We’ve had this one for a long time, and happens in very random places. At least users are now giving more details of what they were doing when app crashed. Cleanup and NSOperation in 3.0 will probably help getting rid of this one
    • NSObjectInaccessibleException [3.17% of crashes]. In some edge cases, the app tries to show a comment which has been deleted (or marked as spam). It looks like it happens when the app was in the background and just launched opening a comment.
    • The “Deallocation Problem” (more info) [2.59% of crashes]. Nasty bug which happens when a UIViewController does something on the background and gets released before the background thread is finished. That causes dealloc to be called from a background thread which is fatal when you have a UIWebView. Let’s move to NSOperation and stay away from performSelector* on 3.0
     
    • Jorge Bernal 12:48 pm on October 5, 2011 Permalink | Reply

      Also, there’s a “crash” for some users when opening the comments tab while posts are still loading

      I saw it happen live on WordCamp Lisbon, but it didn’t leave any kind of crash log. When user went to visit and refresh a different blog, it was suddenly fixed.

    • Stefan 11:08 pm on October 16, 2011 Permalink | Reply

      What’s about Custom-Post-Type function in the App? Would that function coming with that new version or with v3.0 of the app?

      • Jorge Bernal 11:39 am on October 17, 2011 Permalink | Reply

        Probably not going to make it for 3.0, although we want to support them somehow in the future

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel
Follow

Get every new post delivered to your Inbox.

Join 56 other followers