Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 900794d

Browse files
committed
Merge branch 'develop' into fixes-for-chat
2 parents a692574 + 2cacf9a commit 900794d

File tree

21 files changed

+72
-115
lines changed

21 files changed

+72
-115
lines changed

build.gradle.kts

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ buildscript {
1313
maven { url = uri("https://dl.bintray.com/icerockdev/plugins") }
1414
}
1515
dependencies {
16-
classpath("gradle:moko-widgets-deps:1")
17-
classpath("dev.icerock.moko:resources-generator:0.13.1")
18-
classpath("dev.icerock.moko.widgets:gradle-plugin:0.1.0-dev-21")
16+
plugin(Deps.Plugins.mokoResources)
17+
plugin(Deps.Plugins.mokoWidgets)
1918
}
2019
}
2120

@@ -42,6 +41,14 @@ allprojects {
4241
"compileOnly"("javax.annotation:jsr250-api:1.0")
4342
}
4443
}
44+
45+
configurations.all {
46+
resolutionStrategy.dependencySubstitution {
47+
substitute(module("com.nbsp:library"))
48+
.using(module("com.nbsp:materialfilepicker:1.9.1"))
49+
.because("androidx support in new artifact")
50+
}
51+
}
4552

4653
plugins.withType<com.android.build.gradle.LibraryPlugin> {
4754
configure<com.android.build.gradle.LibraryExtension> {
@@ -97,18 +104,3 @@ tasks.register("clean", Delete::class).configure {
97104
group = "build"
98105
delete(rootProject.buildDir)
99106
}
100-
101-
allprojects {
102-
plugins.withId(Deps.Plugins.kotlinMultiplatform.id) {
103-
configure<org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension> {
104-
targets.withType(org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget::class.java) {
105-
compilations.all {
106-
kotlinOptions.freeCompilerArgs += "-Xdisable-fake-override-validator"
107-
}
108-
binaries.all {
109-
freeCompilerArgs += "-Xdisable-fake-override-validator"
110-
}
111-
}
112-
}
113-
}
114-
}
Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5-
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
65
import java.io.ByteArrayOutputStream
76

87
plugins {
9-
id("org.jetbrains.kotlin.jvm") version ("1.4.20")
8+
id("org.jetbrains.kotlin.jvm") version "1.4.30-M1"
109
id("com.github.kukuhyoniatmoko.buildconfigkotlin") version "1.0.5"
1110
}
1211

@@ -19,13 +18,16 @@ repositories {
1918

2019
dependencies {
2120
api(gradleApi())
22-
api("dev.icerock:mobile-multiplatform:0.8.0")
23-
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20")
24-
api("com.android.tools.build:gradle:4.0.2")
21+
api("dev.icerock:mobile-multiplatform:0.9.0")
22+
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30-M1")
23+
api("com.android.tools.build:gradle:4.1.1")
2524
}
2625

27-
group = "gradle"
28-
version = "1"
26+
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class.java).all {
27+
kotlinOptions {
28+
jvmTarget = "1.8"
29+
}
30+
}
2931

3032
val mokoWidgetsVersion: String = when (properties.containsKey("devPublish")) {
3133
true -> getGitCommit()
@@ -46,12 +48,3 @@ fun getGitCommit(): String {
4648
}
4749
return stdout.toString().trim()
4850
}
49-
50-
val compileKotlin: KotlinCompile by tasks
51-
compileKotlin.kotlinOptions {
52-
jvmTarget = "1.8"
53-
}
54-
val compileTestKotlin: KotlinCompile by tasks
55-
compileTestKotlin.kotlinOptions {
56-
jvmTarget = "1.8"
57-
}
Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
object Deps {
6-
private const val kotlinVersion = "1.4.20"
6+
private const val kotlinVersion = "1.4.30-M1"
77
private const val autoServiceVersion = "1.0-rc6"
88

99
private const val androidAppCompatVersion = "1.1.0"
@@ -18,26 +18,25 @@ object Deps {
1818
private const val roundedImageViewVersion = "2.3.0"
1919
private const val playServiceAuthVersion = "17.0.0"
2020
private const val playServiceAuthSmsVersion = "17.1.0"
21-
private const val multiDexVersion = "2.0.1"
2221

23-
private const val detektVersion = "1.7.4"
22+
private const val detektVersion = "1.15.0"
2423

2524
private const val klockVersion = "1.12.0"
26-
private const val coroutinesVersion = "1.3.9"
27-
private const val mokoGraphicsVersion = "0.4.0"
28-
private const val mokoParcelizeVersion = "0.4.0"
29-
private const val mokoResourcesVersion = "0.13.1"
30-
private const val mokoMvvmVersion = "0.8.0"
25+
private const val coroutinesVersion = "1.4.2"
26+
private const val mokoGraphicsVersion = "0.5.0"
27+
private const val mokoParcelizeVersion = "0.5.0"
28+
private const val mokoResourcesVersion = "0.13.2"
29+
private const val mokoMvvmVersion = "0.8.1"
3130
private const val mokoFieldsVersion = "0.5.0"
3231
private const val mokoUnitsVersion = "0.4.1"
33-
private const val mokoMediaVersion = "0.5.0"
34-
private const val mokoPermissionsVersion = "0.6.0"
32+
private const val mokoMediaVersion = "0.6.0"
33+
private const val mokoPermissionsVersion = "0.7.0"
3534
const val mokoWidgetsVersion = BuildConfig.widgetsVersion
3635

3736
object Android {
3837
const val compileSdk = 28
3938
const val targetSdk = 28
40-
const val minSdk = 16
39+
const val minSdk = 21
4140
}
4241

4342
object Plugins {
@@ -49,7 +48,7 @@ object Deps {
4948
val kotlinCocoapods = GradlePlugin(id = "org.jetbrains.kotlin.native.cocoapods")
5049
val kotlinKapt = GradlePlugin(id = "kotlin-kapt")
5150
val kotlinAndroid = GradlePlugin(id = "kotlin-android")
52-
val kotlinAndroidExtensions = GradlePlugin(id = "kotlin-android-extensions")
51+
val kotlinParcelize = GradlePlugin(id = "kotlin-parcelize")
5352
val kotlinSerialization = GradlePlugin(id = "kotlin-serialization")
5453
val mavenPublish = GradlePlugin(id = "org.gradle.maven-publish")
5554

@@ -102,8 +101,6 @@ object Deps {
102101
"com.google.android.gms:play-services-auth:$playServiceAuthVersion"
103102
const val playServiceAuthSms =
104103
"com.google.android.gms:play-services-auth-api-phone:$playServiceAuthSmsVersion"
105-
const val multiDex =
106-
"androidx.multidex:multidex:$multiDexVersion"
107104
}
108105

109106
object MultiPlatform {

moko-widgets-deps/src/main/kotlin/dev/icerock/moko/widgets/gradle/BintrayPublishingPlugin.kt renamed to buildSrc/src/main/kotlin/dev/icerock/moko/widgets/gradle/BintrayPublishingPlugin.kt

File renamed without changes.

moko-widgets-deps/src/main/kotlin/dev/icerock/moko/widgets/gradle/PublishToBintrayRepository.kt renamed to buildSrc/src/main/kotlin/dev/icerock/moko/widgets/gradle/PublishToBintrayRepository.kt

File renamed without changes.

moko-widgets-deps/src/main/kotlin/org/gradle/api/publish/maven/internal/publisher/BintrayPublisher.kt renamed to buildSrc/src/main/kotlin/org/gradle/api/publish/maven/internal/publisher/BintrayPublisher.kt

File renamed without changes.

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ org.gradle.parallel=true
55
kotlin.code.style=official
66

77
android.useAndroidX=true
8-
android.enableJetifier=true
98

109
# Workaround for Bintray treating .sha512 files as artifacts
1110
# https://github.com/gradle/gradle/issues/11412

gradle/wrapper/gradle-wrapper.jar

3.5 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ esac
8282

8383
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
8484

85+
8586
# Determine the Java command to use to start the JVM.
8687
if [ -n "$JAVA_HOME" ] ; then
8788
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
@@ -125,10 +126,11 @@ if $darwin; then
125126
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
126127
fi
127128

128-
# For Cygwin, switch paths to Windows format before running java
129-
if $cygwin ; then
129+
# For Cygwin or MSYS, switch paths to Windows format before running java
130+
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
130131
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
131132
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133+
132134
JAVACMD=`cygpath --unix "$JAVACMD"`
133135

134136
# We build the pattern for arguments to be converted via cygpath
@@ -154,19 +156,19 @@ if $cygwin ; then
154156
else
155157
eval `echo args$i`="\"$arg\""
156158
fi
157-
i=$((i+1))
159+
i=`expr $i + 1`
158160
done
159161
case $i in
160-
(0) set -- ;;
161-
(1) set -- "$args0" ;;
162-
(2) set -- "$args0" "$args1" ;;
163-
(3) set -- "$args0" "$args1" "$args2" ;;
164-
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
165-
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
166-
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
167-
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
168-
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
169-
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
162+
0) set -- ;;
163+
1) set -- "$args0" ;;
164+
2) set -- "$args0" "$args1" ;;
165+
3) set -- "$args0" "$args1" "$args2" ;;
166+
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167+
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168+
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169+
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170+
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171+
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
170172
esac
171173
fi
172174

@@ -175,14 +177,9 @@ save () {
175177
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
176178
echo " "
177179
}
178-
APP_ARGS=$(save "$@")
180+
APP_ARGS=`save "$@"`
179181

180182
# Collect all arguments for the java command, following the shell quoting and substitution rules
181183
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
182184

183-
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
184-
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
185-
cd "$(dirname "$0")"
186-
fi
187-
188185
exec "$JAVACMD" "$@"

0 commit comments

Comments
 (0)