Package the Rust mobile core and generated Kotlin API for Android (#92)
Dependency security audit / rustsec (push) Failing after 24s
Dependency security audit / rustsec (push) Failing after 24s
This commit is contained in:
1 parent
e079b82b15
commit
fcb36a0684
42 files changed
+1586
-172
No files matched your search
@@ -62,3 +62,20 @@ val checkArchitecture = tasks.register<Exec>("checkArchitecture") {
|
||||
subprojects {
|
||||
tasks.matching { it.name == "preBuild" || it.name == "check" }.configureEach { dependsOn(rootProject.tasks.named("checkArchitecture")) }
|
||||
}
|
||||
|
||||
tasks.register<Exec>("auditNativePackages") {
|
||||
dependsOn(":app:assembleDebug", ":app:assembleRelease", ":app:bundleRelease")
|
||||
workingDir = workspace
|
||||
val packages = listOf(
|
||||
layout.projectDirectory.file("app/build/outputs/apk/debug/app-debug.apk"),
|
||||
layout.projectDirectory.file("app/build/outputs/apk/release/app-release-unsigned.apk"),
|
||||
layout.projectDirectory.file("app/build/outputs/bundle/release/app-release.aab")
|
||||
)
|
||||
inputs.files(packages)
|
||||
commandLine(
|
||||
listOf(
|
||||
cargoExecutable.get(), "+${libs.versions.rust.get()}", "run", "--locked",
|
||||
"--package", "ironstorage-android-build", "--", "audit-package"
|
||||
) + packages.map { it.asFile.absolutePath }
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user