Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins {
- id 'org.jetbrains.kotlin.multiplatform' version '1.3.61'
- id 'org.jetbrains.kotlin.plugin.serialization' version '1.3.61'
- }
- repositories {
- google()
- jcenter()
- maven { url "https://kotlin.bintray.com/kotlinx" }
- maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
- maven { url "https://dl.bintray.com/badoo/maven" }
- maven { url "https://dl.bintray.com/icerockdev/moko" }
- mavenCentral()
- }
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android-extensions'
- android {
- compileSdkVersion 29
- defaultConfig {
- applicationId 'xx.xxx'
- minSdkVersion 23
- targetSdkVersion 29
- versionCode 1
- versionName '1.0'
- vectorDrawables.useSupportLibrary = true
- multiDexEnabled true
- }
- buildFeatures {
- compose true
- }
- composeOptions {
- kotlinCompilerVersion "1.3.61-dev-withExperimentalGoogleExtensions-20200129"
- kotlinCompilerExtensionVersion "0.1.0-dev07"
- }
- buildTypes {
- debug {
- minifyEnabled false
- }
- release {
- minifyEnabled false
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- packagingOptions {
- pickFirst("META-INF/*.kotlin_module")
- }
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- }
- configurations {
- compileClasspath
- }
- kotlin {
- targets {
- android("android")
- final def iOSTarget = System.getenv('SDK_NAME')?.startsWith("iphoneos") \
- ? presets.iosArm64 : presets.iosX64
- fromPreset(iOSTarget, 'ios') {
- binaries {
- framework("XXX")
- }
- }
- }
- sourceSets {
- commonMain {
- dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-common:$kotlinVersion"
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
- implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$serializationVersion"
- implementation "com.soywiz.korlibs.klock:klock:$klockVersion"
- implementation "io.ktor:ktor-client-core:$ktorVersion"
- implementation "io.ktor:ktor-client-serialization:$ktorVersion"
- implementation "io.ktor:ktor-client-json:$ktorVersion"
- implementation "io.ktor:ktor-client-logging:$ktorVersion"
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
- }
- }
- androidMain {
- dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
- implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
- implementation "androidx.multidex:multidex:$multidexVersion"
- implementation "androidx.ui:ui-core:$jetpackComposeVersion"
- implementation "androidx.ui:ui-framework:$jetpackComposeVersion"
- implementation "androidx.ui:ui-layout:$jetpackComposeVersion"
- implementation "androidx.ui:ui-material:$jetpackComposeVersion"
- implementation "androidx.ui:ui-tooling:$jetpackComposeVersion"
- implementation "androidx.ui:ui-graphics:$jetpackComposeVersion"
- implementation "androidx.compose:compose-compiler:$jetpackComposeVersion"
- implementation "androidx.compose:compose-runtime:$jetpackComposeVersion"
- implementation 'com.google.android.material:material:1.1.0'
- implementation 'androidx.appcompat:appcompat:1.1.0'
- implementation 'androidx.core:core-ktx:1.2.0'
- implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
- implementation "androidx.constraintlayout:constraintlayout-solver:2.0.0-beta4"
- implementation 'androidx.navigation:navigation-fragment:2.2.1'
- implementation 'androidx.navigation:navigation-fragment-ktx:2.2.1'
- implementation 'androidx.navigation:navigation-ui:2.2.1'
- implementation 'androidx.navigation:navigation-ui-ktx:2.2.1'
- implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
- implementation "io.ktor:ktor-client-okhttp:$ktorVersion"
- implementation "io.ktor:ktor-client-json-jvm:$ktorVersion"
- implementation "io.ktor:ktor-client-serialization-jvm:$ktorVersion"
- implementation "io.ktor:ktor-client-logging-jvm:$ktorVersion"
- }
- }
- iosMain {
- dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
- implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:$serializationVersion"
- implementation "io.ktor:ktor-client-ios:$ktorVersion"
- implementation "io.ktor:ktor-client-json-native:$ktorVersion"
- implementation "io.ktor:ktor-client-serialization-native:$ktorVersion"
- implementation "io.ktor:ktor-client-logging-native:$ktorVersion"
- }
- }
- }
- }
- }
- tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
- kotlinOptions {
- jvmTarget = "1.8"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement