@@ -21,7 +21,8 @@ plugins {
21
21
22
22
val repoRootPath = rootProject.projectDir.absoluteFile.parentFile.absolutePath
23
23
val assetsDirectory = layout.projectDirectory.dir(" src/main/assets" )
24
- val relayListPath = assetsDirectory.file(" relays.json" ).asFile
24
+ val extraAssetsDirectory = layout.buildDirectory.dir(" extraAssets" ).get()
25
+ val relayListPath = extraAssetsDirectory.file(" relays.json" ).asFile
25
26
val defaultChangelogAssetsDirectory = " $repoRootPath /android/src/main/play/release-notes/"
26
27
val rustJniLibs = layout.buildDirectory.dir(" rustJniLibs/android" ).get()
27
28
@@ -130,7 +131,7 @@ android {
130
131
gradleLocalProperties(rootProject.projectDir, providers)
131
132
.getOrDefault(" OVERRIDE_CHANGELOG_DIR" , defaultChangelogAssetsDirectory)
132
133
133
- assets.srcDirs(assetsDirectory, changelogDir)
134
+ assets.srcDirs(assetsDirectory, extraAssetsDirectory, changelogDir)
134
135
}
135
136
}
136
137
@@ -282,9 +283,6 @@ cargo {
282
283
}
283
284
prebuiltToolchains = true
284
285
targetDirectory = " $repoRootPath /target"
285
- // Set this if you get a cargo not found error
286
- // rustcCommand = ""
287
- // cargoCommand = ""
288
286
features {
289
287
if (enableApiOverride) {
290
288
defaultAnd(arrayOf(" api-override" ))
@@ -314,8 +312,8 @@ tasks.register<Exec>("generateRelayList") {
314
312
doLast {
315
313
val output = standardOutput as ByteArrayOutputStream
316
314
// Create file if needed
317
- File (" $assetsDirectory " ).mkdirs()
318
- File (" $assetsDirectory /relays.json" ).createNewFile()
315
+ File (" $extraAssetsDirectory " ).mkdirs()
316
+ File (" $extraAssetsDirectory /relays.json" ).createNewFile()
319
317
FileOutputStream (" $assetsDirectory /relays.json" ).use { it.write(output.toByteArray()) }
320
318
321
319
// Old ensure exists tasks
0 commit comments