You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
3.4 KiB
106 lines
3.4 KiB
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id "kotlin-kapt"
|
|
id "dagger.hilt.android.plugin"
|
|
}
|
|
|
|
def keystorePropertiesFile = rootProject.file("app/keys/keystore.properties")
|
|
def keystoreProperties = new Properties()
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
android {
|
|
signingConfigs {
|
|
release {
|
|
storeFile file(keystoreProperties['store'])
|
|
storePassword keystoreProperties['password']
|
|
keyPassword keystoreProperties['password']
|
|
}
|
|
}
|
|
namespace 'fr.iut.alldev.allin'
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
applicationId "fr.iut.alldev.allin"
|
|
minSdk 26
|
|
targetSdk 34
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "fr.iut.alldev.allin.TestRunner"
|
|
vectorDrawables {
|
|
useSupportLibrary true
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
|
|
debug {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion '1.2.0'
|
|
}
|
|
packagingOptions {
|
|
resources {
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(path: ':data')
|
|
|
|
implementation 'androidx.core:core-ktx:1.12.0'
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2'
|
|
implementation 'androidx.activity:activity-compose:1.7.2'
|
|
implementation "androidx.compose.ui:ui:$compose_version"
|
|
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
|
|
implementation 'androidx.compose.material3:material3:1.2.0-alpha08'
|
|
implementation "androidx.compose.material:material:1.5.3"
|
|
implementation "androidx.navigation:navigation-compose:2.7.3"
|
|
implementation 'androidx.compose.material:material-icons-core'
|
|
implementation 'androidx.compose.material:material-icons-extended'
|
|
|
|
//Tests
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
|
|
androidTestImplementation "com.google.dagger:hilt-android-testing:$hilt_version"
|
|
kaptAndroidTest "com.google.dagger:hilt-android-compiler:$hilt_version"
|
|
|
|
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
|
|
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
|
|
implementation("androidx.core:core-splashscreen:1.0.1")
|
|
|
|
//Hilt
|
|
implementation "com.google.dagger:hilt-android:$hilt_version"
|
|
kapt "com.google.dagger:hilt-android-compiler:$hilt_version"
|
|
implementation "androidx.hilt:hilt-navigation-compose:1.0.0"
|
|
|
|
// Smooth Corners
|
|
implementation 'com.github.racra:smooth-corner-rect-android-compose:v1.0.0'
|
|
|
|
//Timber
|
|
implementation 'com.jakewharton.timber:timber:5.0.1'
|
|
}
|