Skip to content

Commit 30dbf7d

Browse files
committed
Update dependencies.
1 parent 74f3a96 commit 30dbf7d

File tree

7 files changed

+62
-48
lines changed

7 files changed

+62
-48
lines changed

androidApp/build.gradle.kts

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
11
plugins {
22
id("com.android.application")
33
kotlin("android")
4-
id("kotlin-android-extensions")
54
}
6-
group = "com.jetbrains"
7-
version = "1.0-SNAPSHOT"
85

9-
repositories {
10-
gradlePluginPortal()
11-
google()
12-
mavenCentral()
13-
}
14-
dependencies {
15-
implementation(project(":shared"))
16-
implementation("com.google.android.material:material:1.4.0")
17-
implementation("androidx.appcompat:appcompat:1.3.0")
18-
implementation("androidx.constraintlayout:constraintlayout:2.0.4")
19-
}
206
android {
21-
compileSdkVersion(30)
7+
compileSdk = 31
228
defaultConfig {
239
applicationId = "com.jetbrains.androidApp"
24-
minSdkVersion(24)
25-
targetSdkVersion(30)
10+
minSdk = 21
11+
targetSdk = 31
2612
versionCode = 1
2713
versionName = "1.0"
2814
}
@@ -31,4 +17,11 @@ android {
3117
isMinifyEnabled = false
3218
}
3319
}
20+
}
21+
22+
dependencies {
23+
implementation(project(":shared"))
24+
implementation("com.google.android.material:material:1.4.0")
25+
implementation("androidx.appcompat:appcompat:1.3.1")
26+
implementation("androidx.constraintlayout:constraintlayout:2.1.0")
3427
}

androidApp/src/main/AndroidManifest.xml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.jetbrains.androidApp">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.jetbrains.androidApp">
34

45
<application
5-
android:allowBackup="false"
6-
android:supportsRtl="true"
7-
android:theme="@style/AppTheme">
8-
<activity android:name="com.jetbrains.kmm.androidApp.MainActivity">
6+
android:allowBackup="false"
7+
android:supportsRtl="true"
8+
android:theme="@style/AppTheme">
9+
<activity
10+
android:name="com.jetbrains.kmm.androidApp.MainActivity"
11+
android:exported="true">
912
<intent-filter>
10-
<action android:name="android.intent.action.MAIN"/>
13+
<action android:name="android.intent.action.MAIN" />
1114

12-
<category android:name="android.intent.category.LAUNCHER"/>
15+
<category android:name="android.intent.category.LAUNCHER" />
1316
</intent-filter>
1417
</activity>
1518
</application>

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ buildscript {
55
mavenCentral()
66
}
77
dependencies {
8-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21")
9-
classpath("com.android.tools.build:gradle:7.0.0-beta05")
8+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10")
9+
classpath("com.android.tools.build:gradle:7.0.4")
1010
}
1111
}
1212

gradle.properties

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
#Gradle
2+
org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M"
3+
4+
#Kotlin
15
kotlin.code.style=official
2-
xcodeproj=./iosApp
6+
7+
#Android
38
android.useAndroidX=true
9+
10+
#MPP
411
kotlin.mpp.enableGranularSourceSetsMetadata=true
512
kotlin.native.enableDependencyPropagation=false
6-
org.gradle.jvmargs=-Xmx3g
13+
kotlin.mpp.enableCInteropCommonization=true

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip

shared/build.gradle.kts

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
2-
31
plugins {
42
kotlin("multiplatform")
53
id("com.android.library")
@@ -8,19 +6,16 @@ plugins {
86
kotlin {
97
android()
108

11-
val iosTarget: (String, KotlinNativeTarget.() -> Unit) -> KotlinNativeTarget =
12-
if (System.getenv("SDK_NAME")?.startsWith("iphoneos") == true)
13-
::iosArm64
14-
else
15-
::iosX64
16-
17-
iosTarget("ios") {
18-
binaries {
19-
framework {
20-
baseName = "shared"
21-
}
9+
listOf(
10+
iosX64(),
11+
iosArm64(),
12+
iosSimulatorArm64()
13+
).forEach {
14+
it.binaries.framework {
15+
baseName = "shared"
2216
}
2317
}
18+
2419
sourceSets {
2520
val commonMain by getting
2621
val commonTest by getting {
@@ -36,16 +31,32 @@ kotlin {
3631
implementation("junit:junit:4.13.2")
3732
}
3833
}
39-
val iosMain by getting
40-
val iosTest by getting
34+
val iosX64Main by getting
35+
val iosArm64Main by getting
36+
val iosSimulatorArm64Main by getting
37+
val iosMain by creating {
38+
dependsOn(commonMain)
39+
iosX64Main.dependsOn(this)
40+
iosArm64Main.dependsOn(this)
41+
iosSimulatorArm64Main.dependsOn(this)
42+
}
43+
val iosX64Test by getting
44+
val iosArm64Test by getting
45+
val iosSimulatorArm64Test by getting
46+
val iosTest by creating {
47+
dependsOn(commonTest)
48+
iosX64Test.dependsOn(this)
49+
iosArm64Test.dependsOn(this)
50+
iosSimulatorArm64Test.dependsOn(this)
51+
}
4152
}
4253
}
4354

4455
android {
45-
compileSdkVersion(30)
56+
compileSdk = 31
4657
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
4758
defaultConfig {
48-
minSdkVersion(21)
49-
targetSdkVersion(30)
59+
minSdk = 21
60+
targetSdk = 31
5061
}
5162
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.jetbrains.android"/>
2+
<manifest package="com.jetbrains.android"/>

0 commit comments

Comments
 (0)