-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly call libraries configuration from iOS
- Loading branch information
Showing
9 changed files
with
80 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...in/kotlin/com/tweener/changehere/_internal/libs/firebase/FirebaseConfiguration.android.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.tweener.changehere._internal.libs.firebase | ||
|
||
/** | ||
* @author Vivien Mahe | ||
* @since 22/05/2024 | ||
*/ | ||
|
||
actual fun initializeFirebase() { | ||
// Nothing to do for now | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...commonMain/kotlin/com/tweener/changehere/_internal/libs/firebase/FirebaseConfiguration.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.tweener.changehere._internal.libs.firebase | ||
|
||
/** | ||
* @author Vivien Mahe | ||
* @since 22/05/2024 | ||
*/ | ||
class FirebaseConfiguration { | ||
|
||
fun init() { | ||
initializeFirebase() | ||
} | ||
} | ||
|
||
expect fun initializeFirebase() |
19 changes: 19 additions & 0 deletions
19
...ed/src/iosMain/kotlin/com/tweener/changehere/_internal/di/LibrariesConfigurationHelper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.tweener.changehere._internal.di | ||
|
||
import com.tweener.changehere._internal.libs.LibrariesConfiguration | ||
import org.koin.core.component.KoinComponent | ||
import org.koin.core.component.inject | ||
|
||
/** | ||
* @author Vivien Mahe | ||
* @since 22/05/2024 | ||
*/ | ||
|
||
class LibrariesConfigurationHelper : KoinComponent { | ||
|
||
private val librariesConfiguration: LibrariesConfiguration by inject() | ||
|
||
fun initConfigurations() { | ||
librariesConfiguration.init() | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...osMain/kotlin/com/tweener/changehere/_internal/libs/firebase/FirebaseConfiguration.ios.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.tweener.changehere._internal.libs.firebase | ||
|
||
import dev.gitlive.firebase.Firebase | ||
import dev.gitlive.firebase.initialize | ||
|
||
/** | ||
* @author Vivien Mahe | ||
* @since 22/05/2024 | ||
*/ | ||
|
||
actual fun initializeFirebase() { | ||
Firebase.initialize() | ||
} |