ui/material3/build.gradle.kts
changeset 42 d59fc19f19fa
parent 34 ce299aacc068
child 53 90083049bcb8
equal deleted inserted replaced
41:59b612ba3644 42:d59fc19f19fa
    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-ui-material3"
       
    52             isStatic = true
       
    53         }
       
    54     }
       
    55 
       
    56     sourceSets {
       
    57         commonMain.dependencies {
       
    58             api(project(":ui:common"))
       
    59             implementation(project(":core"))
       
    60             implementation(compose.material3)
       
    61             implementation(compose.components.resources)
       
    62             implementation(libs.org.jetbrains.androidx.navigation.compose)
       
    63         }
       
    64 
       
    65         androidMain.dependencies {
       
    66             api(libs.androidx.activity)
       
    67             implementation(dependencies.platform(libs.androidx.compose.bom))
       
    68             implementation(libs.androidx.activity.compose)
       
    69         }
       
    70     }
       
    71 }
       
    72 
    32 
    73 
    33 android {
    74 android {
    34     namespace = "com.geekorum.aboutoss.ui.material3"
    75     namespace = "com.geekorum.aboutoss.ui.material3"
    35     compileSdk = 35
    76     compileSdk = 35
    36 
    77 
    53                 "proguard-rules.pro"
    94                 "proguard-rules.pro"
    54             )
    95             )
    55         }
    96         }
    56     }
    97     }
    57     compileOptions {
    98     compileOptions {
    58         sourceCompatibility = JavaVersion.VERSION_1_8
    99         sourceCompatibility = JavaVersion.VERSION_17
    59         targetCompatibility = JavaVersion.VERSION_1_8
   100         targetCompatibility = JavaVersion.VERSION_17
    60     }
       
    61     kotlinOptions {
       
    62         jvmTarget = "1.8"
       
    63     }
   101     }
    64 
   102 
    65     buildFeatures {
   103     buildFeatures {
    66         compose = true
   104         compose = true
    67     }
   105     }
    73         }
   111         }
    74     }
   112     }
    75 }
   113 }
    76 
   114 
    77 dependencies {
   115 dependencies {
    78     api(project(":ui:common"))
       
    79     implementation(platform(libs.androidx.compose.bom))
       
    80     implementation(libs.androidx.compose.material3)
       
    81     implementation(libs.androidx.activity.compose)
       
    82     implementation(libs.androidx.navigation.compose)
       
    83 
       
    84     testImplementation(libs.junit)
   116     testImplementation(libs.junit)
    85     androidTestImplementation(libs.androidx.test.ext.junit)
   117     androidTestImplementation(libs.androidx.test.ext.junit)
    86     androidTestImplementation(libs.espresso.core)
   118     androidTestImplementation(libs.espresso.core)
    87 }
   119 }
    88 
   120