sample/build.gradle.kts
changeset 15 4e26459b4642
child 18 ac393491d2eb
equal deleted inserted replaced
14:bb30a0b89177 15:4e26459b4642
       
     1 /*
       
     2  * AboutOss is an utility library to retrieve and display
       
     3  * opensource licenses in Android applications.
       
     4  *
       
     5  * Copyright (C) 2023 by Frederic-Charles Barthelery.
       
     6  *
       
     7  * This file is part of AboutOss.
       
     8  *
       
     9  * AboutOss is free software: you can redistribute it and/or modify
       
    10  * it under the terms of the GNU General Public License as published by
       
    11  * the Free Software Foundation, either version 3 of the License, or
       
    12  * (at your option) any later version.
       
    13  *
       
    14  * AboutOss is distributed in the hope that it will be useful,
       
    15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    17  * GNU General Public License for more details.
       
    18  *
       
    19  * You should have received a copy of the GNU General Public License
       
    20  * along with AboutOss.  If not, see <http://www.gnu.org/licenses/>.
       
    21  */
       
    22 @Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
       
    23 plugins {
       
    24     id("com.android.application")
       
    25     id("org.jetbrains.kotlin.android")
       
    26     id("com.geekorum.build.source-license-checker")
       
    27 }
       
    28 
       
    29 android {
       
    30     namespace = "com.geekorum.aboutoss.sampleapp"
       
    31     compileSdk = 33
       
    32 
       
    33     defaultConfig {
       
    34         applicationId = "com.geekorum.aboutoss.sampleapp"
       
    35         minSdk = 24
       
    36         targetSdk = 33
       
    37         versionCode = 1
       
    38         versionName = "1.0"
       
    39 
       
    40         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
       
    41         vectorDrawables {
       
    42             useSupportLibrary = true
       
    43         }
       
    44     }
       
    45 
       
    46     buildTypes {
       
    47         release {
       
    48             isMinifyEnabled = false
       
    49             proguardFiles(
       
    50                 getDefaultProguardFile("proguard-android-optimize.txt"),
       
    51                 "proguard-rules.pro"
       
    52             )
       
    53         }
       
    54     }
       
    55     compileOptions {
       
    56         sourceCompatibility = JavaVersion.VERSION_1_8
       
    57         targetCompatibility = JavaVersion.VERSION_1_8
       
    58     }
       
    59     kotlinOptions {
       
    60         jvmTarget = "1.8"
       
    61     }
       
    62     buildFeatures {
       
    63         compose = true
       
    64     }
       
    65     composeOptions {
       
    66         kotlinCompilerExtensionVersion = libs.versions.androidx.compose.compiler.get()
       
    67     }
       
    68     packaging {
       
    69         resources {
       
    70             excludes += "/META-INF/{AL2.0,LGPL2.1}"
       
    71         }
       
    72     }
       
    73 }
       
    74 
       
    75 dependencies {
       
    76     implementation(project(":ui:material2"))
       
    77     implementation(project(":ui:material3"))
       
    78 
       
    79     implementation(libs.androidx.activity.compose)
       
    80     implementation(platform(libs.androidx.compose.bom))
       
    81     implementation(libs.androidx.compose.ui)
       
    82     implementation(libs.androidx.compose.ui.graphics)
       
    83     implementation(libs.androidx.compose.ui.tooling.preview)
       
    84     implementation(libs.androidx.compose.material3)
       
    85     testImplementation(libs.junit)
       
    86     androidTestImplementation(libs.androidx.test.ext.junit)
       
    87     androidTestImplementation(libs.espresso.core)
       
    88     androidTestImplementation(platform(libs.androidx.compose.bom))
       
    89     androidTestImplementation(libs.androidx.compose.ui.test.junit4)
       
    90     debugImplementation(libs.androidx.compose.ui.tooling)
       
    91     debugImplementation(libs.androidx.compose.ui.test.manifest)
       
    92 }