arnaud.giuliani
01/22/2021, 1:38 PMJohn O'Reilly
01/22/2021, 2:26 PMJohn O'Reilly
01/22/2021, 2:27 PMJohn O'Reilly
01/22/2021, 2:27 PMarnaud.giuliani
01/22/2021, 2:39 PMarnaud.giuliani
01/22/2021, 2:39 PMJohn O'Reilly
01/22/2021, 8:09 PMarnaud.giuliani
01/25/2021, 8:57 AMarnaud.giuliani
01/25/2021, 8:57 AMarnaud.giuliani
01/25/2021, 8:59 AMarnaud.giuliani
01/25/2021, 9:00 AMarnaud.giuliani
01/25/2021, 9:00 AMJohn O'Reilly
01/25/2021, 10:41 AM3.0.1-alpha-1
- looks like artifact for following is missing https://dl.bintray.com/ekito/koin/org/koin/koin-androidx-viewmodel/ ?arnaud.giuliani
01/25/2021, 11:01 AMarnaud.giuliani
01/25/2021, 11:01 AMarnaud.giuliani
01/25/2021, 11:01 AMJohn O'Reilly
01/25/2021, 11:01 AMarnaud.giuliani
01/25/2021, 11:02 AMJohn O'Reilly
01/25/2021, 11:09 AMUnresolved reference: KoinComponent
Has that changed in this version?arnaud.giuliani
01/25/2021, 1:09 PMarnaud.giuliani
01/25/2021, 1:09 PMJohn O'Reilly
01/25/2021, 1:10 PMarnaud.giuliani
01/25/2021, 1:11 PMarnaud.giuliani
01/25/2021, 1:11 PMarnaud.giuliani
01/25/2021, 1:11 PMJohn O'Reilly
01/25/2021, 1:30 PMCould not resolve org.koin:koin-test:3.0.1-alpha-1.
John O'Reilly
01/25/2021, 1:35 PMJohn O'Reilly
01/25/2021, 1:37 PMCould not resolve org.koin:koin-core:3.0.1-alpha-1
as well....re-reading above sounded like native dependencies weren't actually in place yet?arnaud.giuliani
01/25/2021, 1:51 PMarnaud.giuliani
01/25/2021, 2:42 PMarnaud.giuliani
01/26/2021, 3:23 PMalpha-2
is out 👍John O'Reilly
01/26/2021, 3:26 PMJohn O'Reilly
01/26/2021, 3:47 PMCould not resolve org.koin:koin-test:3.0.1-alpha-2
when building iOS appJohn O'Reilly
01/26/2021, 3:50 PMJohn O'Reilly
01/26/2021, 3:51 PMkoin-test-iosarm32/
koin-test-iosarm64/
koin-test-iosx64/
John O'Reilly
01/26/2021, 3:52 PMarnaud.giuliani
01/26/2021, 5:03 PMarnaud.giuliani
01/26/2021, 5:04 PMJohn O'Reilly
01/26/2021, 5:50 PMFunction doesn't have or inherit @Throws annotation and thus exception isn't propagated from Kotlin to Objective-C/Swift as NSError.
It is considered unexpected and unhandled instead. Program will be terminated.
Uncaught Kotlin exception: kotlin.UnsupportedOperationException
at 0 PeopleInSpaceSwiftUI 0x000000010bffcbd3 kfun:kotlin.Throwable#<init>(){} + 67
at 1 PeopleInSpaceSwiftUI 0x000000010bff50fc kfun:kotlin.Exception#<init>(){} + 60
at 2 PeopleInSpaceSwiftUI 0x000000010bff536c kfun:kotlin.RuntimeException#<init>(){} + 60
at 3 PeopleInSpaceSwiftUI 0x000000010bff5c8c kfun:kotlin.UnsupportedOperationException#<init>(){} + 60
at 4 PeopleInSpaceSwiftUI 0x000000010bff6c75 kfun:kotlin#lazy(kotlin.LazyThreadSafetyMode;kotlin.Function0<0:0>){0§<kotlin.Any?>}kotlin.Lazy<0:0> + 629
at 5 PeopleInSpaceSwiftUI 0x000000010bef7862 kfun:com.surrus.common.repository.PeopleInSpaceRepository#<init>(){} + 818
at 6 PeopleInSpaceSwiftUI 0x000000010bf0bfb5 objc2kotlin.119 + 165
at 7 PeopleInSpaceSwiftUI 0x000000010bed97ff $sSo29CommonPeopleInSpaceRepositoryCABycfC + 31
at 8 PeopleInSpaceSwiftUI 0x000000010bed97c7 $s20PeopleInSpaceSwiftUI11ContentViewV07_peoplebcG5Model33_F066A1E5F55160DDF59ED87783CA7A0ALL0dE011StateObjectVyAA0abcgI0CGvpfiAJycfu_AJycfu0_ + 55
at 9 SwiftUI 0x00007fff570287c5 $s7SwiftUI11StateObjectV3Box33_26399901AD247149EF526863F9AAF7C4LLV6update8property5phaseSbACyxGz_AA12_GraphInputsV5PhaseVtF + 85
at 10 SwiftUI 0x00007fff5752e95c $s7SwiftUI9BoxVTable33_68550FF604D39F05971FE35A26EE75B0LLC6update3ptr8property5phaseSbSv_SvAA12_GraphInputsV5PhaseVtFZ + 204
at 11 SwiftUI 0x00007fff5752e05f $s7SwiftUI22_DynamicPropertyBufferV6update9container5phaseSbSv_AA12_GraphInputsV5PhaseVtF + 63
at 12 SwiftUI 0x00007fff571de0e1 $s7SwiftUI11DynamicBodyV11updateValueyyF + 257
at 13 SwiftUI 0x00007fff56ed9d8a $s14AttributeGraph0A0VyACyxGqd__c5ValueQyd__RszAA12StatefulRuleRd__lufcADSPyqd__GXEfU_ySv_So11AGAttributeatcyXEfU_ySv_AJtcqd__mcfu_ySv_AJtcfu0_TA + 26
at 14 AttributeGraph 0x00007fff4c92c723 _ZN2AG5Graph11UpdateStack6updateEv + 505
at 15 AttributeGraph 0x00007fff4c92cbb9 _ZN2AG5Graph16update_attributeENS_4data3ptrINS_4NodeEEEb + 335
at 16 AttributeGraph 0x00007fff4c93185f _ZN2AG5Graph20input_value_ref_slowENS_4data3ptrINS_4NodeEEENS_11AttributeIDEjPK15AGSwiftMetadataPbl + 523
at 17 AttributeGraph 0x00007fff4c942dc5 AGGraphGetValue + 203
at 18 SwiftUI 0x00007fff570c50a7 $s7SwiftUI8MakeBody33_47701A835A1B253AFF3923CF965CEFD6LLV4viewxvg + 23
at 19 SwiftUI 0x00007fff570c50f9 $s7SwiftUI8MakeBody33_47701A835A1B253AFF3923CF965CEFD6LLV5value08InternalD0Qzvg + 57
at 20 SwiftUI 0x00007fff570c5177 $s7SwiftUI8MakeBody33_47701A835A1B253AFF3923CF965CEFD6LLVyxG14AttributeGraph4RuleAafGP5value5ValueQzvgTW + 23
at 21 AttributeGraph 0x00007fff4c945907 $s14AttributeGraph4RuleP5value5ValueQzvgTj + 7
at 22 SwiftUI 0x00007fff56c7ea18 $s14AttributeGraph0A0VyACyxGqd__c5ValueQyd__RszAA4RuleRd__lufcADSPyqd__GXEfU_ySv_So11AGAttributeatcyXEfU_ySv_AJtcqd__mcfu_ySv_AJtcfu0_ + 56
at 23 AttributeGraph 0x00007fff4c92c723 _ZN2AG5Graph11UpdateStack6updateEv + 505
at 24 AttributeGraph 0x00007fff4c92cbb9 _ZN2AG5Graph16update_attributeENS_4data3ptrINS_4NodeEEEb + 335
at 25 AttributeGraph 0x00007fff4c93185f _ZN2AG5Graph20input_value_ref_slowENS_4data3ptrINS_4NodeEEENS_11AttributeIDEjPK15AGSwiftMetadataPbl + 523
at 26 AttributeGraph 0x00007fff4c942dc5 AGGraphGetValue + 203
at 27 SwiftUI 0x00007fff574e964e $s7SwiftUI10IsAnimated33_118F5F06898F710FC0FEC394204027F7LLV11updateValueyyF + 62
at 28 SwiftUI 0x00007fff56ed9d8a $s14AttributeGraph0A0VyACyxGqd__c5ValueQyd__RszAA12StatefulRuleRd__lufcADSPyqd__GXEfU_ySv_So11AGAttributeatcyXEfU_ySv_AJtcqd__mcfu_ySv_AJtcfu0_TA + 26
at 29 AttributeGraph 0x00007fff4c92c723 _ZN2AG5Graph11UpdateStack6updateEv + 505
CoreSimulator 732.18.6 - Device: iPhone 11 Pro (EFD5D463-7F46-4200-A6FB-76F0997D975C) - Runtime: iOS 14.3 (18C61) - DeviceType: iPhone 11 Pro
(lldb)
John O'Reilly
01/26/2021, 5:50 PMkoin-test
...it builds now but getting run-time crashJohn O'Reilly
01/26/2021, 5:51 PMkoin-test
John O'Reilly
01/26/2021, 5:51 PMkotlin.UnsupportedOperationException
for example in bothJohn O'Reilly
01/26/2021, 5:59 PMPeopleInSpaceRepository
for example from iOS code and if I change that to not derive from KoinComponent
then it doesn't crasharnaud.giuliani
01/27/2021, 8:22 AMKoinComponent
provoke that? 🤔arnaud.giuliani
01/27/2021, 8:24 AM@OptIn(KoinApiExtension::class)
John O'Reilly
01/27/2021, 8:53 AMarnaud.giuliani
02/04/2021, 8:42 AMJohn O'Reilly
02/04/2021, 8:42 AMarnaud.giuliani
02/04/2021, 8:48 AMarnaud.giuliani
02/04/2021, 8:52 AMJohn O'Reilly
02/04/2021, 8:53 AMarnaud.giuliani
02/04/2021, 8:55 AMarnaud.giuliani
02/04/2021, 8:56 AMarnaud.giuliani
02/04/2021, 9:00 AMJohn O'Reilly
02/04/2021, 9:01 AMPeopleInSpaceSwiftUI
folder (or ..xcworkspace file) from XCode....and not the .xcodeproj file)arnaud.giuliani
02/04/2021, 9:02 AMarnaud.giuliani
02/04/2021, 9:03 AMxcworkspace
fileJohn O'Reilly
02/04/2021, 9:03 AMarnaud.giuliani
02/04/2021, 9:04 AMarnaud.giuliani
02/04/2021, 9:05 AMarnaud.giuliani
02/04/2021, 9:05 AMsourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
John O'Reilly
02/04/2021, 9:06 AMarnaud.giuliani
02/04/2021, 9:07 AMarnaud.giuliani
02/04/2021, 9:07 AMJohn O'Reilly
02/04/2021, 4:14 PMarnaud.giuliani
02/04/2021, 4:15 PMMustafa Ozhan
02/05/2021, 10:40 AMconst val koinCore = "org.koin:koin-core:${Versions.koin}"
const val koinAndroidViewModel = org.koin:koin-androidx-viewmodel:${Versions.koin}"
So those 2 are not sharing same version anymore
core become "3.0.1-alpha-3"
and viewModel remained "3.0.0-alpha-4"
It is fine i applied different version for each but at that time I got runtime crash
2021-02-05 11:39:22.799 ? E/AndroidRuntime: FATAL EXCEPTION: main
Process: mustafaozhan.github.com.mycurrencies, PID: 8869
java.lang.NoSuchMethodError: No virtual method getRootScope()Lorg/koin/core/scope/ScopeDefinition; in class Lorg/koin/core/module/Module; or its super classes (declaration of 'org.koin.core.module.Module' appears in /data/app/~~1L7Hv_CFt1voXmqDk1DsSw==/mustafaozhan.github.com.mycurrencies-JL80hYuSZx5MAMe-dCkoSQ==/base.apk!classes22.dex)
at com.github.mustafaozhan.ccc.client.di.KoinAndroidKt$clientModule$1.invoke(KoinAndroid.kt:49)
at com.github.mustafaozhan.ccc.client.di.KoinAndroidKt$clientModule$1.invoke(Unknown Source:2)
at org.koin.dsl.ModuleKt.module(Module.kt:31)
at org.koin.dsl.ModuleKt.module$default(Module.kt:29)
at com.github.mustafaozhan.ccc.client.di.KoinAndroidKt.<clinit>(KoinAndroid.kt:36)
at com.github.mustafaozhan.ccc.client.di.KoinAndroidKt.initAndroid(Unknown Source:0)
at com.github.mustafaozhan.ccc.android.app.CCCApplication.onCreate(CCCApplication.kt:17)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6712)
at android.app.ActivityThread.access$1300(ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
arnaud.giuliani
02/05/2021, 11:40 AMarnaud.giuliani
02/05/2021, 2:55 PMarnaud.giuliani
02/05/2021, 2:55 PMMustafa Ozhan
02/05/2021, 4:12 PMarnaud.giuliani
02/05/2021, 4:15 PM