Rename projects to path names (#1240)

This commit is contained in:
stevenyomi 2024-02-13 22:59:46 +00:00 committed by Draff
parent d7e1e2a448
commit 988be5901b
2 changed files with 3 additions and 8 deletions

View File

@ -50,8 +50,7 @@ jobs:
ALIAS: ${{ secrets.ALIAS }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
with:
arguments: assembleRelease
run: ./gradlew -p src assembleRelease
- name: Upload APKs
uses: actions/upload-artifact@v3

View File

@ -14,16 +14,12 @@ loadAllIndividualExtensions()
fun loadAllIndividualExtensions() {
File(rootDir, "src").eachDir { dir ->
dir.eachDir { subdir ->
val name = ":extensions:individual:${dir.name}:${subdir.name}"
include(name)
project(name).projectDir = File("src/${dir.name}/${subdir.name}")
include("src:${dir.name}:${subdir.name}")
}
}
}
fun loadIndividualExtension(lang: String, name: String) {
val projectName = ":extensions:individual:$lang:$name"
include(projectName)
project(projectName).projectDir = File("src/${lang}/${name}")
include("src:${lang}:${name}")
}
fun File.getChunk(chunk: Int, chunkSize: Int): List<File>? {