Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
e075c35
Merge pull request #25 from Kotlin/v2_update_main
pahill Jul 1, 2024
9d34ff0
Update Gradle to 8.10
adam-enko Sep 2, 2024
44ccea1
rename 'agp' to 'android-gradlePlugin'
adam-enko Sep 2, 2024
ad75b04
tidy gitignore
adam-enko Sep 2, 2024
16091fb
tidy settings.gradle.kts
adam-enko Sep 2, 2024
f6209a2
make IJ use JDK 17
adam-enko Sep 2, 2024
0e80143
tidy build.gradle.kts
adam-enko Sep 2, 2024
fbd0176
tidy README.md
adam-enko Sep 2, 2024
9dedf74
bump Kotlin to 2.0.20
adam-enko Sep 2, 2024
34120b3
replace `kotlinOptions {}` with `kotlin.compilerOptions {}`
adam-enko Sep 2, 2024
0cc681b
remove plugins from root `build.gradle.kts` - the versions are instea…
adam-enko Sep 2, 2024
99bbadb
Merge pull request #28 from Kotlin/adam/KT-71125-update-build-config
adam-enko Sep 3, 2024
1aaed07
Use version catalog to apply plugins in `:app`
adam-enko Sep 3, 2024
7bcbcba
Merge pull request #29 from Kotlin/adam/fix/use-version-catalog-for-p…
adam-enko Sep 3, 2024
ac91ae4
Add back plugins in the root project
antohaby Sep 3, 2024
6df9537
Downgrade gradle to 8.9 as Kotlin Multiplatform 2.0.20 doesn't suppor…
antohaby Sep 3, 2024
707ac47
update Gradle wrapper jar
adam-enko Sep 4, 2024
2c8f336
Add plugins back to the root project and adjust the Gradle version
zamulla Sep 5, 2024
cfe1749
Create GitHub Action to check `gradle build` works
adam-enko Sep 5, 2024
173e121
Merge pull request #32 from Kotlin/adam/add-gradle-build-gha
adam-enko Sep 5, 2024
1018971
Add Kotlin Multiplatform module and update project configs
pahill Mar 4, 2025
c55d6db
Switch Android codebase to use shared module dependencies
pahill Mar 4, 2025
6bdb5a3
Switch Android codebase to use shared module dependencies
pahill Mar 4, 2025
eca8186
Merge conflict resolutions etc.
pahill Mar 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
### Gradle ###
.gradle/
build/

### IDE ###
*.iml
.gradle
/local.properties

/.idea/
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build

### Kotlin ###

/.kotlin/

### Android ###
local.properties
/captures
.externalNativeBuild
.cxx
local.properties
/.idea/
/.kotlin/

### OS ###

.DS_Store
2 changes: 1 addition & 1 deletion .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@

# Simple login

This is a sample project for the [Make your Android application work on iOS](https://kotlinlang.org/docs/mobile/integrate-in-existing-app.html) tutorial. Master branch contains the project’s initial state: it’s a simple Android application generated with the Android Studio **Login Activity** wizard. You could find the final state with the iOS application and the shared module in the [final branch](https://github.com/Kotlin/kmm-integration-sample/tree/final)
This is a sample project for the
[Make your Android application work on iOS](https://kotlinlang.org/docs/mobile/integrate-in-existing-app.html)
tutorial.

The master branch contains the project’s initial state:
it’s a simple Android application generated with the Android Studio **Login Activity** wizard.

You could find the final state with the iOS application and the shared module in the
[final branch](https://github.com/Kotlin/kmm-integration-sample/tree/final).
1 change: 0 additions & 1 deletion app/.gitignore

This file was deleted.

39 changes: 22 additions & 17 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8

plugins {
id ("com.android.application")
id ("org.jetbrains.kotlin.android")
id("com.android.application")
id("org.jetbrains.kotlin.android")
}

kotlin {
compilerOptions {
jvmTarget = JVM_1_8
}
}

android {
Expand All @@ -19,7 +27,7 @@ android {
buildTypes {
release {
isMinifyEnabled = false
proguardFiles (
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
Expand All @@ -29,24 +37,21 @@ android {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
viewBinding = true
}
namespace = "com.jetbrains.simplelogin.androidapp"
}

dependencies {
implementation (libs.androidx.core.ktx)
implementation (libs.androidx.appcompat)
implementation (libs.androidx.material)
implementation (libs.androidx.annotation)
implementation (libs.androidx.constraintlayout)
implementation (libs.androidx.lifecycle.livedata.ktx)
implementation (libs.androidx.lifecycle.viewmodel.ktx)
testImplementation (libs.junit)
androidTestImplementation (libs.androidx.test.junit)
androidTestImplementation (libs.androidx.espresso.core)
}
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.androidx.material)
implementation(libs.androidx.annotation)
implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.lifecycle.livedata.ktx)
implementation(libs.androidx.lifecycle.viewmodel.ktx)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.junit)
androidTestImplementation(libs.androidx.espresso.core)
}
6 changes: 2 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
plugins {
//trick: for the same plugin versions in all sub-modules
id("com.android.application").version("8.2.0").apply(false)
kotlin("android").version("2.0.0").apply(false)
}
base
}
10 changes: 5 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
agp = "8.2.2"
android-gradlePlugin = "8.2.2"
android-compileSdk = "34"
android-minSdk = "24"
android-targetSdk = "34"
Expand All @@ -15,7 +15,7 @@ compose = "1.6.8"
compose-plugin = "1.6.10"
imageLoader = "1.6.3"
junit = "4.13.2"
kotlin = "2.0.0"
kotlin = "2.0.20"
kotlinxCoroutinesCore = "1.8.0"
ktor = "2.3.7"
lifecycleLivedataKtx = "2.8.2"
Expand Down Expand Up @@ -46,8 +46,8 @@ voyager-navigator = { module = "cafe.adriel.voyager:voyager-navigator", version.
ktor-client-mock = { module = "io.ktor:ktor-client-mock", version.ref = "ktor" }

[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
androidLibrary = { id = "com.android.library", version.ref = "agp" }
androidApplication = { id = "com.android.application", version.ref = "android-gradlePlugin" }
androidLibrary = { id = "com.android.library", version.ref = "android-gradlePlugin" }
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 4 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Wed Feb 16 19:05:29 MSK 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading