2020-04-20 12:43:04 +03:00
|
|
|
/*
|
|
|
|
* 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 {
|
2022-06-07 13:50:08 +03:00
|
|
|
compileSdkVersion 31
|
2020-04-20 12:43:04 +03:00
|
|
|
defaultConfig {
|
|
|
|
applicationId 'com.microsoft.fluentuidemo'
|
|
|
|
minSdkVersion 21
|
2021-04-21 13:42:43 +03:00
|
|
|
targetSdkVersion 30
|
2022-06-16 12:56:10 +03:00
|
|
|
versionCode 35
|
|
|
|
versionName '0.1.0'
|
2020-04-20 12:43:04 +03:00
|
|
|
}
|
2022-06-07 13:50:08 +03:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = '1.8'
|
|
|
|
useIR = true
|
|
|
|
}
|
|
|
|
buildFeatures {
|
|
|
|
compose true
|
|
|
|
}
|
|
|
|
composeOptions {
|
|
|
|
kotlinCompilerExtensionVersion composeVersion
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
2020-04-20 12:43:04 +03:00
|
|
|
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"
|
2021-04-21 13:42:43 +03:00
|
|
|
implementation "androidx.appcompat:appcompat:$appCompatVersion"
|
|
|
|
implementation "com.google.android.material:material:$materialVersion"
|
|
|
|
implementation "androidx.exifinterface:exifinterface:$exifInterfaceVersion"
|
|
|
|
implementation "androidx.recyclerview:recyclerview:$recyclerViewVersion"
|
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
|
|
implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
|
2021-07-12 16:07:12 +03:00
|
|
|
implementation project(':FluentUI')
|
2020-04-20 12:43:04 +03:00
|
|
|
implementation 'com.squareup.picasso:picasso:2.71828'
|
|
|
|
implementation 'com.github.bumptech.glide:glide:4.8.0'
|
|
|
|
implementation 'com.jakewharton.threetenabp:threetenabp:1.1.0'
|
2022-06-07 13:50:08 +03:00
|
|
|
|
|
|
|
implementation "androidx.compose.ui:ui:$composeVersion"
|
|
|
|
implementation ("androidx.compose.foundation:foundation-layout:$composeVersion")
|
|
|
|
implementation ("androidx.compose.material:material:$composeVersion")
|
|
|
|
|
2020-04-20 12:43:04 +03:00
|
|
|
// 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}"
|
2022-06-14 09:45:51 +03:00
|
|
|
|
|
|
|
//JUnit4 framework
|
|
|
|
testImplementation "junit:junit:${junitVersion}"
|
2020-10-14 08:45:24 +03:00
|
|
|
}
|