ui/common/build.gradle.kts
changeset 86 ed5dfac18c84
parent 74 57d9068de0ef
child 106 e121390a16d3
equal deleted inserted replaced
85:0c23a1d2e16a 86:ed5dfac18c84
    17  * GNU General Public License for more details.
    17  * GNU General Public License for more details.
    18  *
    18  *
    19  * You should have received a copy of the GNU General Public License
    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/>.
    20  * along with AboutOss.  If not, see <http://www.gnu.org/licenses/>.
    21  */
    21  */
    22 import org.jetbrains.kotlin.gradle.dsl.JvmTarget
       
    23 
    22 
    24 plugins {
    23 plugins {
    25     id("com.android.library")
    24     id("com.geekorum.build.conventions.mpp-library-with-android")
    26     kotlin("multiplatform")
       
    27     id("com.geekorum.build.source-license-checker")
       
    28     alias(libs.plugins.jetbrains.compose.multiplatform)
    25     alias(libs.plugins.jetbrains.compose.multiplatform)
    29     alias(libs.plugins.kotlin.compose)
    26     alias(libs.plugins.kotlin.compose)
    30     id("com.geekorum.build.maven-publish")
    27     id("com.geekorum.build.maven-publish")
    31     id("com.geekorum.build.dokka")
    28     id("com.geekorum.build.dokka")
    32 }
    29 }
    33 
    30 
    34 group = "com.geekorum.aboutoss"
       
    35 version = "0.1.0"
       
    36 
       
    37 kotlin {
    31 kotlin {
    38     androidTarget {
    32     androidTarget()
    39         compilerOptions {
       
    40             jvmTarget.set(JvmTarget.JVM_17)
       
    41         }
       
    42     }
       
    43 
    33 
    44     jvm("desktop")
    34     jvm("desktop")
    45 
    35 
    46     listOf(
    36     listOf(
    47         iosX64(),
    37         iosX64(),
    74     publicResClass = true
    64     publicResClass = true
    75 }
    65 }
    76 
    66 
    77 android {
    67 android {
    78     namespace = "com.geekorum.aboutoss.ui.common"
    68     namespace = "com.geekorum.aboutoss.ui.common"
    79     compileSdk = 35
       
    80 
    69 
    81     defaultConfig {
    70     defaultConfig {
    82         minSdk = 24
       
    83 
       
    84         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    71         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    85         consumerProguardFiles("consumer-rules.pro")
    72         consumerProguardFiles("consumer-rules.pro")
    86 
       
    87         aarMetadata {
       
    88             minCompileSdk = 24
       
    89         }
       
    90 
       
    91     }
    73     }
    92 
    74 
    93     buildTypes {
    75     buildTypes {
    94         release {
    76         release {
    95             isMinifyEnabled = false
    77             isMinifyEnabled = false
    96             proguardFiles(
    78             proguardFiles(
    97                 getDefaultProguardFile("proguard-android-optimize.txt"),
    79                 getDefaultProguardFile("proguard-android-optimize.txt"),
    98                 "proguard-rules.pro"
    80                 "proguard-rules.pro"
    99             )
    81             )
   100         }
    82         }
   101     }
       
   102     compileOptions {
       
   103         sourceCompatibility = JavaVersion.VERSION_17
       
   104         targetCompatibility = JavaVersion.VERSION_17
       
   105     }
    83     }
   106 
    84 
   107     publishing {
    85     publishing {
   108         singleVariant("release") {
    86         singleVariant("release") {
   109             withJavadocJar()
    87             withJavadocJar()