├── ktor ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── ic_launcher-playstore.png │ │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── values │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── drawable │ │ │ │ ├── ic_plus.xml │ │ │ │ ├── ic_check.xml │ │ │ │ ├── ic_delete.xml │ │ │ │ └── ic_launcher_foreground.xml │ │ │ └── layout │ │ │ │ ├── view_item_book.xml │ │ │ │ ├── activity_main.xml │ │ │ │ └── activity_book.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── ykanivets │ │ │ │ └── emojibooks │ │ │ │ ├── SplashActivity.kt │ │ │ │ ├── BookAdapter.kt │ │ │ │ ├── MainActivity.kt │ │ │ │ └── BookActivity.kt │ │ │ └── AndroidManifest.xml │ ├── proguard-rules.pro │ └── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── settings.gradle ├── .gitignore ├── common │ ├── src │ │ └── commonMain │ │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── ykanivets │ │ │ │ └── emojibooks │ │ │ │ ├── BookBody.kt │ │ │ │ ├── Book.kt │ │ │ │ ├── BookRepository.kt │ │ │ │ └── HttpClientFactory.kt │ │ │ └── sqldelight │ │ │ └── com │ │ │ └── ykanivets │ │ │ └── emojibooks │ │ │ └── Book.sq │ └── build.gradle ├── build.gradle ├── gradle.properties └── gradlew.bat ├── realm ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── ic_launcher-playstore.png │ │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── values │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── drawable │ │ │ │ ├── ic_plus.xml │ │ │ │ ├── ic_check.xml │ │ │ │ ├── ic_delete.xml │ │ │ │ └── ic_launcher_foreground.xml │ │ │ └── layout │ │ │ │ ├── view_item_book.xml │ │ │ │ ├── activity_main.xml │ │ │ │ └── activity_book.xml │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── ykanivets │ │ │ └── emojibooks │ │ │ ├── RealmMigration.kt │ │ │ ├── BookAdapter.kt │ │ │ ├── MainActivity.kt │ │ │ └── BookActivity.kt │ ├── proguard-rules.pro │ └── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle ├── common │ ├── src │ │ └── commonMain │ │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── ykanivets │ │ │ │ └── emojibooks │ │ │ │ ├── Book.kt │ │ │ │ └── BookRepository.kt │ │ │ └── sqldelight │ │ │ └── com │ │ │ └── ykanivets │ │ │ └── emojibooks │ │ │ └── Book.sq │ └── build.gradle ├── build.gradle ├── gradle.properties └── gradlew.bat ├── room ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── ic_launcher-playstore.png │ │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── values │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── drawable │ │ │ │ ├── ic_plus.xml │ │ │ │ ├── ic_check.xml │ │ │ │ ├── ic_delete.xml │ │ │ │ └── ic_launcher_foreground.xml │ │ │ └── layout │ │ │ │ ├── view_item_book.xml │ │ │ │ ├── activity_main.xml │ │ │ │ └── activity_book.xml │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── ykanivets │ │ │ └── emojibooks │ │ │ ├── BookAdapter.kt │ │ │ ├── MainActivity.kt │ │ │ └── BookActivity.kt │ ├── proguard-rules.pro │ └── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle ├── common │ ├── src │ │ └── commonMain │ │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── ykanivets │ │ │ │ └── emojibooks │ │ │ │ ├── Book.kt │ │ │ │ └── BookRepository.kt │ │ │ └── sqldelight │ │ │ └── com │ │ │ └── ykanivets │ │ │ └── emojibooks │ │ │ └── Book.sq │ └── build.gradle ├── build.gradle ├── gradle.properties └── gradlew.bat ├── sample ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── ic_launcher-playstore.png │ │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── values │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── drawable │ │ │ │ ├── ic_plus.xml │ │ │ │ ├── ic_check.xml │ │ │ │ ├── ic_delete.xml │ │ │ │ └── ic_launcher_foreground.xml │ │ │ └── layout │ │ │ │ ├── view_item_book.xml │ │ │ │ ├── activity_main.xml │ │ │ │ └── activity_book.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── ykanivets │ │ │ │ └── emojibooks │ │ │ │ ├── Book.kt │ │ │ │ ├── BookRepository.kt │ │ │ │ ├── BookAdapter.kt │ │ │ │ ├── MainActivity.kt │ │ │ │ └── BookActivity.kt │ │ │ └── AndroidManifest.xml │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── build.gradle ├── gradle.properties └── gradlew.bat ├── sqlite ├── app │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── ic_launcher-playstore.png │ │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── values │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── drawable │ │ │ │ ├── ic_plus.xml │ │ │ │ ├── ic_check.xml │ │ │ │ ├── ic_delete.xml │ │ │ │ └── ic_launcher_foreground.xml │ │ │ └── layout │ │ │ │ ├── view_item_book.xml │ │ │ │ ├── activity_main.xml │ │ │ │ └── activity_book.xml │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── ykanivets │ │ │ └── emojibooks │ │ │ ├── BookAdapter.kt │ │ │ └── MainActivity.kt │ ├── proguard-rules.pro │ └── build.gradle ├── .DS_Store ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── settings.gradle ├── .gitignore ├── common │ ├── src │ │ └── commonMain │ │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── ykanivets │ │ │ │ └── emojibooks │ │ │ │ ├── Book.kt │ │ │ │ └── BookRepository.kt │ │ │ └── sqldelight │ │ │ └── com │ │ │ └── ykanivets │ │ │ └── emojibooks │ │ │ └── Book.sq │ └── build.gradle ├── build.gradle ├── gradle.properties └── gradlew.bat ├── README.md └── .DS_Store /ktor/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /realm/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /room/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /sample/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /sqlite/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # emoji_books 2 | Demo application for Droidcon EMEA 2020 3 | -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/.DS_Store -------------------------------------------------------------------------------- /sample/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name = "Emoji Books" 3 | -------------------------------------------------------------------------------- /sqlite/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sqlite/.DS_Store -------------------------------------------------------------------------------- /ktor/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/ktor/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /realm/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/realm/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /room/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/room/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /sample/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sample/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /sqlite/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sqlite/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /ktor/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/ktor/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /realm/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/realm/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /room/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/room/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /ktor/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "Emoji Books" 2 | 3 | include 'app' 4 | include 'common' 5 | 6 | enableFeaturePreview('GRADLE_METADATA') 7 | -------------------------------------------------------------------------------- /realm/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | local.properties 4 | .idea/ 5 | .DS_Store 6 | build/ 7 | captures/ 8 | .externalNativeBuild 9 | .cxx 10 | -------------------------------------------------------------------------------- /realm/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "Emoji Books" 2 | 3 | include 'app' 4 | include 'common' 5 | 6 | enableFeaturePreview('GRADLE_METADATA') 7 | -------------------------------------------------------------------------------- /room/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | local.properties 4 | .idea/ 5 | .DS_Store 6 | build/ 7 | captures/ 8 | .externalNativeBuild 9 | .cxx 10 | -------------------------------------------------------------------------------- /room/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "Emoji Books" 2 | 3 | include 'app' 4 | include 'common' 5 | 6 | enableFeaturePreview('GRADLE_METADATA') 7 | -------------------------------------------------------------------------------- /sample/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sample/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /sqlite/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sqlite/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /sqlite/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "Emoji Books" 2 | 3 | include 'app' 4 | include 'common' 5 | 6 | enableFeaturePreview('GRADLE_METADATA') 7 | -------------------------------------------------------------------------------- /ktor/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/ktor/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /ktor/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/ktor/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /room/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/room/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /room/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/room/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | local.properties 4 | .idea/ 5 | .DS_Store 6 | build/ 7 | captures/ 8 | .externalNativeBuild 9 | .cxx 10 | -------------------------------------------------------------------------------- /sqlite/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | local.properties 4 | .idea/ 5 | .DS_Store 6 | build/ 7 | captures/ 8 | .externalNativeBuild 9 | .cxx 10 | -------------------------------------------------------------------------------- /ktor/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/ktor/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ktor/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/ktor/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /realm/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/realm/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /realm/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/realm/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /realm/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/realm/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /room/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/room/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /room/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/room/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sample/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sample/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /sqlite/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sqlite/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /sqlite/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sqlite/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /ktor/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/ktor/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /realm/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/realm/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /realm/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/realm/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /room/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/room/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sample/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sample/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sqlite/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sqlite/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sqlite/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sqlite/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sqlite/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sqlite/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ktor/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/ktor/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /ktor/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/ktor/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /ktor/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/ktor/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /realm/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/realm/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /realm/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/realm/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /room/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/room/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /room/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/room/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /room/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/room/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /ktor/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | local.properties 4 | .idea/ 5 | .DS_Store 6 | build/ 7 | captures/ 8 | .externalNativeBuild 9 | .cxx 10 | google-services.json 11 | -------------------------------------------------------------------------------- /ktor/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/ktor/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /ktor/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/ktor/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /realm/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/realm/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /realm/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/realm/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /realm/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/realm/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /room/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/room/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /room/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/room/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sample/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sample/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sample/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sample/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sqlite/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sqlite/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sqlite/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sqlite/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sqlite/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sqlite/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sqlite/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sqlite/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sample/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /sqlite/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yev-kanivets/emoji_books/HEAD/sqlite/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /ktor/app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #9D87FF 4 | -------------------------------------------------------------------------------- /realm/app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #9D87FF 4 | -------------------------------------------------------------------------------- /room/app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #9D87FF 4 | -------------------------------------------------------------------------------- /sample/app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #9D87FF 4 | -------------------------------------------------------------------------------- /sqlite/app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #9D87FF 4 | -------------------------------------------------------------------------------- /sample/app/src/main/java/com/ykanivets/emojibooks/Book.kt: -------------------------------------------------------------------------------- 1 | package com.ykanivets.emojibooks 2 | 3 | data class Book( 4 | val id: Long?, 5 | val emoji: String, 6 | val title: String, 7 | val author: String 8 | ) 9 | -------------------------------------------------------------------------------- /realm/common/src/commonMain/kotlin/com/ykanivets/emojibooks/Book.kt: -------------------------------------------------------------------------------- 1 | package com.ykanivets.emojibooks 2 | 3 | data class Book( 4 | val id: Long?, 5 | val emoji: String, 6 | val title: String, 7 | val author: String 8 | ) 9 | -------------------------------------------------------------------------------- /room/common/src/commonMain/kotlin/com/ykanivets/emojibooks/Book.kt: -------------------------------------------------------------------------------- 1 | package com.ykanivets.emojibooks 2 | 3 | data class Book( 4 | val id: Long?, 5 | val emoji: String, 6 | val title: String, 7 | val author: String 8 | ) 9 | -------------------------------------------------------------------------------- /sqlite/common/src/commonMain/kotlin/com/ykanivets/emojibooks/Book.kt: -------------------------------------------------------------------------------- 1 | package com.ykanivets.emojibooks 2 | 3 | data class Book( 4 | val id: Long?, 5 | val emoji: String, 6 | val title: String, 7 | val author: String 8 | ) 9 | -------------------------------------------------------------------------------- /ktor/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #9d87ff 4 | #8a80ff 5 | #0ce8ce 6 | 7 | -------------------------------------------------------------------------------- /realm/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #9d87ff 4 | #8a80ff 5 | #0ce8ce 6 | 7 | -------------------------------------------------------------------------------- /room/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #9d87ff 4 | #8a80ff 5 | #0ce8ce 6 | 7 | -------------------------------------------------------------------------------- /sample/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #9d87ff 4 | #8a80ff 5 | #0ce8ce 6 | 7 | -------------------------------------------------------------------------------- /sqlite/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #9d87ff 4 | #8a80ff 5 | #0ce8ce 6 | 7 | -------------------------------------------------------------------------------- /ktor/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Sep 13 21:44:40 EEST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip 7 | -------------------------------------------------------------------------------- /realm/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Sep 13 21:44:40 EEST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip 7 | -------------------------------------------------------------------------------- /room/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Sep 13 21:44:40 EEST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip 7 | -------------------------------------------------------------------------------- /ktor/common/src/commonMain/kotlin/com/ykanivets/emojibooks/BookBody.kt: -------------------------------------------------------------------------------- 1 | package com.ykanivets.emojibooks 2 | 3 | import kotlinx.serialization.Serializable 4 | 5 | @Serializable 6 | data class BookBody( 7 | val emoji: String, 8 | val title: String, 9 | val author: String 10 | ) 11 | -------------------------------------------------------------------------------- /sample/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Sep 13 21:44:40 EEST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip 7 | -------------------------------------------------------------------------------- /sqlite/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Sep 13 21:44:40 EEST 2020 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip 7 | -------------------------------------------------------------------------------- /ktor/common/src/commonMain/kotlin/com/ykanivets/emojibooks/Book.kt: -------------------------------------------------------------------------------- 1 | package com.ykanivets.emojibooks 2 | 3 | import kotlinx.serialization.Serializable 4 | 5 | @Serializable 6 | data class Book( 7 | val id: String, 8 | val emoji: String, 9 | val title: String, 10 | val author: String 11 | ) 12 | -------------------------------------------------------------------------------- /ktor/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /room/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /realm/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /sqlite/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /ktor/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /realm/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /room/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /sample/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /sqlite/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /ktor/app/src/main/res/drawable/ic_plus.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /realm/app/src/main/res/drawable/ic_plus.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /room/app/src/main/res/drawable/ic_plus.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /sample/app/src/main/res/drawable/ic_plus.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /sqlite/app/src/main/res/drawable/ic_plus.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /ktor/app/src/main/res/drawable/ic_check.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /realm/app/src/main/res/drawable/ic_check.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /room/app/src/main/res/drawable/ic_check.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /sample/app/src/main/res/drawable/ic_check.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /sqlite/app/src/main/res/drawable/ic_check.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /ktor/app/src/main/res/drawable/ic_delete.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /realm/app/src/main/res/drawable/ic_delete.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /room/app/src/main/res/drawable/ic_delete.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /sample/app/src/main/res/drawable/ic_delete.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /sqlite/app/src/main/res/drawable/ic_delete.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /ktor/common/src/commonMain/sqldelight/com/ykanivets/emojibooks/Book.sq: -------------------------------------------------------------------------------- 1 | CREATE TABLE DbBook ( 2 | id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, 3 | emoji TEXT NOT NULL, 4 | title TEXT NOT NULL, 5 | author TEXT NOT NULL 6 | ); 7 | 8 | getAll: 9 | SELECT * FROM DbBook; 10 | 11 | add: 12 | INSERT OR REPLACE INTO DbBook(emoji, title, author) VALUES(?,?,?); 13 | 14 | update: 15 | INSERT OR REPLACE INTO DbBook(id, emoji, title, author) VALUES(?,?,?,?); 16 | 17 | delete: 18 | DELETE FROM DbBook WHERE id = ?; 19 | -------------------------------------------------------------------------------- /realm/common/src/commonMain/sqldelight/com/ykanivets/emojibooks/Book.sq: -------------------------------------------------------------------------------- 1 | CREATE TABLE DbBook ( 2 | id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, 3 | emoji TEXT NOT NULL, 4 | title TEXT NOT NULL, 5 | author TEXT NOT NULL 6 | ); 7 | 8 | getAll: 9 | SELECT * FROM DbBook; 10 | 11 | add: 12 | INSERT OR REPLACE INTO DbBook(emoji, title, author) VALUES(?,?,?); 13 | 14 | update: 15 | INSERT OR REPLACE INTO DbBook(id, emoji, title, author) VALUES(?,?,?,?); 16 | 17 | delete: 18 | DELETE FROM DbBook WHERE id = ?; 19 | -------------------------------------------------------------------------------- /room/common/src/commonMain/sqldelight/com/ykanivets/emojibooks/Book.sq: -------------------------------------------------------------------------------- 1 | CREATE TABLE DbBook ( 2 | id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, 3 | emoji TEXT NOT NULL, 4 | title TEXT NOT NULL, 5 | author TEXT NOT NULL 6 | ); 7 | 8 | getAll: 9 | SELECT * FROM DbBook; 10 | 11 | add: 12 | INSERT OR REPLACE INTO DbBook(emoji, title, author) VALUES(?,?,?); 13 | 14 | update: 15 | INSERT OR REPLACE INTO DbBook(id, emoji, title, author) VALUES(?,?,?,?); 16 | 17 | delete: 18 | DELETE FROM DbBook WHERE id = ?; 19 | -------------------------------------------------------------------------------- /sqlite/common/src/commonMain/sqldelight/com/ykanivets/emojibooks/Book.sq: -------------------------------------------------------------------------------- 1 | CREATE TABLE DbBook ( 2 | id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, 3 | emoji TEXT NOT NULL, 4 | title TEXT NOT NULL, 5 | author TEXT NOT NULL 6 | ); 7 | 8 | getAll: 9 | SELECT * FROM DbBook; 10 | 11 | add: 12 | INSERT OR REPLACE INTO DbBook(emoji, title, author) VALUES(?,?,?); 13 | 14 | update: 15 | INSERT OR REPLACE INTO DbBook(id, emoji, title, author) VALUES(?,?,?,?); 16 | 17 | delete: 18 | DELETE FROM DbBook WHERE id = ?; 19 | -------------------------------------------------------------------------------- /ktor/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Emoji Books 3 | Emoji 4 | Title 5 | Author 6 | Add book 7 | Update book 8 | Can\'t be empty 9 | Add 10 | Done 11 | Delete 12 | 13 | -------------------------------------------------------------------------------- /realm/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Emoji Books 3 | Emoji 4 | Title 5 | Author 6 | Add book 7 | Update book 8 | Can\'t be empty 9 | Add 10 | Done 11 | Delete 12 | 13 | -------------------------------------------------------------------------------- /room/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Emoji Books 3 | Emoji 4 | Title 5 | Author 6 | Add book 7 | Update book 8 | Can\'t be empty 9 | Add 10 | Done 11 | Delete 12 | 13 | -------------------------------------------------------------------------------- /sample/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Emoji Books 3 | Emoji 4 | Title 5 | Author 6 | Add book 7 | Update book 8 | Can\'t be empty 9 | Add 10 | Done 11 | Delete 12 | 13 | -------------------------------------------------------------------------------- /sqlite/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Emoji Books 3 | Emoji 4 | Title 5 | Author 6 | Add book 7 | Update book 8 | Can\'t be empty 9 | Add 10 | Done 11 | Delete 12 | 13 | -------------------------------------------------------------------------------- /sample/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | ext.kotlin_version = "1.4.0" 4 | repositories { 5 | google() 6 | jcenter() 7 | } 8 | dependencies { 9 | classpath "com.android.tools.build:gradle:4.0.1" 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | 12 | // NOTE: Do not place your application dependencies here; they belong 13 | // in the individual module build.gradle files 14 | } 15 | } 16 | 17 | allprojects { 18 | repositories { 19 | google() 20 | jcenter() 21 | } 22 | } 23 | 24 | task clean(type: Delete) { 25 | delete rootProject.buildDir 26 | } 27 | -------------------------------------------------------------------------------- /sample/app/src/main/java/com/ykanivets/emojibooks/BookRepository.kt: -------------------------------------------------------------------------------- 1 | package com.ykanivets.emojibooks 2 | 3 | class BookRepository { 4 | 5 | private val books = mutableListOf( 6 | Book(0, "\uD83D\uDE31", "The Shining", "Stephen King") 7 | ) 8 | 9 | fun getAll(): List = books 10 | 11 | fun add(book: Book): Boolean { 12 | return books.add(book.copy(id = books.size.toLong())) 13 | } 14 | 15 | fun update(book: Book): Boolean { 16 | val index = books.indexOfFirst { it.id == book.id }.takeUnless { it == -1 } ?: return false 17 | books[index] = book 18 | return true 19 | } 20 | 21 | fun delete(book: Book): Boolean { 22 | return books.remove(book) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /room/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | ext.kotlin_version = "1.4.0" 4 | ext.sqlDelight_version = '1.4.0' 5 | repositories { 6 | google() 7 | jcenter() 8 | } 9 | dependencies { 10 | classpath "com.android.tools.build:gradle:4.0.1" 11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 12 | classpath "com.squareup.sqldelight:gradle-plugin:$sqlDelight_version" 13 | 14 | // NOTE: Do not place your application dependencies here; they belong 15 | // in the individual module build.gradle files 16 | } 17 | } 18 | 19 | allprojects { 20 | repositories { 21 | google() 22 | jcenter() 23 | } 24 | } 25 | 26 | task clean(type: Delete) { 27 | delete rootProject.buildDir 28 | } 29 | -------------------------------------------------------------------------------- /sqlite/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | ext.kotlin_version = "1.4.0" 4 | ext.sqlDelight_version = '1.4.0' 5 | repositories { 6 | google() 7 | jcenter() 8 | } 9 | dependencies { 10 | classpath "com.android.tools.build:gradle:4.0.1" 11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 12 | classpath "com.squareup.sqldelight:gradle-plugin:$sqlDelight_version" 13 | 14 | // NOTE: Do not place your application dependencies here; they belong 15 | // in the individual module build.gradle files 16 | } 17 | } 18 | 19 | allprojects { 20 | repositories { 21 | google() 22 | jcenter() 23 | } 24 | } 25 | 26 | task clean(type: Delete) { 27 | delete rootProject.buildDir 28 | } 29 | -------------------------------------------------------------------------------- /ktor/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /realm/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /room/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /sample/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /sqlite/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /ktor/common/src/commonMain/kotlin/com/ykanivets/emojibooks/BookRepository.kt: -------------------------------------------------------------------------------- 1 | package com.ykanivets.emojibooks 2 | 3 | import io.ktor.client.request.* 4 | 5 | class BookRepository(token: String) { 6 | 7 | private val httpClient = HttpClientFactory().create(token) 8 | 9 | suspend fun getAll(): List = httpClient.get(path = "books") 10 | 11 | suspend fun add(book: BookBody): List = httpClient.post(path = "books") { 12 | body = book 13 | } 14 | 15 | suspend fun update(book: Book): List = httpClient.put(path = "books/${book.id}") { 16 | body = book.toBookBody() 17 | } 18 | 19 | suspend fun delete(book: Book): List = httpClient.delete(path = "books/${book.id}") 20 | 21 | private fun Book.toBookBody() = BookBody( 22 | emoji = emoji, 23 | title = title, 24 | author = author 25 | ) 26 | } 27 | -------------------------------------------------------------------------------- /realm/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | ext.kotlin_version = "1.4.0" 4 | ext.sqlDelight_version = '1.4.0' 5 | repositories { 6 | google() 7 | jcenter() 8 | } 9 | dependencies { 10 | classpath "com.android.tools.build:gradle:4.0.1" 11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 12 | classpath "io.realm:realm-gradle-plugin:6.1.0" 13 | classpath "com.squareup.sqldelight:gradle-plugin:$sqlDelight_version" 14 | 15 | // NOTE: Do not place your application dependencies here; they belong 16 | // in the individual module build.gradle files 17 | } 18 | } 19 | 20 | allprojects { 21 | repositories { 22 | google() 23 | jcenter() 24 | } 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /ktor/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | buildscript { 3 | ext.kotlin_version = '1.4.0' 4 | ext.ktor_version = '1.5.2' 5 | 6 | repositories { 7 | google() 8 | jcenter() 9 | } 10 | dependencies { 11 | classpath "com.android.tools.build:gradle:4.0.1" 12 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 13 | classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version" 14 | classpath "com.google.gms:google-services:4.3.5" 15 | 16 | // NOTE: Do not place your application dependencies here; they belong 17 | // in the individual module build.gradle files 18 | } 19 | } 20 | 21 | allprojects { 22 | repositories { 23 | google() 24 | jcenter() 25 | } 26 | } 27 | 28 | task clean(type: Delete) { 29 | delete rootProject.buildDir 30 | } 31 | -------------------------------------------------------------------------------- /realm/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /room/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /sample/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /sqlite/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /ktor/app/src/main/java/com/ykanivets/emojibooks/SplashActivity.kt: -------------------------------------------------------------------------------- 1 | package com.ykanivets.emojibooks 2 | 3 | import android.os.Bundle 4 | import androidx.appcompat.app.AppCompatActivity 5 | import com.google.firebase.auth.FirebaseAuth 6 | 7 | class SplashActivity : AppCompatActivity() { 8 | 9 | override fun onCreate(savedInstanceState: Bundle?) { 10 | super.onCreate(savedInstanceState) 11 | 12 | FirebaseAuth.getInstance() 13 | .signInWithEmailAndPassword("emoji.books@gmail.com", "!Smtv6RN7mr3") 14 | .addOnCompleteListener { task -> 15 | task.result?.user?.getIdToken(false)?.addOnCompleteListener { 16 | it.result?.token?.let { token -> 17 | startActivity(MainActivity.newIntent(this, token)) 18 | finish() 19 | } 20 | } 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ktor/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 13 | 14 | 18 | 19 | 13 | 14 | 18 | 19 | 13 | 14 | 18 | 19 | 13 | 14 | 18 | 19 | 13 | 14 | 18 | 19 |