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'
|
|
|
|
|
|
|
|
android {
|
2023-10-23 08:11:58 +03:00
|
|
|
compileSdkVersion constants.compileSdkVersion
|
2020-04-20 12:43:04 +03:00
|
|
|
defaultConfig {
|
|
|
|
applicationId 'com.microsoft.fluentuidemo'
|
|
|
|
minSdkVersion 21
|
2024-08-22 08:35:47 +03:00
|
|
|
targetSdkVersion 34
|
2024-11-19 09:07:33 +03:00
|
|
|
versionCode 2003
|
|
|
|
versionName '0.3.3'
|
2022-06-15 11:36:42 +03:00
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
2020-04-20 12:43:04 +03:00
|
|
|
}
|
2022-06-07 13:50:08 +03:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = '1.8'
|
|
|
|
}
|
|
|
|
buildFeatures {
|
2023-04-13 15:38:31 +03:00
|
|
|
viewBinding true
|
2022-06-07 13:50:08 +03:00
|
|
|
compose true
|
|
|
|
}
|
|
|
|
composeOptions {
|
2023-09-05 13:05:10 +03:00
|
|
|
kotlinCompilerExtensionVersion composeCompilerVersion
|
2022-06-07 13:50:08 +03:00
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2023-09-05 13:05:10 +03:00
|
|
|
lintOptions {
|
|
|
|
lintConfig = file("lint.xml")
|
2024-10-15 16:46:45 +03:00
|
|
|
abortOnError false
|
2023-09-05 13:05:10 +03:00
|
|
|
}
|
2020-04-20 12:43:04 +03:00
|
|
|
buildTypes {
|
|
|
|
release {
|
2022-09-26 09:16:41 +03:00
|
|
|
minifyEnabled false
|
2020-04-20 12:43:04 +03:00
|
|
|
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
|
2022-06-27 10:40:35 +03:00
|
|
|
buildConfigField "String", "APP_CENTER_SECRET", project.hasProperty("appCenterSecret") ? "\"$appCenterSecret\"" : "\"\""
|
2020-04-20 12:43:04 +03:00
|
|
|
}
|
|
|
|
}
|
2022-07-04 15:20:57 +03:00
|
|
|
testOptions {
|
2022-07-29 10:00:14 +03:00
|
|
|
unitTests{
|
2022-07-04 15:20:57 +03:00
|
|
|
includeAndroidResources = true
|
|
|
|
}
|
2022-07-29 10:00:14 +03:00
|
|
|
unitTests.all {
|
|
|
|
testLogging {
|
|
|
|
events "passed", "failed", "standardError"
|
|
|
|
showCauses true
|
|
|
|
showExceptions true
|
|
|
|
showStackTraces true
|
|
|
|
}
|
|
|
|
}
|
2022-07-04 15:20:57 +03:00
|
|
|
}
|
2020-04-20 12:43:04 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
2023-09-05 13:05:10 +03:00
|
|
|
implementation project(':FluentUI')
|
|
|
|
|
2020-04-20 12:43:04 +03:00
|
|
|
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"
|
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
|
|
|
|
2023-09-05 13:05:10 +03:00
|
|
|
//Compose BOM
|
|
|
|
implementation platform("androidx.compose:compose-bom:$composeBomVersion")
|
|
|
|
implementation "androidx.compose.ui:ui"
|
|
|
|
implementation ("androidx.compose.foundation:foundation-layout")
|
|
|
|
implementation ("androidx.compose.material:material")
|
2023-07-21 15:20:27 +03:00
|
|
|
implementation ("androidx.activity:activity-compose:$composeActivityVersion")
|
2023-09-05 13:05:10 +03:00
|
|
|
implementation "androidx.test.ext:junit-ktx:$junitKtxVersion"
|
|
|
|
implementation "androidx.test.uiautomator:uiautomator:$uiautomatorVersion"
|
|
|
|
androidTestImplementation("androidx.compose.ui:ui-test-junit4:$composeTestVersion")
|
|
|
|
debugImplementation("androidx.compose.ui:ui-test-manifest")
|
|
|
|
debugImplementation "androidx.test:monitor:$androidTestMonitor"
|
|
|
|
implementation "androidx.compose.runtime:runtime-livedata"
|
2022-06-07 13:50:08 +03:00
|
|
|
|
2020-04-20 12:43:04 +03:00
|
|
|
// App Center
|
2023-09-05 13:05:10 +03:00
|
|
|
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}"
|
2022-06-15 08:32:18 +03:00
|
|
|
testImplementation "org.mockito:mockito-core:${mockitoVersion}"
|
2022-06-15 11:36:42 +03:00
|
|
|
|
|
|
|
//Espresso
|
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-core:${espressoVersion}"
|
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-contrib:${espressoVersion}"
|
2022-06-15 14:33:53 +03:00
|
|
|
androidTestImplementation "androidx.test.espresso:espresso-intents:${espressoVersion}"
|
2022-06-15 11:36:42 +03:00
|
|
|
androidTestImplementation "androidx.test:runner:${androidxRunner}"
|
|
|
|
androidTestImplementation "androidx.test:rules:${androidxRunner}"
|
2023-09-05 13:05:10 +03:00
|
|
|
androidTestImplementation "org.hamcrest:hamcrest:$hamcrestVersion"
|
2022-06-17 16:01:03 +03:00
|
|
|
|
2023-07-21 15:20:27 +03:00
|
|
|
implementation 'com.microsoft.design:fluent-system-icons:1.1.203@aar'
|
|
|
|
|
2022-06-17 16:01:03 +03:00
|
|
|
//Robolectric
|
|
|
|
testImplementation "org.robolectric:robolectric:${robolectric}"
|
2022-07-29 10:00:14 +03:00
|
|
|
}
|