Skip to content

Commit

Permalink
Js support for core module
Browse files Browse the repository at this point in the history
  • Loading branch information
mirzemehdi committed Jul 27, 2024
1 parent ff02872 commit 902ae9a
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 3 deletions.
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\=

#Compose
org.jetbrains.compose.experimental.uikit.enabled=true
org.jetbrains.compose.experimental.wasm.enabled=true

#Android
android.useAndroidX=true
Expand Down
5 changes: 5 additions & 0 deletions kmpauth-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ kotlin {
}
}

js(IR) {
nodejs()
browser()
binaries.library()
}
jvm()
iosX64()
iosArm64()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.mmk.kmpauth.core.di

import com.mmk.kmpauth.core.KMPAuthInternalApi
import org.koin.core.module.Module
import org.koin.dsl.module

@KMPAuthInternalApi
public actual fun isAndroidPlatform(): Boolean = false
internal actual val platformModule: Module = module { }
5 changes: 5 additions & 0 deletions kmpauth-firebase/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ kotlin {
}
}
}
// js(IR) {
// nodejs()
// browser()
// binaries.library()
// }
jvm()

iosX64()
Expand Down
6 changes: 5 additions & 1 deletion kmpauth-google/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ kotlin {
}
}
}
// js(IR) {
// nodejs()
// browser()
// binaries.library()
// }
jvm()

iosX64()
iosArm64()
iosSimulatorArm64()
Expand Down
7 changes: 5 additions & 2 deletions kmpauth-uihelper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ kotlin {
}
}
}
// js(IR) {
// nodejs()
// browser()
// binaries.library()
// }
jvm()


iosX64()
iosArm64()
iosSimulatorArm64()
Expand Down

0 comments on commit 902ae9a

Please sign in to comment.