Skip to content

Commit 68ad9b9

Browse files
committed
Move module multipaz-models into multipaz as a package.
Test: All Unit tests are passing (bar Longfellow). Test: Manually tested via samples/testapp on Android. Signed-off-by: koukarine <[email protected]>
1 parent 5c1845c commit 68ad9b9

File tree

93 files changed

+45
-217
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+45
-217
lines changed

matcherTest/CMakeLists.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
cmake_minimum_required(VERSION 3.16)
2+
set(CMAKE_CXX_STANDARD 20)
3+
set(CMAKE_CXX_STANDARD_REQUIRED True)
4+
5+
add_library(
6+
MatcherTest
7+
SHARED
8+
MatcherTest.cpp
9+
DcqlQueryTest.cpp
10+
../multipaz/src/androidMain/matcher/Request.cpp
11+
../multipaz/src/androidMain/matcher/CredentialDatabase.cpp
12+
../multipaz/src/androidMain/matcher/cppbor.cpp
13+
../multipaz/src/androidMain/matcher/cppbor_parse.cpp
14+
../multipaz/src/androidMain/matcher/cJSON.c
15+
../multipaz/src/androidMain/matcher/matcher.cpp
16+
../multipaz/src/androidMain/matcher/logger.cpp
17+
../multipaz/src/androidMain/matcher/dcql.cpp
18+
../multipaz/src/androidMain/matcher/paths.cpp
19+
)
20+
21+
target_link_libraries(MatcherTest android log)
22+
23+
target_compile_definitions(MatcherTest PRIVATE MATCHER_TEST_BUILD)

multipaz-models/matcherTest/DcqlQueryTest.cpp renamed to matcherTest/DcqlQueryTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#include <string>
77
#include <format>
88

9-
#include "../src/androidMain/matcher/CredentialDatabase.h"
10-
#include "../src/androidMain/matcher/Request.h"
9+
#include "../multipaz/src/androidMain/matcher/CredentialDatabase.h"
10+
#include "../multipaz/src/androidMain/matcher/Request.h"
1111

1212
extern "C"
1313
JNIEXPORT jstring JNICALL
File renamed without changes.
File renamed without changes.

multipaz-compose/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ kotlin {
7575
api(libs.jetbrains.navigation.runtime)
7676

7777
implementation(project(":multipaz"))
78-
implementation(project(":multipaz-models"))
7978
implementation(libs.kotlinx.datetime)
8079
implementation(libs.kotlinx.serialization.json)
8180
implementation(libs.kotlinx.io.core)

multipaz-compose/src/commonMain/kotlin/org/multipaz/compose/presentment/MdocProximityQrPresentment.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import org.multipaz.documenttype.DocumentTypeRepository
2121
import org.multipaz.mdoc.engagement.buildDeviceEngagement
2222
import org.multipaz.mdoc.role.MdocRole
2323
import org.multipaz.mdoc.transport.MdocTransportFactory
24-
import org.multipaz.mdoc.transport.MdocTransportOptions
2524
import org.multipaz.mdoc.transport.advertise
2625
import org.multipaz.mdoc.transport.waitForConnection
2726
import org.multipaz.models.presentment.MdocPresentmentMechanism

multipaz-models/build.gradle.kts

Lines changed: 0 additions & 160 deletions
This file was deleted.

multipaz-models/matcherTest/CMakeLists.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.

multipaz-verifier-server/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ dependencies {
2626
ksp(project(":multipaz-cbor-rpc"))
2727
implementation(project(":multipaz"))
2828
implementation(project(":multipaz-doctypes"))
29-
implementation(project(":multipaz-models"))
3029
implementation(project(":multipaz-longfellow"))
3130

3231
implementation(libs.kotlinx.datetime)

multipaz/build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
2+
import org.gradle.kotlin.dsl.implementation
23
import org.gradle.kotlin.dsl.dependencies
34
import org.gradle.kotlin.dsl.get
45
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
@@ -102,6 +103,7 @@ kotlin {
102103
implementation(libs.bouncy.castle.bcpkix)
103104
implementation(libs.kotlin.test)
104105
implementation(libs.kotlinx.coroutines.test)
106+
implementation(libs.ktor.client.mock)
105107
implementation(project(":multipaz-doctypes"))
106108
}
107109
}
@@ -126,6 +128,12 @@ kotlin {
126128
dependencies {
127129
implementation(libs.androidx.biometrics)
128130
implementation(libs.androidx.lifecycle.viewmodel)
131+
implementation(libs.tink)
132+
implementation(libs.accompanist.permissions)
133+
implementation(libs.androidx.material)
134+
implementation(libs.play.services.identity.credentials)
135+
implementation(libs.androidx.credentials)
136+
implementation(libs.androidx.credentials.play.services.auth)
129137
}
130138
}
131139

@@ -152,7 +160,9 @@ kotlin {
152160
}
153161

154162
val androidInstrumentedTest by getting {
163+
dependsOn(commonTest)
155164
dependencies {
165+
implementation(project(":matcherTest"))
156166
implementation(libs.androidx.sqlite)
157167
implementation(libs.androidx.sqlite.framework)
158168
implementation(libs.androidx.sqlite.bundled)
@@ -217,6 +227,7 @@ android {
217227
targetCompatibility = JavaVersion.VERSION_17
218228
}
219229
dependencies {
230+
implementation(libs.kotlinx.datetime)
220231
}
221232

222233
packaging {

0 commit comments

Comments
 (0)