-
Notifications
You must be signed in to change notification settings - Fork 99
/
build.gradle
81 lines (73 loc) · 2.66 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
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply from: '../config.gradle'
apply from: '../publish.gradle'
android {
compileSdkVersion constants.compileSdkVersion
defaultConfig {
minSdkVersion constants.minSdkVersion
targetSdkVersion constants.targetSdkVersion
versionCode project.ext.FluentUI_version_code
versionName project.ext.FluentUI_versionid
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
consumerProguardFiles 'consumer-rules.pro'
// 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-optimize.txt'), 'proguard-rules.pro'
}
}
buildscript {
repositories {
mavenCentral()
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
api project(':fluentui_calendar')
api project(':fluentui_ccb')
api project(':fluentui_controls')
api project(':fluentui_core')
api project(':fluentui_drawer')
api project(':fluentui_icons')
api project(':fluentui_listitem')
api project(':fluentui_menus')
api project(':fluentui_notification')
api project(':fluentui_others')
api project(':fluentui_peoplepicker')
api project(':fluentui_persona')
api project(':fluentui_progress')
api project(':fluentui_tablayout')
api project(':fluentui_topappbars')
api project(':fluentui_transients')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.appcompat:appcompat:$appCompatVersion"
implementation "com.google.android.material:material:$materialVersion"
testImplementation "junit:junit:$junitVersion"
androidTestImplementation "androidx.test.ext:junit:$extJunitVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
//Compose BOM
implementation platform("androidx.compose:compose-bom:$composeBomVersion")
}
task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier "sources"
}
project.afterEvaluate {
project.ext.publishingFunc('FluentUIAndroid')
}