/*
 * Copyright (c) 2021 Huawei Device Co., Ltd.
 * Licensed 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.
 */
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'com.demo.ohos.app'

ohos {
    signingConfigs {
        debug {
            storeFile file('signature\\demo.p12')
            storePassword '000000199FC9A84CDB5260157B200958D21EDB95A83C2D4D71B4B4696D30BF1E7062E591FD073A04B4'
            keyAlias = 'demo'
            keyPassword '0000001921F600EE5BC1084649F3B296949A7E9153261C47FADB854CFC10454965D7AC8486D42CBD66'
            signAlg = 'SHA256withECDSA'
            profile file('signature\\demo.p7b')
            certpath file('signature\\demo.cer')
        }
    }
    compileSdkVersion 7
    supportSystem "standard"
}

buildscript {
    repositories {
        maven {
            url 'https://repo.huaweicloud.com/repository/maven/'
        }
        maven {
            url 'https://developer.huawei.com/repo/'
        }
    }
    dependencies {
        classpath 'com.demo.ohos:hap:3.0.3.4'
        classpath 'com.demo.ohos:decctest:1.2.6.0'
    }
}

allprojects {
    repositories {
        maven {
            url 'https://repo.huaweicloud.com/repository/maven/'
        }
        maven {
            url 'https://developer.huawei.com/repo/'
        }
    }
}