diff --git a/docs/android.mdx b/docs/android.mdx index 8ff5376e..c4a7513a 100644 --- a/docs/android.mdx +++ b/docs/android.mdx @@ -10,9 +10,4 @@ In release mode, you must add the following to your `app/build.gradle`: minifyEnabled false } } -... -dependencies { - .... - implementation 'net.java.dev.jna:jna:5.10.0@aar' -} ``` \ No newline at end of file diff --git a/thermion_flutter/thermion_flutter/android/CMakeLists.txt b/thermion_flutter/thermion_flutter/android/CMakeLists.txt index b60cd7b3..ed93328d 100644 --- a/thermion_flutter/thermion_flutter/android/CMakeLists.txt +++ b/thermion_flutter/thermion_flutter/android/CMakeLists.txt @@ -1,8 +1,7 @@ cmake_minimum_required(VERSION 3.10) -include_directories(../../../thermion_dart/native/include) +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../thermion_dart/native/include) include_directories(src/main/cpp) -# link_directories(src/main/jniLibs/${ANDROID_ABI}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") set(ANDROID_STL c++_shared) diff --git a/thermion_flutter/thermion_flutter/android/build.gradle b/thermion_flutter/thermion_flutter/android/build.gradle index 43e9f803..c456547c 100644 --- a/thermion_flutter/thermion_flutter/android/build.gradle +++ b/thermion_flutter/thermion_flutter/android/build.gradle @@ -57,7 +57,7 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" - implementation 'net.java.dev.jna:jna:5.10.0@aar' + api "net.java.dev.jna:jna:5.10.0@aar" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2" }