Follow

Upgrading Android 1.2.2 to 1.3.1

Please follow this upgrade guide from Android version 1.2.2 to 1.3.1 of Pugpig for Magazines 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 downloaded the latest v1.3.1 pugpigproducts.aar from our website. Next carry out the following steps:

  1. Replace your .aar
    Replace the new .aar file with the previous one in your project's app/libs directory.  
  2. Update your AndroidManifest
    Update your app/src/main/AndroidManifest.xml file to match the following:

    Note: the section which begins "<!-- UNCOMMENT THIS ... --> that must be uncommented if you wish to support Amazon in-app purchases.

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="{{your package name goes here}}">
    
        <!-- UNCOMMENT THIS FOR GOOGLE IAP
        <uses-permission android:name="com.android.vending.BILLING" />
        -->
    
        <application>
    
            <!-- Needed so that Android Studio knows which activity to launch: -->
            <activity android:name="com.kaldorgroup.pugpig.products.StartViewController">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
    
            <!-- Needed to share images (e.g. for sharing to email): -->
            <provider
                android:name="com.kaldorgroup.pugpig.sharing.FileSharingProvider"
                android:authorities="${packageName}.pugpig.products.FileSharingProvider"
                android:exported="true"
                android:grantUriPermissions="true">
            </provider>
    
            <!-- UNCOMMENT THIS FOR AMAZON IAP v2
            <receiver android:name="com.amazon.device.iap.ResponseReceiver" >
              <intent-filter>
                <action android:name="com.amazon.inapp.purchasing.NOTIFY"
                  android:permission="com.amazon.inapp.purchasing.Permission.NOTIFY" />
              </intent-filter>
            </receiver>
            -->
    
        </application>
    </manifest>
  3. Update your config.plist
    It should match this example plist, you may find it easier to download and port your old 1.2.2 config over to this or update your old one to match, the changes include:

    - OPDS dictionary
    In order to accomodate auto-selection of a particular feed in a multi-feed scenario based on a predicate, such as user's locale, we have modified the OPDS config format. It is now an array of dictionaries where each dictionary must contain a URL. If you specify more than one OPDS feed, you must either provide a Name or an Autoselect Conditions in each entry's dictionary.

    <key>OPDS Feeds</key>
    <array>
    <dict>
    <key>URL</key>
    <string></string>
    </dict>
    </array>

    - Features
    We now offer Scrapbooking and Search feature so you can add them to your config.plist (see the example provided) and set to true to enable these. For any new features you may wish to add new keys to your theme.plist or localisable strings file to style the features.

 

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

Comments

Powered by Zendesk