Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.79 KB | None | 0 0
  1. plugins {
  2.     id 'org.jetbrains.kotlin.multiplatform' version '1.3.61'
  3.     id "org.jetbrains.kotlin.plugin.serialization" version "1.3.61"
  4.     id 'maven-publish'
  5. }
  6.  
  7. repositories {
  8.     mavenCentral()
  9.     jcenter()
  10. }
  11.  
  12. group 'com.example'
  13. version '0.0.2'
  14.  
  15. kotlin {
  16.     iosArm64()
  17.     iosArm32()
  18.  
  19.     androidNativeArm64 { // Use your target instead.
  20.         binaries {
  21.             sharedLib {
  22.                 baseName = "AndroidNative"
  23.             }
  24.         }
  25.     }
  26.  
  27.     androidNativeArm32 {
  28.         binaries {
  29.             sharedLib {
  30.                 baseName = "AndroidNative"
  31.             }
  32.         }
  33.     }
  34.  
  35.     sourceSets {
  36.  
  37.         androidNativeArm64Main {
  38.             dependencies {
  39.                 implementation kotlin('stdlib')
  40.                 implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:0.14.0"
  41.             }
  42.         }
  43.  
  44.         androidNativeArm32Main {
  45.             dependencies {
  46.                 implementation kotlin('stdlib')
  47.                 implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:0.14.0"
  48.             }
  49.         }
  50.  
  51.         iosArm32Main {
  52.             dependencies {
  53.                 implementation kotlin('stdlib')
  54.             }
  55.         }
  56.  
  57.         iosArm64Main {
  58.             dependencies {
  59.                 implementation kotlin('stdlib')
  60.             }
  61.         }
  62.  
  63.         commonMain {
  64.             dependencies {
  65.                 implementation kotlin('stdlib-common')
  66.                 implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:0.14.0"
  67.             }
  68.         }
  69.         commonTest {
  70.             dependencies {
  71.                 implementation kotlin('test-common')
  72.                 implementation kotlin('test-annotations-common')
  73.             }
  74.         }
  75.     }
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement