Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / euicc / build.gradle.kts

build.gradle.kts46 lines · 1.6 KiBRaw
1plugins {
2 id("common-conventions-app")
3 // Listing screenshots come from Compose previews (src/screenshotTest), not from an
4 // instrumented test on a device. Same `:euicc:metadata` task name either way.
5 id("common-conventions-preview-metadata")
6}
7
8launcherIcon {
9 symbol = "sim_card"
10}
11
12android {
13 defaultConfig {
14 applicationId = "com.vayunmathur.euicc"
15 }
16}
17
18androidComponents {
19 onVariants { variant ->
20 variant.sources.jniLibs?.addStaticSourceDirectory(
21 layout.buildDirectory.dir("rustJniLibs").get().asFile.absolutePath
22 )
23 }
24}
25
26// SGP.22 core (ASN.1 + ES9+/ES10 + crypto) is native, loaded as libeuicc.so.
27// See euicc/src/main/rust/.
28rustNativeLib("euicc")
29
30dependencies {
31 // Compile-only stubs for the framework's @SystemApi eSIM LPA classes
32 // (android.service.euicc.*, EuiccProfileInfo). Provided by the framework at
33 // runtime on a system image; must NOT be packaged.
34 compileOnly(project(":library:aosp-stubs"))
35 // Rust reaches the SM-DP+ over HTTP through the flat-framed JNI bridge in
36 // library:network (NativeHttpBridge), so libeuicc.so links no TLS of its own.
37 implementation(project(":library:network"))
38 // Local per-profile nicknames / prefs.
39 implementation(libs.androidx.datastore.preferences)
40 // QR activation-code scanning (CameraX preview + ZXing decode).
41 implementation(libs.androidx.camera.core)
42 implementation(libs.androidx.camera.camera2)
43 implementation(libs.androidx.camera.lifecycle)
44 implementation(libs.androidx.camera.view)
45 implementation(libs.zxing.core)
46}