-
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.
- Loading branch information
1 parent
4b26424
commit 653df15
Showing
30 changed files
with
706 additions
and
3 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
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
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
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
core/platform/src/iosMain/kotlin/dev/androidbroadcast/news/core/ImageLoader.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,8 @@ | ||
package dev.androidbroadcast.news.core | ||
|
||
import coil3.PlatformContext | ||
import coil3.disk.DiskCache | ||
|
||
internal actual fun newDiskCache(context: PlatformContext): DiskCache? { | ||
TODO("Not yet implemented") | ||
} |
32 changes: 32 additions & 0 deletions
32
core/platform/src/iosMain/kotlin/dev/androidbroadcast/news/core/KoinModules.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,32 @@ | ||
package dev.androidbroadcast.news.core | ||
|
||
import androidx.room.Room | ||
import androidx.room.RoomDatabase | ||
import dev.androidbroadcast.common.Logger | ||
import dev.androidbroadcast.news.database.NewsRoomDatabase | ||
import org.koin.core.module.Module | ||
import org.koin.dsl.module | ||
import platform.Foundation.NSHomeDirectory | ||
|
||
/** | ||
* Koin Module with target platform specifics dependencies | ||
*/ | ||
internal actual val targetKoinModule: Module = module { | ||
factory<RoomDatabase.Builder<NewsRoomDatabase>> { | ||
val dbFilePath = NSHomeDirectory() + "/my_room.db" | ||
Room.databaseBuilder<NewsRoomDatabase>( | ||
name = dbFilePath, | ||
factory = { NewsRoomDatabase::class.instantiateImpl() } | ||
) | ||
} | ||
|
||
factory<Logger> { | ||
object : Logger { | ||
override fun d(tag: String, message: String) { | ||
} | ||
|
||
override fun e(tag: String, message: String) { | ||
} | ||
} | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TEAM_ID= | ||
BUNDLE_ID=dev.androidbroadcast.news.KotlinProject | ||
APP_NAME=KotlinProject |
Oops, something went wrong.