69 строки
2.5 KiB
Groovy
69 строки
2.5 KiB
Groovy
/*
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
android {
|
|
compileSdkVersion 28
|
|
defaultConfig {
|
|
applicationId 'com.microsoft.officeuifabricdemo'
|
|
minSdkVersion 19
|
|
targetSdkVersion 28
|
|
versionCode 13
|
|
versionName '0.2.3'
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
signingConfigs {
|
|
dogfood {
|
|
keyAlias 'Dogfood'
|
|
keyPassword = project.hasProperty("signingKeyPassword") ? "$signingKeyPassword" : ""
|
|
storeFile file('keystore.jks')
|
|
storePassword = project.hasProperty("signingKeyStorePassword") ? "$signingKeyStorePassword" : ""
|
|
}
|
|
}
|
|
flavorDimensions 'distribution'
|
|
productFlavors {
|
|
development {
|
|
dimension 'distribution'
|
|
}
|
|
dogfood {
|
|
dimension 'distribution'
|
|
applicationIdSuffix '.df'
|
|
signingConfig signingConfigs.dogfood
|
|
buildConfigField "String", "APP_CENTER_SECRET", project.hasProperty("appCenterSecret") ? "\"$appCenterSecret\"" : ""
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation 'com.android.support:appcompat-v7:28.0.0'
|
|
implementation 'com.android.support:design:28.0.0'
|
|
implementation 'com.android.support:exifinterface:28.0.0'
|
|
implementation 'com.android.support:recyclerview-v7:28.0.0'
|
|
implementation 'com.android.support:support-v4:28.0.0'
|
|
implementation 'com.android.support:cardview-v7:28.0.0'
|
|
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
|
|
implementation project(':OfficeUIFabric')
|
|
implementation 'com.squareup.picasso:picasso:2.71828'
|
|
implementation 'com.github.bumptech.glide:glide:4.8.0'
|
|
implementation 'com.jakewharton.threetenabp:threetenabp:1.1.0'
|
|
// App Center
|
|
def appCenterSdkVersion = '1.8.0'
|
|
dogfoodImplementation "com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}"
|
|
dogfoodImplementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"
|
|
dogfoodImplementation "com.microsoft.appcenter:appcenter-distribute:${appCenterSdkVersion}"
|
|
}
|