1
0
mirror of https://github.com/flutter/samples.git synced 2026-06-07 23:09:51 +00:00

Add experimental/pedometer (#1587)

* Add `experimental/pedometer`

* Fixup for linter warnings

* Update CI config
This commit is contained in:
Brett Morgan
2023-01-24 11:31:12 +11:00
committed by GitHub
parent 3bc6ad8110
commit 70f3daa9f7
109 changed files with 98007 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
# jni_native_build (Build with jni:setup. Do not delete this line.)
# The Flutter tooling requires that developers have CMake 3.10 or later
# installed. You should not increase this version, as doing so will cause
# the plugin to fail to compile for some customers of the plugin.
cmake_minimum_required(VERSION 3.10)
project(health_connect VERSION 0.0.1 LANGUAGES C)
add_library(health_connect SHARED
"./health_connect.c"
)
set_target_properties(health_connect PROPERTIES
OUTPUT_NAME "health_connect"
)
target_compile_definitions(health_connect PUBLIC DART_SHARED_LIB)
if(WIN32)
set_target_properties(${TARGET_NAME} PROPERTIES
LINK_FLAGS "/DELAYLOAD:jvm.dll")
endif()
if (ANDROID)
target_link_libraries(health_connect log)
else()
find_package(Java REQUIRED)
find_package(JNI REQUIRED)
include_directories(${JNI_INCLUDE_DIRS})
target_link_libraries(health_connect ${JNI_LIBRARIES})
endif()