75 строки
2.2 KiB
Groovy
75 строки
2.2 KiB
Groovy
/*
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/
|
|
apply plugin: 'io.codearte.nexus-staging'
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '1.6.20'
|
|
ext.nexus_plugin_version = '0.30.0'
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.0.0'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:$nexus_plugin_version"
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
project.ext {
|
|
constants = [
|
|
minSdkVersion: 21,
|
|
targetSdkVersion: 31,
|
|
compileSdkVersion: 31,
|
|
]
|
|
|
|
buildToolVersion = '30.0.0'
|
|
kotlin_version = '1.6.20'
|
|
appCompatVersion = '1.3.0'
|
|
materialVersion = '1.3.0'
|
|
supportVersion = '28.0.0'
|
|
recyclerViewVersion = '1.1.0'
|
|
junitVersion = '4.12'
|
|
extJunitVersion = '1.1.2'
|
|
espressoVersion = '3.3.0'
|
|
roboelectricVersion = '4.4'
|
|
constraintLayoutVersion = '2.0.4'
|
|
exifInterfaceVersion = '1.3.2'
|
|
duoVersion = '1.0.0-alpha01'
|
|
tokenautocompleteVersion = '2.0.8'
|
|
threetenabpVersion = '1.1.0'
|
|
universalPkgDir = "universal"
|
|
composeVersion = '1.2.0-alpha08'
|
|
lifecycleVersion = '2.4.1'
|
|
|
|
}
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
maven {
|
|
url "https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1"
|
|
}
|
|
}
|
|
}
|
|
|
|
task makeUniversalPkg(type: Copy) {
|
|
duplicatesStrategy = DuplicatesStrategy.WARN
|
|
from('.')
|
|
include('**/*.aar')
|
|
exclude('**/FluentUI-release.aar')
|
|
exclude("$universalPkgDir")
|
|
into("$rootDir/$universalPkgDir/libs")
|
|
includeEmptyDirs = false
|
|
eachFile {
|
|
path = name
|
|
}
|
|
rename '(.+)-release', '$1'
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
}
|