Follow

Upgrading iOS 1.1.0 to 1.2.0

Please follow this upgrade guide from version 1.1.0 to 1.2.0 of Pugpig for Continuous Publishing for any of your existing app projects. As always please ensure you have backed up your code and project before upgrading.

Before starting make sure you have:

  • Run the latest v1.2.0 iOS installer on your machine
  • Follow the process to update an existing Xcode project framework files

Next open the project and carry out the following steps:

  1. Pugpig Auth keys have moved in Config.plist.
    In order to support multiple authorisation providers we have moved these into a dictionary item. Create a new Pugpig for Magazines project to see the default config.plist structure, also referenced below:
    <key>Authorisation</key>
    <array>
      <dict>
        <key>Endpoint</key>
        <string>http://</string>
        <key>Methods</key>
        <dict>
          <key>Edition Credentials</key>
          <string>edition_credentials/</string>
          <key>Renew Token</key>
          <string>renew_token/</string>
          <key>Sign In</key>
          <string>sign_in/</string>
          <key>Verify Subscription</key>
          <string>verify_subscription/</string>
        </dict>
        <key>Parameters</key>
        <dict>
          <key>Product ID</key>
          <string>product_id</string>
          <key>Token</key>
          <string>token</string>
          <key>User ID</key>
          <string>username</string>
          <key>User Password</key>
          <string>password</string>
        </dict>
        <key>Should POST</key>
        <true/>
      </dict>
    </array>
    
  2. New assets added
    The assets supplied have changed considerably since 1.1.0. We have adapted them to have consistent line weight and have added @3x versions to support the iPhone 6 Plus device. The recommended way to upgrade is to backup your custom assets, then replace the .xcassets folder with the new one (from the v1.2.0 installer), and then drop in any of your custom images you want to override for your project.

  3. New features supported
    - "Enable Annotations" (defaults to false)
    - "Enable Wishlist" (defaults to false)
    - "Enable reset" (defaults to false, Magazines only requires multiple OPDS feeds)

  4. New relative timestamps
    You must add the following to Localizable.strings:
    // Relative updated time
    "pugpig_relative_date_now" = "Updated\nJust Now";
    "pugpig_relative_date_today" = "Updated\nToday at %@";
    "pugpig_relative_date_on_date"= "Updated\non %@";
    And you must add the Localizable.stringsdict file to the project/target.

  5. Sharing copy
    Integration with the iOS sharing action sheet requires that we drop support for %url% (which is now automatically attached to the sharing item) and %content%. %title% and %summary% are still supported.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk