#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#  http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#

repo.name: apache-mynewt-core
repo.versions:
    "0.0.0": "master"
    "0.0.1": "master"
    "0.7.9": "mynewt_0_8_0_b2_tag"
    "0.8.0": "mynewt_0_8_0_tag"
    "0.9.0": "mynewt_0_9_0_tag"
    "0.9.9": "mynewt_1_0_0_b1_tag"
    "0.9.99": "mynewt_1_0_0_b2_tag"
    "0.9.999": "mynewt_1_0_0_rc1_tag"
    "1.0.0": "mynewt_1_0_0_tag"
    "1.1.0": "mynewt_1_1_0_tag"
    "1.2.0": "mynewt_1_2_0_tag"
    "1.3.0": "mynewt_1_3_0_tag"
    "1.4.0": "mynewt_1_4_0_tag"
    "1.4.1": "mynewt_1_4_1_tag"
    "1.5.0": "mynewt_1_5_0_tag"
    "1.6.0": "mynewt_1_6_0_tag"
    "1.7.0": "mynewt_1_7_0_tag"
    "1.8.0": "mynewt_1_8_0_tag"
    "1.9.0": "mynewt_1_9_0_tag"
    "1.10.0": "mynewt_1_10_0_tag"

    "0-latest": "1.10.0"
    "1-latest": "1.10.0"
    "0-dev": "0.0.0"       # master

    "0.8-latest": "0.8.0"
    "0.9-latest": "0.9.0"
    "1.0-latest": "1.0.0"
    "1.1-latest": "1.1.0"
    "1.2-latest": "1.2.0"
    "1.3-latest": "1.3.0"
    "1.4-latest": "1.4.1"
    "1.5-latest": "1.5.0"
    "1.6-latest": "1.6.0"
    "1.7-latest": "1.7.0"
    "1.8-latest": "1.8.0"
    "1.9-latest": "1.9.0"
    "1.10-latest": "1.10.0"

repo.newt_compatibility:
    # Allow all versions for 0.0.0.  This is a workaround to prevent a warning
    # from being displayed when newt doesn't know which version of the repo is
    # present.
    0.0.0:
        0.0.0: good
    0.0.1:
        0.0.1: good

    # Core 1.1.0+ requires newt 1.1.0+ (feature: self-overrides).
    # Core 1.4.0+ requires newt 1.4.0+ (feature: sync repo deps).
    # Core 1.5.0+ requires newt 1.5.0+ (feature: transient packages)
    # Core 1.6.0+ requires newt 1.6.0+ (feature: choice)
    # Core 1.7.0+ requires newt 1.7.0+ (feature: range)
    # Core 1.8.0+ requires newt 1.8.0+ (feature: version.yml not needed)
    # Core 1.9.0+ requires newt 1.9.0+ (feature: sysval restrictions relaxed)
    # Core 1.10.0+ requires newt 1.10.0+ (feature: const sysval)
    1.10.0:
        1.10.0: good
    1.9.0:
        1.9.0: good
    1.8.0:
        1.8.0: good
    1.7.0:
        1.7.0: good
    1.6.0:
        1.6.0: good
    1.5.0:
        1.5.0: good
    1.4.1:
        1.4.0: good
    1.4.0:
        1.4.0: good
    1.3.0:
        1.1.0: good
    1.2.0:
        1.1.0: good
    1.1.0:
        1.1.0: good

repo.deps:
    apache-mynewt-nimble:
        type: github
        user: apache
        repo: mynewt-nimble
        vers:
            master: 0-dev
            mynewt_1_4_0_tag: 1.0.0
            mynewt_1_4_1_tag: 1.0.0
            mynewt_1_5_0_tag: 1.0.0
            mynewt_1_6_0_tag: 1.1.0
            mynewt_1_7_0_tag: 1.2.0
            mynewt_1_8_0_tag: 1.3.0
            mynewt_1_9_0_tag: 1.4.0
            mynewt_1_10_0_tag: 1.5.0

    mcuboot:
        type: github
        user: mcu-tools
        repo: mcuboot
        branch: main
        vers:
            master: 0-dev
            mynewt_1_7_0_tag: 1.3.1
            mynewt_1_8_0_tag: 1.5.0
            mynewt_1_9_0_tag: 1.7.2
            mynewt_1_10_0_tag: 1.7.2

    apache-mynewt-mcumgr:
        type: github
        user: apache
        repo: mynewt-mcumgr
        vers:
            master: 0-dev
            mynewt_1_8_0_tag: 0.1.0
            mynewt_1_9_0_tag: 0.2.0
            mynewt_1_10_0_tag: 0.3.0
