2019-07-20 11:39:26 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2019 Ugljesa Jovanovic
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
object Versions {
|
2020-08-18 23:32:50 +02:00
|
|
|
val kotlinCoroutines = "1.3.9"
|
2020-10-04 20:07:18 +00:00
|
|
|
val kotlin = "1.4.10"
|
2020-08-18 23:32:50 +02:00
|
|
|
val kotlinSerialization = "1.0.0-RC"
|
2020-06-05 16:27:58 +02:00
|
|
|
val atomicfu = "0.14.3-M2-2-SNAPSHOT" //NOTE: my linux arm32 and arm64 build
|
2019-07-20 11:39:26 +02:00
|
|
|
val nodePlugin = "1.3.0"
|
2020-08-18 23:32:50 +02:00
|
|
|
val dokkaPlugin = "1.4.0-rc"
|
2020-06-01 15:16:47 +02:00
|
|
|
val taskTreePlugin = "1.5"
|
2019-07-20 11:39:26 +02:00
|
|
|
|
2020-07-27 20:41:25 +02:00
|
|
|
val kotlinBigNumVersion = "0.1.6-1.4.0-rc-SNAPSHOT"
|
2019-07-20 11:39:26 +02:00
|
|
|
|
2020-10-03 18:16:26 +02:00
|
|
|
val lazySodium = "4.3.1-SNAPSHOT"
|
2020-06-09 21:05:05 +02:00
|
|
|
val jna = "5.5.0"
|
|
|
|
|
2020-07-31 13:20:43 +02:00
|
|
|
val kotlinPoet = "1.6.0"
|
|
|
|
|
2020-10-17 11:41:38 +02:00
|
|
|
val sharedModule = "0.1.0-SNAPSHOT"
|
|
|
|
|
|
|
|
val ktor = "1.3.2"
|
|
|
|
|
|
|
|
val timber = "4.7.1"
|
|
|
|
|
|
|
|
|
2019-07-20 11:39:26 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-05-30 22:47:01 +02:00
|
|
|
object ReleaseInfo {
|
2020-05-30 00:33:31 +02:00
|
|
|
val group = "com.ionspin.kotlin"
|
2020-06-11 20:29:03 +02:00
|
|
|
val version = "0.1.0-SNAPSHOT"
|
2020-05-30 00:33:31 +02:00
|
|
|
}
|
|
|
|
|
2019-07-20 11:39:26 +02:00
|
|
|
object Deps {
|
|
|
|
|
|
|
|
object Common {
|
|
|
|
val stdLib = "stdlib-common"
|
|
|
|
val test = "test-common"
|
|
|
|
val testAnnotation = "test-annotations-common"
|
2020-07-27 20:41:25 +02:00
|
|
|
val coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:${Versions.kotlinCoroutines}"
|
2019-07-20 11:39:26 +02:00
|
|
|
val serialization = "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:${Versions.kotlinSerialization}"
|
2020-06-01 11:29:45 +02:00
|
|
|
val atomicfu = "com.ionspin.kotlin.atomicfu:atomicfu:${Versions.atomicfu}"
|
2019-12-26 15:05:15 +01:00
|
|
|
|
2019-07-20 11:39:26 +02:00
|
|
|
|
|
|
|
val kotlinBigNum = "com.ionspin.kotlin:bignum:${Versions.kotlinBigNumVersion}"
|
2020-05-24 10:29:30 +02:00
|
|
|
|
|
|
|
val apiProject = ":multiplatform-crypto-api"
|
2020-10-17 11:41:38 +02:00
|
|
|
|
|
|
|
val sharedModule = "com.ionspin.kotlin.crypto.sample:shared:${Versions.sharedModule}"
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
object Js {
|
|
|
|
val stdLib = "stdlib-js"
|
|
|
|
val test = "test-js"
|
2020-07-27 20:41:25 +02:00
|
|
|
val coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-core-js:${Versions.kotlinCoroutines}"
|
2019-07-20 11:39:26 +02:00
|
|
|
val serialization = "org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:${Versions.kotlinSerialization}"
|
2019-12-26 15:05:15 +01:00
|
|
|
|
2020-05-26 00:23:27 +02:00
|
|
|
object Npm {
|
2020-08-29 21:53:17 +02:00
|
|
|
val libsodium = Pair("libsodium-wrappers-sumo", "0.7.8")
|
|
|
|
//val libsodiumWrappers = Pair("libsodium-wrappers-sumo", "file:${getProjectPath()}/multiplatform-crypto-delegated/libsodium-wrappers-sumo-0.7.6.tgz")
|
|
|
|
val libsodiumWrappers = Pair("libsodium-wrappers-sumo", "0.7.8")
|
2020-05-26 00:23:27 +02:00
|
|
|
}
|
|
|
|
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
object Jvm {
|
|
|
|
val stdLib = "stdlib-jdk8"
|
|
|
|
val test = "test"
|
|
|
|
val testJUnit = "test-junit"
|
|
|
|
val reflection = "reflect"
|
2020-07-27 20:41:25 +02:00
|
|
|
val coroutinesCore = "org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.kotlinCoroutines}"
|
2019-07-20 11:39:26 +02:00
|
|
|
val coroutinesjdk8 = "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:${Versions.kotlinCoroutines}"
|
|
|
|
val serialization = "org.jetbrains.kotlinx:kotlinx-serialization-runtime:${Versions.kotlinSerialization}"
|
2020-07-27 20:41:25 +02:00
|
|
|
val coroutinesTest = "org.jetbrains.kotlinx:kotlinx-coroutines-test:${Versions.kotlinCoroutines}"
|
2020-06-09 21:05:05 +02:00
|
|
|
|
2020-07-31 13:20:43 +02:00
|
|
|
val kotlinPoet = "com.squareup:kotlinpoet:${Versions.kotlinPoet}"
|
|
|
|
|
2020-06-09 21:05:05 +02:00
|
|
|
object Delegated {
|
2020-10-03 18:16:26 +02:00
|
|
|
// Temporary until reported lazysodium issues are fixed. My snapshot build with
|
|
|
|
// And cause I registered com.ionspin.kotlin as maven central package root now I have to use
|
|
|
|
// that even though this is pure java library. :)
|
|
|
|
val lazysodium = "com.ionspin.kotlin:lazysodium-java:${Versions.lazySodium}"
|
2020-06-09 21:05:05 +02:00
|
|
|
val jna = "net.java.dev.jna:jna:${Versions.jna}"
|
|
|
|
}
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
object iOs {
|
|
|
|
val serialization = "org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:${Versions.kotlinSerialization}"
|
2020-07-27 20:41:25 +02:00
|
|
|
val coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-core-native:${Versions.kotlinCoroutines}"
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
object Native {
|
|
|
|
val serialization = "org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:${Versions.kotlinSerialization}"
|
2020-07-27 20:41:25 +02:00
|
|
|
val coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-core-native:${Versions.kotlinCoroutines}"
|
2019-07-20 11:39:26 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-10-17 11:41:38 +02:00
|
|
|
object Android {
|
|
|
|
val coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-android:${Versions.kotlinCoroutines}"
|
|
|
|
val ktorClientOkHttp = "io.ktor:ktor-client-okhttp:${Versions.ktor}"
|
|
|
|
val ktorClient = "io.ktor:ktor-client-android:${Versions.ktor}"
|
|
|
|
val ktorClientSerialization = "io.ktor:ktor-client-serialization-jvm:${Versions.ktor}"
|
|
|
|
val serialization = "org.jetbrains.kotlinx:kotlinx-serialization-runtime:${Versions.kotlinSerialization}"
|
|
|
|
val timber = "com.jakewharton.timber:timber:${Versions.timber}"
|
|
|
|
}
|
|
|
|
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
object PluginsDeps {
|
|
|
|
val kotlinSerializationPlugin = "kotlinx-serialization"
|
|
|
|
val multiplatform = "multiplatform"
|
|
|
|
val node = "com.github.node-gradle.node"
|
|
|
|
val mavenPublish = "maven-publish"
|
|
|
|
val signing = "signing"
|
|
|
|
val dokka = "org.jetbrains.dokka"
|
2020-06-01 15:16:47 +02:00
|
|
|
val taskTree = "com.dorongold.task-tree"
|
2020-08-22 00:43:22 +02:00
|
|
|
val androidLibrary = "com.android.library"
|
|
|
|
val kotlinAndroidExtensions = "kotlin-android-extensions"
|
2020-10-17 11:41:38 +02:00
|
|
|
val androidApplication = "com.android.application"
|
|
|
|
val kotlinAndroid = "kotlin-android"
|
|
|
|
val kapt = "kotlin-kapt"
|
2019-07-20 11:39:26 +02:00
|
|
|
}
|
|
|
|
|