Beispiel #1
0
def android_builds(channel, builds=None):
    builds = builds or []
    variations = OrderedDict([
        ('api-9', 'Gingerbread'),
        ('api-15', 'Ice Cream Sandwich+'),
        ('x86', 'x86'),
    ])

    if channel == 'alpha':
        version = int(firefox_android.latest_version('alpha').split('.', 1)[0])

        for type, arch_pretty in variations.iteritems():
            # Android Gingerbread (2.3) is no longer supported as of Firefox 48
            if version >= 48 and type == 'api-9':
                continue

            link = firefox_android.get_download_url('alpha', type)
            builds.append({'os': 'android',
                           'os_pretty': 'Android',
                           'os_arch_pretty': 'Android %s' % arch_pretty,
                           'arch': 'x86' if type == 'x86' else 'armv7up %s' % type,
                           'arch_pretty': arch_pretty,
                           'download_link': link})
    else:
        link = firefox_android.get_download_url(channel)
        builds.append({'os': 'android',
                       'os_pretty': 'Android',
                       'download_link': link})

    return builds
Beispiel #2
0
def android_builds(channel, builds=None):
    builds = builds or []
    variations = OrderedDict([
        ('api-9', 'Gingerbread'),
        ('api-11', 'Honeycomb+ ARMv7+'),
        ('x86', 'x86'),
    ])

    if channel == 'alpha':
        for type, arch_pretty in variations.iteritems():
            link = firefox_android.get_download_url('alpha', type)
            builds.append({
                'os': 'android',
                'os_pretty': 'Android',
                'os_arch_pretty': 'Android %s' % arch_pretty,
                'arch': 'x86' if type == 'x86' else 'armv7up %s' % type,
                'arch_pretty': arch_pretty,
                'download_link': link
            })
    else:
        link = firefox_android.get_download_url(channel)
        builds.append({
            'os': 'android',
            'os_pretty': 'Android',
            'download_link': link
        })

    return builds
Beispiel #3
0
def android_builds(channel, builds=None):
    channel = channel.lower()
    builds = builds or []
    variations = OrderedDict([
        ('api-15', 'Ice Cream Sandwich+'),
        ('x86', 'x86'),
    ])

    if channel == 'aurora':
        channel = 'alpha'

    if channel == 'nightly':
        for type, arch_pretty in variations.iteritems():
            link = firefox_android.get_download_url(channel, type)
            builds.append({
                'os': 'android',
                'os_pretty': 'Android',
                'os_arch_pretty': 'Android %s' % arch_pretty,
                'arch': 'x86' if type == 'x86' else 'armv7up %s' % type,
                'arch_pretty': arch_pretty,
                'download_link': link
            })
    else:
        link = firefox_android.get_download_url(channel)
        builds.append({
            'os': 'android',
            'os_pretty': 'Android',
            'download_link': link
        })

    return builds
Beispiel #4
0
def android_builds(channel, builds=None):
    channel = channel.lower()
    builds = builds or []
    variations = OrderedDict([
        ('api-15', 'Ice Cream Sandwich+'),
        ('x86', 'x86'),
    ])

    if channel == 'aurora':
        channel = 'alpha'

    if channel == 'nightly':
        for type, arch_pretty in variations.iteritems():
            link = firefox_android.get_download_url(channel, type)
            builds.append({'os': 'android',
                           'os_pretty': 'Android',
                           'os_arch_pretty': 'Android %s' % arch_pretty,
                           'arch': 'x86' if type == 'x86' else 'armv7up %s' % type,
                           'arch_pretty': arch_pretty,
                           'download_link': link})
    else:
        link = firefox_android.get_download_url(channel)
        builds.append({'os': 'android',
                       'os_pretty': 'Android',
                       'download_link': link})

    return builds
Beispiel #5
0
def android_builds(channel, builds=None):
    builds = builds or []
    variations = OrderedDict([
        ('api-9', 'Gingerbread'),
        ('api-15', 'Ice Cream Sandwich+'),
        ('x86', 'x86'),
    ])

    if channel in ['alpha', 'nightly']:
        version = int(firefox_android.latest_version(channel).split('.', 1)[0])

        for type, arch_pretty in variations.iteritems():
            # Android Gingerbread (2.3) is no longer supported as of Firefox 48
            if version >= 48 and type == 'api-9':
                continue

            link = firefox_android.get_download_url(channel, type)
            builds.append({
                'os': 'android',
                'os_pretty': 'Android',
                'os_arch_pretty': 'Android %s' % arch_pretty,
                'arch': 'x86' if type == 'x86' else 'armv7up %s' % type,
                'arch_pretty': arch_pretty,
                'download_link': link
            })
    else:
        link = firefox_android.get_download_url(channel)
        builds.append({
            'os': 'android',
            'os_pretty': 'Android',
            'download_link': link
        })

    return builds
Beispiel #6
0
def android_builds(channel, builds=None):
    builds = builds or []
    link = firefox_android.get_download_url(channel.lower())
    builds.append({'os': 'android',
                   'os_pretty': 'Android',
                   'download_link': link})

    return builds
Beispiel #7
0
def android_builds(channel, builds=None):
    builds = builds or []
    link = firefox_android.get_download_url(channel.lower())
    builds.append({'os': 'android',
                   'os_pretty': 'Android',
                   'download_link': link})

    return builds
Beispiel #8
0
def android_builds(channel, builds=None):
    builds = builds or []
    link = firefox_android.get_download_url(channel.lower())
    builds.append({
        "os": "android",
        "os_pretty": "Android",
        "download_link": link
    })

    return builds
Beispiel #9
0
def android_builds(channel, builds=None):
    builds = builds or []
    variations = OrderedDict([("api-9", "Gingerbread"), ("api-11", "Honeycomb+ ARMv7+"), ("x86", "x86")])

    if channel == "alpha":
        for type, arch_pretty in variations.iteritems():
            link = firefox_android.get_download_url("alpha", type)
            builds.append(
                {
                    "os": "android",
                    "os_pretty": "Android",
                    "os_arch_pretty": "Android %s" % arch_pretty,
                    "arch": "x86" if type == "x86" else "armv7up %s" % type,
                    "arch_pretty": arch_pretty,
                    "download_link": link,
                }
            )
    else:
        link = firefox_android.get_download_url(channel)
        builds.append({"os": "android", "os_pretty": "Android", "download_link": link})

    return builds
Beispiel #10
0
def android_builds(channel, builds=None):
    builds = builds or []
    variations = OrderedDict([
        ('api-9', 'Gingerbread'),
        ('api-11', 'Honeycomb+ ARMv7'),
        ('x86', 'x86'),
    ])

    if channel == 'alpha':
        for type, arch_pretty in variations.iteritems():
            link = firefox_android.get_download_url('alpha', type)
            builds.append({'os': 'android',
                           'os_pretty': 'Android',
                           'os_arch_pretty': 'Android %s' % arch_pretty,
                           'arch': 'x86' if type == 'x86' else 'armv7 %s' % type,
                           'arch_pretty': arch_pretty,
                           'download_link': link})
    else:
        link = firefox_android.get_download_url(channel)
        builds.append({'os': 'android',
                       'os_pretty': 'Android',
                       'download_link': link})

    return builds