Skip to content

Commit

Permalink
Merge pull request #2102 from bugsnag/PLAT-13038/cmake-version-bump
Browse files Browse the repository at this point in the history
CMake version bump
  • Loading branch information
lemnik authored Nov 13, 2024
2 parents 4c2a137 + 0b87abf commit 80c1524
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bugsnag-android-core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cmake_minimum_required(VERSION 3.4.1)
cmake_minimum_required(VERSION 3.19)
project(bugsnag-android-core)
add_subdirectory(src/main)
3 changes: 2 additions & 1 deletion bugsnag-plugin-android-anr/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cmake_minimum_required(VERSION 3.4.1)
cmake_minimum_required(VERSION 3.19)
project(bugsnag-plugin-android-anr)
add_subdirectory(src/main)
3 changes: 2 additions & 1 deletion bugsnag-plugin-android-ndk/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.8.0)
cmake_minimum_required(VERSION 3.19)
project(bugsnag-plugin-android-ndk)
project(TEST)
add_subdirectory(src/main)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class BugsnagBuildPlugin : Plugin<Project> {
"-DANDROID_STL=c++_static"
)


val override: String? = project.findProperty("ABI_FILTERS") as String?
val abis = override?.split(",") ?: mutableSetOf(
"arm64-v8a",
Expand All @@ -102,6 +103,7 @@ class BugsnagBuildPlugin : Plugin<Project> {
ndk.setAbiFilters(abis)
}
externalNativeBuild.cmake.path = project.file("CMakeLists.txt")
externalNativeBuild.cmake.version = Versions.cmakeVersion
}

/**
Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/com/bugsnag/android/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ object Versions {
val java = JavaVersion.VERSION_1_8
val kotlin = "1.5.10"
val kotlinLang = "1.5"
val cmakeVersion = "3.22.1"

// plugins
val androidGradlePlugin = "7.0.4"
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.android-common
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN yes | sdkmanager "ndk;19.2.5345600" > /dev/null
RUN yes | sdkmanager "ndk;21.4.7075529" > /dev/null

RUN yes | sdkmanager "cmake;3.6.4111459" > /dev/null
RUN yes | sdkmanager "cmake;3.10.2.4988404" > /dev/null
RUN yes | sdkmanager "cmake;3.22.1" > /dev/null
RUN yes | sdkmanager "build-tools;30.0.3" > /dev/null

# Install bundletool
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.4.1)
project(cxx-scenarios-bugsnag)

find_package(bugsnag-plugin-android-ndk REQUIRED CONFIG)

Expand Down
1 change: 1 addition & 0 deletions features/fixtures/mazerunner/cxx-scenarios/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.4.1)
project(cxx-scenarios)

add_library(cxx-scenarios SHARED
src/main/cpp/cxx-scenarios.cpp
Expand Down

0 comments on commit 80c1524

Please sign in to comment.