forked from microsoft/fluentui-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
113 lines (98 loc) · 3.75 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'
apply from: '../config.gradle'
apply from: '../publish.gradle'
android {
compileSdkVersion constants.compileSdkVersion
defaultConfig {
minSdkVersion constants.minSdkVersion
targetSdkVersion constants.targetSdkVersion
versionCode project.ext.fluentui_core_version_code
versionName project.ext.fluentui_core_versionid
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
vectorDrawables.useSupportLibrary = true
// Forcing emoji2 version as a workaround for not moving to Android 34 during BOM update.
// https://issuetracker.google.com/issues/295457468
// Remove once we plan to move to Android 34
configurations.all {
resolutionStrategy {
force("androidx.emoji2:emoji2-views-helper:1.3.0")
force("androidx.emoji2:emoji2:1.3.0")
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion composeCompilerVersion
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
productFlavors {
}
}
gradle.taskGraph.whenReady { taskGraph ->
taskGraph.allTasks.forEach {
if (it.name.contains("ReleaseUnitTest")) {
it.enabled = false
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation project(':fluentui_icons')
implementation "androidx.appcompat:appcompat:$appCompatVersion"
implementation "androidx.exifinterface:exifinterface:$exifInterfaceVersion"
implementation "androidx.recyclerview:recyclerview:$recyclerViewVersion"
implementation "androidx.cardview:cardview:1.0.0"
implementation "com.google.android.material:material:$materialVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "com.microsoft.device:dualscreen-layout:$duoVersion"
implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
implementation "androidx.compose.material:material"
testImplementation "junit:junit:$junitVersion"
testImplementation "org.robolectric:robolectric:$robolectric"
androidTestImplementation "androidx.test.ext:junit:$extJunitVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
//Compose BOM
implementation platform("androidx.compose:compose-bom:$composeBomVersion")
implementation "androidx.compose.ui:ui-text"
implementation "androidx.compose.ui:ui-graphics"
implementation "androidx.compose.ui:ui-unit"
implementation "androidx.compose.ui:ui-util"
implementation "androidx.compose.runtime:runtime"
implementation "androidx.compose.foundation:foundation"
implementation "androidx.compose.material:material-icons-core"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata-core-ktx:$lifecycleVersion"
implementation "androidx.compose.runtime:runtime-livedata"
}
task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier "sources"
}
project.afterEvaluate {
project.ext.publishingFunc('fluentui_core')
}