Skip to content

Commit

Permalink
Revert "Bump Android NDK version"
Browse files Browse the repository at this point in the history
This reverts commit 0fc8151.
  • Loading branch information
inetic committed Jun 26, 2024
1 parent 99578cb commit 9261d10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
8 changes: 3 additions & 5 deletions bindings/dart/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ android {
}

compileSdkVersion 34

// At time of writing, this is the LTS version
ndkVersion '26.3.11579264'
ndkVersion '25.2.9519653'

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand Down Expand Up @@ -108,8 +106,8 @@ cargo {
// More info: https://github.com/bbqsrc/cargo-ndk/issues/94.
exec { spec, toolchain ->
if (toolchain.target == 'x86_64-linux-android') {
def clangVersion = '17'
def libDir = "${android.sdkDirectory}/ndk/${android.ndkVersion}/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/${clangVersion}/lib/linux"
def clangVersion = '14.0.7'
def libDir = "${android.sdkDirectory}/ndk/${android.ndkVersion}/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/${clangVersion}/lib/linux"

spec.environment('RUSTFLAGS', "-L${libDir} -lstatic=clang_rt.builtins-x86_64-android")
}
Expand Down
10 changes: 4 additions & 6 deletions bindings/kotlin/lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ def ouisyncVersionName = localProperties.getProperty("versionName")

android {
compileSdkVersion 34

// At time of writing, this is the LTS version
ndkVersion '26.3.11579264'
ndkVersion '25.2.9519653'

namespace 'org.equalitie.ouisync'

Expand Down Expand Up @@ -95,8 +93,8 @@ cargo {
// More info: https://github.com/bbqsrc/cargo-ndk/issues/94.
exec { spec, toolchain ->
if (toolchain.target == 'x86_64-linux-android') {
def clangVersion = '17'
def libDir = "${android.sdkDirectory}/ndk/${android.ndkVersion}/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/${clangVersion}/lib/linux"
def clangVersion = '14.0.7'
def libDir = "${android.sdkDirectory}/ndk/${android.ndkVersion}/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/${clangVersion}/lib/linux"

spec.environment('RUSTFLAGS', "-L${libDir} -lstatic=clang_rt.builtins-x86_64-android")
}
Expand Down Expand Up @@ -160,4 +158,4 @@ tasks.withType(Sign).configureEach {
onlyIf { rootProject.gradle.startParameter.taskNames.contains('lib:publishToSonatype') }
}

apply from: "${rootProject.projectDir}/build-scripts/publish-module.gradle"
apply from: "${rootProject.projectDir}/build-scripts/publish-module.gradle"

0 comments on commit 9261d10

Please sign in to comment.