ui/material2/build.gradle.kts
changeset 38 764faee147cc
parent 34 ce299aacc068
child 39 b14d574cc2b1
equal deleted inserted replaced
37:ff77c11da594 38:764faee147cc
    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 plugins {
    24 plugins {
    23     id("com.android.library")
    25     id("com.android.library")
    24     kotlin("android")
    26     kotlin("multiplatform")
    25     alias(libs.plugins.org.jetbrains.kotlin.compose.compiler)
    27     alias(libs.plugins.org.jetbrains.kotlin.compose.compiler)
       
    28     alias(libs.plugins.org.jetbrains.compose.multiplatform)
    26     id("com.geekorum.build.source-license-checker")
    29     id("com.geekorum.build.source-license-checker")
    27     `maven-publish`
    30     `maven-publish`
    28 }
    31 }
    29 
    32 
    30 group = "com.geekorum.aboutoss"
    33 group = "com.geekorum.aboutoss"
    31 version = "0.1.0"
    34 version = "0.1.0"
       
    35 
       
    36 kotlin {
       
    37     androidTarget {
       
    38         compilerOptions {
       
    39             jvmTarget.set(JvmTarget.JVM_17)
       
    40         }
       
    41     }
       
    42 
       
    43     jvm("desktop")
       
    44 
       
    45     listOf(
       
    46         iosX64(),
       
    47         iosArm64(),
       
    48         iosSimulatorArm64(),
       
    49     ).forEach { iosTarget ->
       
    50         iosTarget.binaries.framework {
       
    51             baseName = "aboutoss-core"
       
    52             isStatic = true
       
    53         }
       
    54     }
       
    55 
       
    56     sourceSets {
       
    57         commonMain.dependencies {
       
    58             api(project(":ui:common"))
       
    59             implementation(project(":core"))
       
    60             implementation(compose.material)
       
    61             implementation(compose.components.resources)
       
    62         }
       
    63 
       
    64         androidMain.dependencies {
       
    65             api(libs.androidx.activity)
       
    66         }
       
    67     }
       
    68 }
       
    69 
    32 
    70 
    33 android {
    71 android {
    34     namespace = "com.geekorum.aboutoss.ui.material"
    72     namespace = "com.geekorum.aboutoss.ui.material"
    35     compileSdk = 35
    73     compileSdk = 35
    36 
    74 
    53                 "proguard-rules.pro"
    91                 "proguard-rules.pro"
    54             )
    92             )
    55         }
    93         }
    56     }
    94     }
    57     compileOptions {
    95     compileOptions {
    58         sourceCompatibility = JavaVersion.VERSION_1_8
    96         sourceCompatibility = JavaVersion.VERSION_17
    59         targetCompatibility = JavaVersion.VERSION_1_8
    97         targetCompatibility = JavaVersion.VERSION_17
    60     }
       
    61     kotlinOptions {
       
    62         jvmTarget = "1.8"
       
    63     }
    98     }
    64 
    99 
    65     buildFeatures {
   100     buildFeatures {
    66         compose = true
   101         compose = true
    67     }
   102     }
    73         }
   108         }
    74     }
   109     }
    75 }
   110 }
    76 
   111 
    77 dependencies {
   112 dependencies {
    78     api(project(":ui:common"))
       
    79     implementation(platform(libs.androidx.compose.bom))
   113     implementation(platform(libs.androidx.compose.bom))
    80     implementation(libs.androidx.compose.material)
       
    81     implementation(libs.androidx.compose.material.icons.core)
       
    82     implementation(libs.androidx.activity.compose)
   114     implementation(libs.androidx.activity.compose)
    83     implementation(libs.androidx.navigation.compose)
   115     implementation(libs.androidx.navigation.compose)
    84 
   116 
    85     testImplementation(libs.junit)
   117     testImplementation(libs.junit)
    86     androidTestImplementation(libs.androidx.test.ext.junit)
   118     androidTestImplementation(libs.androidx.test.ext.junit)