diff --git a/android/.gitignore b/android/.gitignore index de8c48f7..cabef984 100644 --- a/android/.gitignore +++ b/android/.gitignore @@ -6,3 +6,4 @@ /build /captures /src/main/jniLibs/ +/.cxx diff --git a/android/CMakeLists.txt b/android/CMakeLists.txt index 9ba98acf..7170d2d0 100644 --- a/android/CMakeLists.txt +++ b/android/CMakeLists.txt @@ -10,6 +10,10 @@ set(LibraryVersion "agent_dart-v1.0.0") # generated; do not edit # the plugin to fail to compile for some customers of the plugin. cmake_minimum_required(VERSION 3.10) +# Project-level configuration. +set(PROJECT_NAME "agent_dart") # Should match the name field in the pubspec.yaml. +project(PROJECT_NAME) + # Download the binaries if they are not already present. set(LibRoot "${CMAKE_CURRENT_SOURCE_DIR}/src/main/jniLibs") set(ArchivePath "${CMAKE_CURRENT_SOURCE_DIR}/${LibraryVersion}.tar.gz") diff --git a/android/build.gradle b/android/build.gradle index 947de590..6aa637e8 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -34,6 +34,13 @@ android { defaultConfig { minSdkVersion 23 } + + // Trigger the binary download/update over in CMakeLists.txt + externalNativeBuild { + cmake { + path "CMakeLists.txt" + } + } } dependencies {