Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 18 additions & 17 deletions FluentUI.Demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/

apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'
plugins {
id 'com.android.application'
id 'kotlin-android'
}

android {
compileSdkVersion constants.compileSdkVersion
Expand All @@ -17,9 +17,6 @@ android {
versionName '0.3.9'
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
viewBinding true
compose true
Expand All @@ -28,12 +25,8 @@ android {
kotlinCompilerExtensionVersion composeCompilerVersion
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
lintConfig = file("lint.xml")
abortOnError false
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
buildTypes {
release {
Expand Down Expand Up @@ -62,7 +55,7 @@ android {
}
}
testOptions {
unitTests{
unitTests {
includeAndroidResources = true
}
unitTests.all {
Expand All @@ -74,6 +67,14 @@ android {
}
}
}
namespace 'com.microsoft.fluentuidemo'
lint {
abortOnError false
}
}

kotlin {
jvmToolchain(17)
}

dependencies {
Expand All @@ -94,9 +95,9 @@ dependencies {
//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")
implementation ("androidx.activity:activity-compose:$composeActivityVersion")
implementation("androidx.compose.foundation:foundation-layout")
implementation("androidx.compose.material:material")
implementation("androidx.activity:activity-compose:$composeActivityVersion")
implementation "androidx.test.ext:junit-ktx:$junitKtxVersion"
implementation "androidx.test.uiautomator:uiautomator:$uiautomatorVersion"
androidTestImplementation("androidx.compose.ui:ui-test-junit4:$composeTestVersion")
Expand Down
3 changes: 1 addition & 2 deletions FluentUI.Demo/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.microsoft.fluentuidemo">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET"/>

Expand Down
23 changes: 15 additions & 8 deletions FluentUI/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
plugins {
id 'com.android.library'
id 'kotlin-android'
}

apply from: '../config.gradle'
apply from: '../publish.gradle'
Expand All @@ -13,8 +15,6 @@ android {
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'

Expand All @@ -30,12 +30,19 @@ android {
mavenCentral()
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
lint {
baseline = file("lint-baseline.xml")
}
lintOptions {
abortOnError false
}
namespace 'com.microsoft.fluentui_container'
}

kotlin {
jvmToolchain(17)
}

dependencies {
Expand Down Expand Up @@ -67,9 +74,9 @@ dependencies {
implementation platform("androidx.compose:compose-bom:$composeBomVersion")
}

task sourceJar(type: Jar) {
tasks.register('sourceJar', Jar) {
from android.sourceSets.main.java.srcDirs
classifier "sources"
archiveClassifier.set("sources")
}

project.afterEvaluate {
Expand Down
3 changes: 1 addition & 2 deletions FluentUI/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
~ Licensed under the MIT License.
-->
<!-- TODO Change package name to com.microsoft.fluentui once modularization is complete -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.microsoft.fluentui_container" />
<manifest xmlns:android="http://schemas.android.com/apk/res/android" />
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.android.tools.build:gradle:8.11.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:$nexus_plugin_version"
classpath "com.microsoft.hydralab:gradle_plugin:$hydra_client_plugin"
Expand Down
28 changes: 18 additions & 10 deletions fluentui_calendar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
plugins {
id 'com.android.library'
id 'kotlin-android'
}

apply from: '../config.gradle'
apply from: '../publish.gradle'
Expand All @@ -14,30 +15,37 @@ android {
defaultConfig {
minSdkVersion constants.minSdkVersion
targetSdkVersion constants.targetSdkVersion
versionCode project.ext.fluentui_calendar_version_code
versionName project.ext.fluentui_calendar_versionid
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
vectorDrawables.useSupportLibrary = true
}
buildFeatures {
viewBinding true
}
lintOptions {
abortOnError false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
productFlavors {
}
namespace 'com.microsoft.fluentui.calendar'
lint {
abortOnError false
}
}

kotlin {
jvmToolchain(17)
}

gradle.taskGraph.whenReady { taskGraph ->
Expand All @@ -62,9 +70,9 @@ dependencies {
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
}

task sourceJar(type: Jar) {
tasks.register('sourceJar', Jar) {
from android.sourceSets.main.java.srcDirs
classifier "sources"
archiveClassifier.set("sources")
}

project.afterEvaluate {
Expand Down
3 changes: 1 addition & 2 deletions fluentui_calendar/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.microsoft.fluentui.calendar">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
24 changes: 15 additions & 9 deletions fluentui_ccb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
plugins {
id 'com.android.library'
id 'kotlin-android'
}

apply from: '../config.gradle'
apply from: '../publish.gradle'
Expand All @@ -13,8 +15,6 @@ android {
defaultConfig {
minSdkVersion constants.minSdkVersion
targetSdkVersion constants.targetSdkVersion
versionCode project.ext.fluentui_ccb_version_code
versionName project.ext.fluentui_ccb_versionid
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
consumerProguardFiles 'consumer-rules.pro'
}
Expand All @@ -24,20 +24,26 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
kotlinOptions {
jvmTarget = '1.8'
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
composeOptions {
kotlinCompilerExtensionVersion composeCompilerVersion
}
buildFeatures {
compose true
}
lintOptions {
namespace 'com.microsoft.fluentui.ccb'
lint {
abortOnError false
}
}

kotlin {
jvmToolchain(17)
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':fluentui_core')
Expand All @@ -57,9 +63,9 @@ dependencies {
implementation("androidx.constraintlayout:constraintlayout-compose:$constraintLayoutComposeVersion")
}

task sourceJar(type: Jar) {
tasks.register('sourceJar', Jar) {
from android.sourceSets.main.java.srcDirs
classifier "sources"
archiveClassifier.set("sources")
}

project.afterEvaluate {
Expand Down
3 changes: 1 addition & 2 deletions fluentui_ccb/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.microsoft.fluentui.ccb" />
<manifest xmlns:android="http://schemas.android.com/apk/res/android" />
30 changes: 16 additions & 14 deletions fluentui_controls/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
plugins {
id 'com.android.library'
id 'kotlin-android'
}

apply from: '../config.gradle'
apply from: '../publish.gradle'
Expand All @@ -9,13 +11,8 @@ android {
defaultConfig {
minSdkVersion constants.minSdkVersion
targetSdkVersion constants.targetSdkVersion
versionCode project.ext.fluentui_controls_version_code
versionName project.ext.fluentui_controls_versionid
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
lintOptions {
abortOnError false
}
buildTypes {
release {
minifyEnabled false
Expand All @@ -29,19 +26,24 @@ android {
}
productFlavors {
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion composeCompilerVersion
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
namespace 'com.microsoft.fluentui.controls'
lint {
abortOnError false
}
}

kotlin {
jvmToolchain(17)
}

dependencies {
Expand All @@ -63,9 +65,9 @@ dependencies {
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
}

task sourceJar(type: Jar) {
tasks.register('sourceJar', Jar) {
from android.sourceSets.main.java.srcDirs
classifier "sources"
archiveClassifier.set("sources")
}

project.afterEvaluate {
Expand Down
3 changes: 1 addition & 2 deletions fluentui_controls/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
~ Licensed under the MIT License.
-->

<manifest
package="com.microsoft.fluentui.controls" />
<manifest />
Loading
Loading