Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add update level #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

goncalofalcao
Copy link
Contributor

New Options: (old .plist file works fine with this new version i tested it)

3 new level options:

  • low (same as before all 3 buttons apear, this is the default level if no level is set),
  • medium (only download and remind me later (if lenght > 0) apear),
  • high (only download apear in case of catastrophic need of update, problems happen right?)

how to setup new settings:

[iVersion sharedInstance].updateLevel = 2; (1 for low, 2 for medium, 3 for high)

or in remote plist (old plist files structure still works):

This plist file will behave differently for different versions of the application:

  • If user have installed version 1.0, the app will only have the download button for the user to press.
  • If user have version 1.1 installed, the app will have all 3 buttons.
  • If user have version 1.2 installed, the app will have Download and Remind me Later buttons.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>1.0</key>
    <dict>
        <key>details</key>
        <array>
            <string>First release</string>
        </array>
        <key>level</key>
        <integer>1</integer>
    </dict>
    <key>1.1</key>
    <dict>
        <key>details</key>
        <array>
            <string>NEW: Added  new snoodlebar feature</string>
            <string>FIX: Fixed the bugalloo glitch that makes the app crash a lot!!</string>
        </array>
        <key>level</key>
        <integer>3</integer>
    </dict>
    <key>1.2</key>
    <array>
        <string>NEW: Some important feature</string>
        <string>CHANGE: Some significant change</string>
    </array>
        <key>1.3</key>
    <dict>
        <key>details</key>
        <array>
            <string>NEW: Something cool</string>
            <string>FIX: Really important bug but app still works</string>
        </array>
        <key>level</key>
        <integer>2</integer>
    </dict>
</dict>
</plist>

Any questions feel free to ask, i can re-rewrite the readme file to incorporate this changes if you need it.

@nicklockwood
Copy link
Owner

Hi, thanks for this. It's an interesting idea. I'm not 100% sure about the implementation. I'll need to think about it a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants