/* * 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_tablayout_version_code versionName project.ext.fluentui_tablayout_versionid testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' consumerProguardFiles 'consumer-rules.pro' } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } kotlinOptions { jvmTarget = '1.8' } buildFeatures { compose true } composeOptions { kotlinCompilerExtensionVersion composeCompilerVersion } lintOptions { abortOnError false } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(':fluentui_core') implementation project(':fluentui_icons') implementation project(':fluentui_listitem') implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "androidx.appcompat:appcompat:$appCompatVersion" implementation "com.google.android.material:material:$materialVersion" implementation("androidx.compose.foundation:foundation") implementation("androidx.compose.material:material") implementation("androidx.compose.runtime:runtime") implementation("androidx.compose.ui:ui") testImplementation "junit:junit:$junitVersion" androidTestImplementation "androidx.test.ext:junit:$extJunitVersion" androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion" } task sourceJar(type: Jar) { from android.sourceSets.main.java.srcDirs classifier "sources" } project.afterEvaluate { project.ext.publishingFunc('fluentui_tablayout') }