This file contains hidden or 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
| { | |
| "link": "https://mobile.envelo.pl/docs/regulamin.html", | |
| "version": 1416836788 | |
| } |
This file contains hidden or 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
| Completable.fromCallable { animalsMaker.makeCat(getThread()) } | |
| .doOnComplete { animalsMaker.makeDog(getThread()) } | |
| .observeOn(scheduler(FISH)) | |
| .andThen(Completable.fromCallable { animalsMaker.makeShark(getThread()) }) | |
| .andThen( | |
| Completable.fromCallable { animalsMaker.makeChicken(getThread()) } | |
| .subscribeOn(scheduler(BIRDS)) | |
| .andThen(Completable.fromCallable { animalsMaker.makeDuck(getThread()) }) | |
| ) | |
| .andThen(Completable.fromCallable { animalsMaker.makePenguin(getThread()) }) |
This file contains hidden or 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
| getUsers() | |
| .subscribeOn(Schedulers.io()) | |
| .observeOn(AndroidSchedulers.mainThread()) | |
| .subscribe({ showUsers(it) }) |
This file contains hidden or 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
| -- Check for working C compiler: /Users/{user}/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang | |
| -- Check for working C compiler: /Users/{user}/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -- works | |
| -- Detecting C compiler ABI info | |
| -- Detecting C compiler ABI info - done | |
| -- Detecting C compile features | |
| -- Detecting C compile features - done | |
| -- Check for working CXX compiler: /Users/{user}/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ | |
| -- Check for working CXX compiler: /Users/{user}/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -- works | |
| -- Detecting CXX compiler ABI info | |
| -- Detecting CXX compiler ABI info - done |
This file contains hidden or 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
| cmake_minimum_required(VERSION 3.0) | |
| link_directories( ${CMAKE_CURRENT_SOURCE_DIR} ) | |
| option(desktop_build "desktop_build" ON) | |
| message("-- desktop_build: " ${desktop_build}) | |
| # STRING(REPLACE "-O3" "-O0" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE}) | |
| add_subdirectory(3rd_party/dlib) | |
| add_subdirectory(3rd_party/nlohmann_json) | |
| add_subdirectory(3rd_party/optional-lite) |
This file contains hidden or 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
| public class SaveUserUseCaseIos( | |
| private val wrapped: SaveUserUseCase | |
| ) { | |
| public fun saveUser(user: User): SuspendWrapper<Unit> = | |
| SuspendWrapper(exportedScopeProvider_mainScopeProvider) { wrapped.saveUser(user) } | |
| } |
This file contains hidden or 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
| @ExportedScopeProvider | |
| class MainScopeProvider : ScopeProvider { | |
| override val scope : CoroutineScope = MainScope() | |
| } |
This file contains hidden or 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
| val commonModule = module { | |
| single { UserService() } | |
| factory { LoadUserUseCase(get()) } | |
| factory { SaveUserUseCase(get()) } | |
| factory { ObserveUsersUseCase(get()) } | |
| } |
This file contains hidden or 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
| fun initIosDependencies() = startKoin { | |
| modules(commonModule, iosModule) | |
| } | |
| private val iosModule = module { | |
| factory { LoadUserUseCaseIos(get()) } | |
| factory { SaveUserUseCaseIos(get()) } | |
| factory { ObserveUsersUseCaseIos(get()) } | |
| } |
This file contains hidden or 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
| @UIApplicationMain | |
| class AppDelegate: UIResponder, UIApplicationDelegate { | |
| let sharedComponent = IosComponent() | |
| func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
| IosComponentKt.doInitIosDependencies() | |
| return true | |
| } | |
OlderNewer