Skip to content

Commit

Permalink
Fix Kotlin extensions
Browse files Browse the repository at this point in the history
Fix visibility DI Component
  • Loading branch information
jfilowk committed Feb 23, 2022
1 parent eaeb87d commit afea034
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
6 changes: 4 additions & 2 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0'

// MagicBell
implementation project (':sdk')
implementation project (':sdk-compose')
implementation 'com.magicbell:magicbell-sdk:0.0.2'
implementation 'com.magicbell:magicbell-sdk-compose:0.0.2'

// Compose
implementation 'androidx.activity:activity-compose:1.4.0'
implementation 'androidx.compose.material:material:1.0.5'
implementation 'androidx.compose.animation:animation:1.0.5'
Expand Down
2 changes: 1 addition & 1 deletion gradle-mvn-push.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'maven-publish'
apply plugin: 'signing'

version = '0.0.1'
version = '0.0.2'
group = 'com.magicbell'

def isReleaseBuild() {
Expand Down
2 changes: 1 addition & 1 deletion sdk-compose/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ android {
dependencies {
implementation 'androidx.compose.ui:ui:1.0.5'

api project(':sdk')
implementation project(':sdk')
}

afterEvaluate { project ->
Expand Down
1 change: 0 additions & 1 deletion sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ android {
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude("META-INF/*.kotlin_module")
}
}

Expand Down
4 changes: 2 additions & 2 deletions sdk/src/main/java/com/magicbell/sdk/SDKProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ internal class DefaultSDKModule(
override fun configComponent(): ConfigComponent = configComponent
}

interface CoroutinesComponent {
internal interface CoroutinesComponent {
val coroutineDispatcher: CoroutineDispatcher
}

class DefaultCoroutinesModule : CoroutinesComponent {
internal class DefaultCoroutinesModule : CoroutinesComponent {
override var coroutineDispatcher: CoroutineDispatcher = Executors.newSingleThreadExecutor().asCoroutineDispatcher()
}

0 comments on commit afea034

Please sign in to comment.