Skip to content

Commit 61f1c3c

Browse files
committed
add iosArm32, androidNative32, androidNative64, tvos, & watchOS
1 parent 9d68e53 commit 61f1c3c

File tree

9 files changed

+300
-294
lines changed

9 files changed

+300
-294
lines changed

buildSrc/src/main/kotlin/Libs.kt

Lines changed: 51 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,32 @@ import kotlin.String
88
*/
99
object Libs {
1010
/**
11-
* http://developer.android.com/tools/extras/support-library.html
11+
* https://developer.android.com/jetpack/androidx
1212
*/
1313
const val appcompat: String = "androidx.appcompat:appcompat:" + Versions.appcompat
1414

1515
/**
16-
* https://developer.android.com/reference/android/support/constraint/ConstraintLayout
16+
* http://tools.android.com
1717
*/
18-
const val constraintLayout = "androidx.constraintlayout:constraintlayout:" + Versions.constraint_layout
18+
const val constraintlayout: String = "androidx.constraintlayout:constraintlayout:" +
19+
Versions.constraintlayout
1920

2021
/**
21-
* https://developer.android.com/guide/topics/ui/layout/recyclerview
22+
* https://developer.android.com/jetpack/androidx
2223
*/
23-
const val recyclerView = "androidx.recyclerview:recyclerview:" + Versions.recycler_view
24-
25-
/**
26-
* https://developer.android.com/testing
27-
*/
28-
const val espresso_core: String = "androidx.test.espresso:espresso-core:" + Versions.espresso_core
29-
30-
/**
31-
* https://developer.android.com/testing
32-
*/
33-
const val androidx_test_runner: String = "androidx.test:runner:" + Versions.androidx_test_runner
24+
const val recyclerview: String = "androidx.recyclerview:recyclerview:" + Versions.recyclerview
3425

3526
/**
3627
* https://github.com/robstoll/atrium
3728
*/
3829
const val atrium_cc_en_gb_robstoll_common: String =
39-
"ch.tutteli.atrium:atrium-cc-en_GB-robstoll-common:" + Versions.atrium
30+
"ch.tutteli.atrium:atrium-cc-en_GB-robstoll-common:" + Versions.ch_tutteli_atrium
4031

4132
/**
4233
* https://github.com/robstoll/atrium
4334
*/
4435
const val atrium_cc_en_gb_robstoll: String = "ch.tutteli.atrium:atrium-cc-en_GB-robstoll:" +
45-
Versions.atrium
36+
Versions.ch_tutteli_atrium
4637

4738
/**
4839
* https://developer.android.com/studio
@@ -67,17 +58,12 @@ object Libs {
6758
/**
6859
* http://mockk.io
6960
*/
70-
const val mockk_common: String = "io.mockk:mockk-common:" + Versions.mockk
61+
const val mockk_common: String = "io.mockk:mockk-common:" + Versions.io_mockk
7162

7263
/**
7364
* http://mockk.io
7465
*/
75-
const val mockk: String = "io.mockk:mockk:" + Versions.mockk
76-
77-
/**
78-
* http://junit.org
79-
*/
80-
const val junit: String = "junit:junit:" + Versions.junit
66+
const val mockk: String = "io.mockk:mockk:" + Versions.io_mockk
8167

8268
const val dokka_gradle_plugin: String = "org.jetbrains.dokka:dokka-gradle-plugin:" +
8369
Versions.dokka_gradle_plugin
@@ -100,12 +86,18 @@ object Libs {
10086
const val kotlin_annotation_processing_gradle: String =
10187
"org.jetbrains.kotlin:kotlin-annotation-processing-gradle:" + Versions.org_jetbrains_kotlin
10288

89+
const val kotlin_compiler_embeddable: String =
90+
"org.jetbrains.kotlin:kotlin-compiler-embeddable:" + Versions.org_jetbrains_kotlin
91+
10392
/**
10493
* https://kotlinlang.org/
10594
*/
10695
const val kotlin_gradle_plugin: String = "org.jetbrains.kotlin:kotlin-gradle-plugin:" +
10796
Versions.org_jetbrains_kotlin
10897

98+
const val kotlin_klib_commonizer_embeddable: String =
99+
"org.jetbrains.kotlin:kotlin-klib-commonizer-embeddable:" + Versions.org_jetbrains_kotlin
100+
109101
/**
110102
* https://kotlinlang.org/
111103
*/
@@ -119,7 +111,7 @@ object Libs {
119111
"org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:" + Versions.org_jetbrains_kotlin
120112

121113
/**
122-
* https://kotlinlang.org/
114+
* 1.3.72
123115
*/
124116
const val kotlin_stdlib_common: String = "org.jetbrains.kotlin:kotlin-stdlib-common:" +
125117
Versions.org_jetbrains_kotlin
@@ -131,13 +123,13 @@ object Libs {
131123
Versions.org_jetbrains_kotlin
132124

133125
/**
134-
* https://kotlinlang.org/
126+
* 1.3.72
135127
*/
136128
const val kotlin_stdlib_js: String = "org.jetbrains.kotlin:kotlin-stdlib-js:" +
137129
Versions.org_jetbrains_kotlin
138130

139131
/**
140-
* https://kotlinlang.org/
132+
* 1.3.72
141133
*/
142134
const val kotlin_stdlib: String = "org.jetbrains.kotlin:kotlin-stdlib:" +
143135
Versions.org_jetbrains_kotlin
@@ -172,21 +164,41 @@ object Libs {
172164
const val kotlin_test: String = "org.jetbrains.kotlin:kotlin-test:" +
173165
Versions.org_jetbrains_kotlin
174166

175-
const val spek_dsl_jvm: String = "org.spekframework.spek2:spek-dsl-jvm:" +
176-
Versions.spek
167+
/**
168+
* https://github.com/Kotlin/atomicfu
169+
*/
170+
const val atomicfu_gradle_plugin: String = "org.jetbrains.kotlinx:atomicfu-gradle-plugin:" +
171+
Versions.atomicfu_gradle_plugin
177172

178-
const val spek_dsl_metadata: String = "org.spekframework.spek2:spek-dsl-metadata:" +
179-
Versions.spek
173+
/**
174+
* https://github.com/Kotlin/atomicfu
175+
*/
176+
const val atomicfu: String = "org.jetbrains.kotlinx:atomicfu:" + Versions.atomicfu
180177

181-
const val spek_runner_junit5: String = "org.spekframework.spek2:spek-runner-junit5:" +
182-
Versions.spek
178+
/**
179+
* https://github.com/Kotlin/kotlinx.coroutines
180+
*/
181+
const val kotlinx_coroutines_core_jvm: String =
182+
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:" + Versions.kotlinx_coroutines_core_jvm
183+
184+
/**
185+
* https://github.com/Kotlin/kotlinx.coroutines
186+
*/
187+
const val kotlinx_coroutines_core: String = "org.jetbrains.kotlinx:kotlinx-coroutines-core:" +
188+
Versions.kotlinx_coroutines_core
189+
190+
/**
191+
* https://github.com/Kotlin/kotlinx.coroutines
192+
*/
193+
const val kotlinx_coroutines_test: String = "org.jetbrains.kotlinx:kotlinx-coroutines-test:" +
194+
Versions.kotlinx_coroutines_test
183195

184-
const val kotlin_coroutines: String = "org.jetbrains.kotlinx:kotlinx-coroutines-core:" +
185-
Versions.coroutines
196+
const val spek_dsl_jvm: String = "org.spekframework.spek2:spek-dsl-jvm:" +
197+
Versions.org_spekframework_spek2
186198

187-
const val kotlin_coroutines_jvm: String = "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:" +
188-
Versions.coroutines
199+
const val spek_dsl_metadata: String = "org.spekframework.spek2:spek-dsl-metadata:" +
200+
Versions.org_spekframework_spek2
189201

190-
const val kotlin_coroutines_test: String = "org.jetbrains.kotlinx:kotlinx-coroutines-test:" +
191-
Versions.coroutines
202+
const val spek_runner_junit5: String = "org.spekframework.spek2:spek-runner-junit5:" +
203+
Versions.org_spekframework_spek2
192204
}

buildSrc/src/main/kotlin/Plugins.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ object Plugins {
22
const val kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.org_jetbrains_kotlin}"
33
const val dokka = "org.jetbrains.dokka:dokka-gradle-plugin:${Versions.dokka_gradle_plugin}"
44
const val android = "com.android.tools.build:gradle:${Versions.com_android_tools_build_gradle}"
5-
const val atomicFu = "org.jetbrains.kotlinx:atomicfu-gradle-plugin:${Versions.atomicFu}"
5+
const val atomicFu = "org.jetbrains.kotlinx:atomicfu-gradle-plugin:${Versions.atomicfu}"
66
}

buildSrc/src/main/kotlin/Versions.kt

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,49 +12,49 @@ import org.gradle.plugin.use.PluginDependencySpec
1212
* YOU are responsible for updating manually the dependency version.
1313
*/
1414
object Versions {
15-
const val appcompat: String = "1.1.0-rc01"
15+
const val appcompat: String = "1.1.0-rc01" // available: "1.1.0"
1616

17-
const val espresso_core: String = "3.2.0"
17+
const val constraintlayout: String = "1.1.3"
1818

19-
const val androidx_test_runner: String = "1.2.0"
19+
const val recyclerview: String = "1.0.0" // available: "1.1.0"
2020

21-
const val atrium: String = "0.9.2"
21+
const val ch_tutteli_atrium: String = "0.9.2" // available: "0.12.0"
2222

23-
const val aapt2: String = "3.5.0-5435860"
23+
const val aapt2: String = "3.6.0-6040484" // available: "4.0.1-6197926"
2424

25-
const val com_android_tools_build_gradle: String = "3.6.0"
25+
const val com_android_tools_build_gradle: String = "3.6.0" // available: "4.0.1"
2626

27-
const val lint_gradle: String = "26.5.0"
27+
const val lint_gradle: String = "26.6.0" // available: "27.0.1"
2828

29-
const val de_fayard_buildsrcversions_gradle_plugin: String = "0.4.2"
29+
const val de_fayard_buildsrcversions_gradle_plugin: String = "0.4.2" // available: "0.7.0"
3030

31-
const val mockk: String = "1.9.3"
31+
const val io_mockk: String = "1.9.3" // available: "1.10.0"
3232

33-
const val junit: String = "4.12"
34-
35-
const val dokka_gradle_plugin: String = "0.9.17" // available: "0.9.18"
33+
const val dokka_gradle_plugin: String = "0.9.17" // available: "0.11.0-dev-59"
3634

3735
const val org_jetbrains_kotlin: String = "1.4.0-rc"
3836

39-
const val spek: String = "2.1.0-alpha.0.11+d97ef33"
40-
// available: "2.1.0-alpha.0.24+0fdeb6e"
37+
const val atomicfu_gradle_plugin: String = "0.14.3-1.4.0-rc"
4138

42-
const val constraint_layout = "1.1.3"
39+
const val atomicfu: String = "0.14.3-1.4.0-rc"
4340

44-
const val recycler_view = "1.0.0"
41+
const val kotlinx_coroutines_core_jvm: String = "1.3.8-1.4.0-rc"
4542

46-
const val coroutines = "1.3.8-1.4.0-rc"
43+
const val kotlinx_coroutines_core: String = "1.3.8-1.4.0-rc"
4744

48-
const val atomicFu = "0.14.3-1.4.0-rc"
45+
const val kotlinx_coroutines_test: String = "1.3.8-1.4.0-rc"
46+
47+
const val org_spekframework_spek2: String = "2.1.0-alpha.0.11+d97ef33"
48+
// available: "2.1.0-alpha.0.24+0fdeb6e"
4949

5050
/**
5151
*
5252
* See issue 19: How to update Gradle itself?
5353
* https://github.com/jmfayard/buildSrcVersions/issues/19
5454
*/
55-
const val gradleLatestVersion: String = "5.6.1"
55+
const val gradleLatestVersion: String = "6.5.1"
5656

57-
const val gradleCurrentVersion: String = "5.6.1"
57+
const val gradleCurrentVersion: String = "6.5"
5858
}
5959

6060
/**

examples/counter/common/build.gradle.kts

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,8 @@ kotlin {
2323
}
2424
}
2525

26-
iosArm64("ios")
27-
iosX64("iosSim")
28-
macosX64("macos")
29-
mingwX64("win")
30-
wasm32("wasm")
31-
linuxArm32Hfp("linArm32")
32-
linuxMips32("linMips32")
33-
linuxMipsel32("linMipsel32")
34-
linuxX64("lin64")
26+
iosArm64()
27+
iosX64()
3528

3629
sourceSets {
3730
commonMain {
@@ -44,20 +37,20 @@ kotlin {
4437
dependencies {
4538
implementation(kotlin("test-common"))
4639
implementation(kotlin("test-annotations-common"))
47-
implementation("org.spekframework.spek2:spek-dsl-metadata:${Versions.spek}")
48-
implementation("ch.tutteli.atrium:atrium-cc-en_GB-robstoll-common:${Versions.atrium}")
49-
implementation("io.mockk:mockk-common:${Versions.mockk}")
40+
implementation("org.spekframework.spek2:spek-dsl-metadata:${Versions.org_spekframework_spek2}")
41+
implementation("ch.tutteli.atrium:atrium-cc-en_GB-robstoll-common:${Versions.org_spekframework_spek2}")
42+
implementation("io.mockk:mockk-common:${Versions.io_mockk}")
5043
}
5144
}
5245
val jvmTest by getting {
5346
dependencies {
5447
implementation(kotlin("test"))
5548
implementation(kotlin("test-junit"))
56-
implementation("org.spekframework.spek2:spek-dsl-jvm:${Versions.spek}")
57-
implementation("ch.tutteli.atrium:atrium-cc-en_GB-robstoll:${Versions.atrium}")
58-
implementation("io.mockk:mockk:${Versions.mockk}")
49+
implementation("org.spekframework.spek2:spek-dsl-jvm:${Versions.org_spekframework_spek2}")
50+
implementation("ch.tutteli.atrium:atrium-cc-en_GB-robstoll:${Versions.ch_tutteli_atrium}")
51+
implementation("io.mockk:mockk:${Versions.ch_tutteli_atrium}")
5952

60-
runtimeOnly("org.spekframework.spek2:spek-runner-junit5:${Versions.spek}")
53+
runtimeOnly("org.spekframework.spek2:spek-runner-junit5:${Versions.org_spekframework_spek2}")
6154
runtimeOnly("org.jetbrains.kotlin:kotlin-reflect")
6255
}
6356
}
@@ -67,11 +60,6 @@ kotlin {
6760
implementation(kotlin("stdlib-js"))
6861
}
6962
}
70-
71-
val iosMain by getting
72-
val iosTest by getting
73-
val iosSimMain by getting { dependsOn(iosMain) }
74-
val iosSimTest by getting { dependsOn(iosTest) }
7563
}
7664
}
7765

examples/todos/android/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ android {
3939
dependencies {
4040
implementation(Libs.kotlin_stdlib_jdk8)
4141
implementation(Libs.appcompat)
42-
implementation(Libs.constraintLayout)
43-
implementation(Libs.recyclerView)
42+
implementation(Libs.constraintlayout)
43+
implementation(Libs.recyclerview)
4444

4545
implementation(project(":examples:todos:common"))
4646
implementation(project(":redux-kotlin-threadsafe"))

examples/todos/common/build.gradle.kts

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ repositories {
88
}
99

1010
kotlin {
11-
jvm()
11+
iosArm32()
12+
iosArm64()
13+
iosX64()
1214
js(IR) {
1315
binaries.executable()
1416
browser()
@@ -22,16 +24,7 @@ kotlin {
2224
}
2325
}
2426
}
25-
26-
iosArm64("ios")
27-
iosX64("iosSim")
28-
macosX64("macos")
29-
mingwX64("win")
30-
wasm32("wasm")
31-
linuxArm32Hfp("linArm32")
32-
linuxMips32("linMips32")
33-
linuxMipsel32("linMipsel32")
34-
linuxX64("lin64")
27+
jvm()
3528

3629
sourceSets {
3730
commonMain {
@@ -44,20 +37,20 @@ kotlin {
4437
dependencies {
4538
implementation(kotlin("test-common"))
4639
implementation(kotlin("test-annotations-common"))
47-
implementation("org.spekframework.spek2:spek-dsl-metadata:${Versions.spek}")
48-
implementation("ch.tutteli.atrium:atrium-cc-en_GB-robstoll-common:${Versions.atrium}")
49-
implementation("io.mockk:mockk-common:${Versions.mockk}")
40+
implementation("org.spekframework.spek2:spek-dsl-metadata:${Versions.org_spekframework_spek2}")
41+
implementation("ch.tutteli.atrium:atrium-cc-en_GB-robstoll-common:${Versions.ch_tutteli_atrium}")
42+
implementation("io.mockk:mockk-common:${Versions.io_mockk}")
5043
}
5144
}
5245
val jvmTest by getting {
5346
dependencies {
5447
implementation(kotlin("test"))
5548
implementation(kotlin("test-junit"))
56-
implementation("org.spekframework.spek2:spek-dsl-jvm:${Versions.spek}")
57-
implementation("ch.tutteli.atrium:atrium-cc-en_GB-robstoll:${Versions.atrium}")
58-
implementation("io.mockk:mockk:${Versions.mockk}")
49+
implementation("org.spekframework.spek2:spek-dsl-jvm:${Versions.org_spekframework_spek2}")
50+
implementation("ch.tutteli.atrium:atrium-cc-en_GB-robstoll:${Versions.ch_tutteli_atrium}")
51+
implementation("io.mockk:mockk:${Versions.io_mockk}")
5952

60-
runtimeOnly("org.spekframework.spek2:spek-runner-junit5:${Versions.spek}")
53+
runtimeOnly("org.spekframework.spek2:spek-runner-junit5:${Versions.org_spekframework_spek2}")
6154
runtimeOnly("org.jetbrains.kotlin:kotlin-reflect")
6255
}
6356
}
@@ -67,11 +60,6 @@ kotlin {
6760
implementation(kotlin("stdlib-js"))
6861
}
6962
}
70-
71-
val iosMain by getting
72-
val iosTest by getting
73-
val iosSimMain by getting { dependsOn(iosMain) }
74-
val iosSimTest by getting { dependsOn(iosTest) }
7563
}
7664
}
7765

0 commit comments

Comments
 (0)