-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uniffi demo qr scan #954
Uniffi demo qr scan #954
Conversation
6de427b
to
315c779
Compare
Codecov Report
@@ Coverage Diff @@
## main #954 +/- ##
=======================================
Coverage 39.32% 39.32%
=======================================
Files 414 414
Lines 28863 28863
Branches 6183 6183
=======================================
Hits 11349 11349
- Misses 14174 14175 +1
+ Partials 3340 3339 -1
Flags with carried forward coverage won't be shown. Click here to find out more. |
uniffi_aries_vcx/demo/app/src/main/java/org/hyperledger/ariesvcx/ScanScreen.kt
Outdated
Show resolved
Hide resolved
24288f7
to
95be760
Compare
On generating a new indy profile, the application terminates. 2023-08-29 13:18:04.298 14352-14418 AndroidRuntime org.hyperledger.ariesvcx E FATAL EXCEPTION: DefaultDispatcher-worker-1
Process: org.hyperledger.ariesvcx, PID: 14352
org.hyperledger.ariesvcx.VcxUniFfiException$SerializationException: A serialization error occurred. Check your inputs. More Info: EOF while parsing a value at line 1 column 0
at org.hyperledger.ariesvcx.FfiConverterTypeVcxUniFfiError.read(vcx.kt:915)
at org.hyperledger.ariesvcx.FfiConverterTypeVcxUniFfiError.read(vcx.kt:910)
at org.hyperledger.ariesvcx.FfiConverter$DefaultImpls.liftFromRustBuffer(vcx.kt:151)
at org.hyperledger.ariesvcx.FfiConverterRustBuffer$DefaultImpls.liftFromRustBuffer(vcx.kt:163)
at org.hyperledger.ariesvcx.FfiConverterTypeVcxUniFfiError.liftFromRustBuffer(vcx.kt:910)
at org.hyperledger.ariesvcx.FfiConverterTypeVcxUniFfiError.liftFromRustBuffer(vcx.kt:910)
at org.hyperledger.ariesvcx.FfiConverterRustBuffer$DefaultImpls.lift(vcx.kt:164)
at org.hyperledger.ariesvcx.FfiConverterTypeVcxUniFfiError.lift(vcx.kt:910)
at org.hyperledger.ariesvcx.FfiConverterTypeVcxUniFfiError.lift(vcx.kt:910)
at org.hyperledger.ariesvcx.VcxUniFfiException$ErrorHandler.lift(vcx.kt:906)
at org.hyperledger.ariesvcx.VcxUniFfiException$ErrorHandler.lift(vcx.kt:905)
at org.hyperledger.ariesvcx.VcxKt.createInvitee(vcx.kt:1087)
at org.hyperledger.ariesvcx.MainActivity.setProfileHolder(MainActivity.kt:29)
at org.hyperledger.ariesvcx.MainActivity.access$setProfileHolder(MainActivity.kt:23)
at org.hyperledger.ariesvcx.MainActivity$onCreate$1$1$1$1.invoke(MainActivity.kt:41)
at org.hyperledger.ariesvcx.MainActivity$onCreate$1$1$1$1.invoke(MainActivity.kt:41)
at org.hyperledger.ariesvcx.HomeScreenKt$HomeScreen$1$1$1.invokeSuspend(HomeScreen.kt:47)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@7db2491, androidx.compose.runtime.BroadcastFrameClock@698eff6, StandaloneCoroutine{Cancelling}@67f4ff7, Dispatchers.IO]
2023-08-29 13:18:04.311 14352-14418 Process org.hyperledger.ariesvcx I Sending signal. PID: 14352 SIG: 9 |
5eb93e4
to
2db7884
Compare
uniffi_aries_vcx/demo/app/src/main/java/org/hyperledger/ariesvcx/HomeScreen.kt
Outdated
Show resolved
Hide resolved
uniffi_aries_vcx/demo/app/src/main/java/org/hyperledger/ariesvcx/HomeScreen.kt
Outdated
Show resolved
Hide resolved
uniffi_aries_vcx/demo/app/src/main/java/org/hyperledger/ariesvcx/ScanScreen.kt
Outdated
Show resolved
Hide resolved
uniffi_aries_vcx/demo/app/src/main/java/org/hyperledger/ariesvcx/ScanScreen.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, it's looking good. just some smallish comments, let me know when they're resolved or if any questions
uniffi_aries_vcx/demo/app/src/main/java/org/hyperledger/ariesvcx/HomeScreen.kt
Outdated
Show resolved
Hide resolved
20e52b9
to
197cbf8
Compare
uniffi_aries_vcx/demo/app/src/main/java/org/hyperledger/ariesvcx/MainActivity.kt
Outdated
Show resolved
Hide resolved
uniffi_aries_vcx/demo/app/src/main/java/org/hyperledger/ariesvcx/ScanScreen.kt
Outdated
Show resolved
Hide resolved
uniffi_aries_vcx/demo/app/src/main/java/org/hyperledger/ariesvcx/vcx.kt
Outdated
Show resolved
Hide resolved
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
Signed-off-by: Swapnil Tripathi <[email protected]>
db735bd
to
7ef73e8
Compare
* add nav and qr code scanning Signed-off-by: Swapnil Tripathi <[email protected]> * decode url Signed-off-by: Swapnil Tripathi <[email protected]> * create new indy profile demo Signed-off-by: Swapnil Tripathi <[email protected]> * fix demo app qr scan Signed-off-by: Swapnil Tripathi <[email protected]> * fix definitions for Connection and ProfileHolder Signed-off-by: Swapnil Tripathi <[email protected]> * fix serialization Signed-off-by: Swapnil Tripathi <[email protected]> * update gradle plugin Signed-off-by: Swapnil Tripathi <[email protected]> * fix navigation bug and implement sendRequest Signed-off-by: Swapnil Tripathi <[email protected]> * cleanup Signed-off-by: Swapnil Tripathi <[email protected]> * apply changes from review Signed-off-by: Swapnil Tripathi <[email protected]> * fix state variable for active connection and profileHolder Signed-off-by: Swapnil Tripathi <[email protected]> * fix network permissions Signed-off-by: Swapnil Tripathi <[email protected]> * uniffi demo cleanup Signed-off-by: Swapnil Tripathi <[email protected]> --------- Signed-off-by: Swapnil Tripathi <[email protected]> Signed-off-by: Bogdan Mircea <[email protected]>
Merge only after #896
This PR elaborates the Uniffi demo and API.