Skip to content

Commit

Permalink
Merge branch 'main' into kotlin-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethshackleton authored Jul 16, 2023
2 parents ed105a5 + 38d2ebf commit f2622dc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
path: |
**/build/reports/detekt
- name: 'Unit tests'
run: ./gradlew :selekt-android:testDebugUnitTest :selekt-java:test :koverHtmlReport ${{ env.SCAN }}
run: ./gradlew :selekt-android:testDebugUnitTest :selekt-java:test :koverHtmlReport -x integrationTest ${{ env.SCAN }}
- uses: actions/upload-artifact@v3
if: always()
with:
Expand All @@ -74,7 +74,7 @@ jobs:
./gradlew assembleRelease ${{ env.SCAN }}
- name: 'Verify coverage'
run:
./gradlew :koverVerify
./gradlew :koverVerify -x integrationTest
- name: 'Build others'
run: |
./gradlew assembleAndroidTest :AndroidCLI:assembleDebug :selekt-android-lint:assemble jmhClasses
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/publication.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:
run: |
./gradlew \
-Prelease=false \
--no-configuration-cache \
publishMainPublicationToSonatypeRepository \
closeSonatypeStagingRepository
- name: 'Publish release to OSSRH'
Expand All @@ -62,6 +61,5 @@ jobs:
run: |
./gradlew \
-Prelease=true \
--no-configuration-cache \
publishMainPublicationToSonatypeRepository \
closeAndReleaseSonatypeStagingRepository
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ koverReport {
verify {
rule("Minimal coverage") {
bound {
minValue = 97
minValue = 96
aggregation = AggregationType.COVERED_PERCENTAGE
}
}
Expand Down
6 changes: 4 additions & 2 deletions selekt-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ koverReport {
}

tasks.register<Copy>("copyJniLibs") {
from(fileTree("${project(":selekt-sqlite3").buildDir.absolutePath}/intermediates/libs"))
from(fileTree("${project(":Selektric").buildDir.absolutePath}/intermediates/libs"))
from(
fileTree("${project(":selekt-sqlite3").buildDir.absolutePath}/intermediates/libs"),
fileTree("${project(":Selektric").buildDir.absolutePath}/intermediates/libs")
)
into("${buildDir.path}/intermediates/libs/jni")
}

Expand Down
2 changes: 1 addition & 1 deletion selekt-java/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ tasks.register<Task>("buildHostSQLite") {
}

tasks.register<Copy>("copyJniLibs") {
from(fileTree("${project(":selekt-sqlite3").buildDir.absolutePath}/intermediates/libs"))
from(fileTree("${project(":selekt-sqlite3").buildDir}/intermediates/libs"))
into("${buildDir.path}/intermediates/libs/jni")
}

Expand Down
9 changes: 3 additions & 6 deletions selekt-sqlite3/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,9 @@ fun platformIdentifier() = "${osName()}-${System.getProperty("os.arch")}"

tasks.register<Copy>("buildHost") {
dependsOn("makeSQLite")
with(project.copySpec {
from(fileTree(".cxx-host") {
include("**/*.dll", "**/*.dylib", "**/*.so")
}.files)
})
into("${buildDir.path}/intermediates/libs/${platformIdentifier()}")
from(".cxx-host/sqlite3")
into("$buildDir/intermediates/libs/${platformIdentifier()}")
include("*.dll", "*.dylib", "*.so")
}

tasks.register<Exec>("cleanSqlCipher") {
Expand Down

0 comments on commit f2622dc

Please sign in to comment.