opencv/platforms/android
alexlyulkov 6c57ce9e09
Merge pull request #24473 from alexlyulkov:al/samples_with_maven
Updated Android samples for modern Android studio. Added OpenCV from Maven support. #24473

Updated samples for recent Android studio:

- added namespace field that is required in build.gradle files
- replaced _switch_ by _if-else_ because it doesn't work with constants from resources
- added missed log library dependency in face-detection/jni/CMakeLists.txt
- use local.properties to define NDK location

Added support for OpenCV from Maven. Now you can choose 3 possible sources of OpenCV lib in settings.gradle: SDK path, local Maven repository, public Maven repository. (Creating Maven repository from SDK is added here #24456 )

There are differences in project configs for SDK and Maven versions:

- different dependencies in build.gradle
- different OpenCV library names in CMakeLists.txt
- SDK version requires OpenCV_DIR definition

Requires:
- https://github.com/opencv/ci-gha-workflow/pull/124
- https://github.com/opencv-infrastructure/opencv-gha-dockerfile/pull/26
2023-11-17 14:17:17 +03:00
..
aar-template Merge pull request #24456 from alexlyulkov:al/aar 2023-11-07 14:23:33 +03:00
build-tests Merge pull request #24473 from alexlyulkov:al/samples_with_maven 2023-11-17 14:17:17 +03:00
gradle-wrapper Build for NDK 22 2021-02-13 13:00:19 +09:00
service pre: OpenCV 3.4.18 (version++) 2022-05-23 19:18:02 +00:00
android.toolchain.cmake Merge pull request #21934 from Yulv-git:3.4-typos2 2022-09-07 17:16:23 +03:00
build_java_shared_aar.py Merge pull request #24456 from alexlyulkov:al/aar 2023-11-07 14:23:33 +03:00
build_sdk.py dynamically linked libs on mobile 2022-07-09 21:45:58 -07:00
build_static_aar.py Merge pull request #24456 from alexlyulkov:al/aar 2023-11-07 14:23:33 +03:00
ndk-10.config.py android: update build_sdk.py 2018-01-14 16:05:48 +00:00
ndk-16.config.py android: update build_sdk.py 2018-01-14 16:05:48 +00:00
ndk-17.config.py android: NDK17 support 2018-08-27 21:07:34 +00:00
ndk-18-api-level-21.config.py Merge pull request #14005 from komakai:android-video-cap 2019-03-19 21:28:45 +03:00
ndk-18-api-level-24.config.py Merge pull request #19597 from komakai:android-ndk-camera 2021-02-25 19:14:11 +00:00
ndk-18.config.py android: gradle-based package and samples 2018-12-19 14:59:48 +03:00
ndk-22.config.py Make Kotlin plugin version compatible with the Gradle version 2021-06-08 22:51:07 +09:00
ndk-25.config.py android: add configuration for NDK 25 and Android API 32 (12L) 2022-10-24 22:24:04 +00:00
README.android Update README.android 2017-07-31 08:28:34 +02:00

See http://opencv.org/platforms/android