1/* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 // Top-level build file where you can add configuration options common to all sub-projects/modules. 17apply plugin: 'com.huawei.ohos.app' 18 19ohos { 20 compileSdkVersion 6 21 defaultConfig { 22 compatibleSdkVersion 6 23 } 24} 25 26buildscript { 27 repositories { 28 maven { 29 url 'http://repo.ark.tools.huawei.com/artifactory/maven-public/' 30 } 31 maven { 32 url 'https://mirrors.huaweicloud.com/repository/maven/' 33 } 34 maven { 35 url 'https://developer.huawei.com/repo/' 36 } 37 jcenter() 38 } 39 dependencies { 40 classpath 'com.huawei.ohos:hap:2.4.4.3-RC' 41 } 42} 43 44allprojects { 45 repositories { 46 maven { 47 url 'http://repo.ark.tools.huawei.com/artifactory/maven-public/' 48 } 49 maven { 50 url 'https://mirrors.huaweicloud.com/repository/maven/' 51 } 52 maven { 53 url 'https://developer.huawei.com/repo/' 54 } 55 jcenter() 56 } 57}