Skip to content

Enable Android AAR package build with SDK project itself without Python#24752

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/android_aar_with_gradle
Dec 25, 2023
Merged

Enable Android AAR package build with SDK project itself without Python#24752
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/android_aar_with_gradle

Conversation

@asmorkalov
Copy link
Copy Markdown
Contributor

  • Added JavaDoc package build and publishing
  • Added Source package build and publishing
  • More metadata for publishing
  • Disable native samples build with aar, because prefab is not complete yet

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@asmorkalov
Copy link
Copy Markdown
Contributor Author

@mshabunin @opencv-alalek please take a look.

Copy link
Copy Markdown
Contributor

@opencv-alalek opencv-alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is lack of instructions how to validate the result.

@@ -0,0 +1,45 @@
#!/bin/bash -e
SDK_DIR=$1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${1:?Required OpenCV Android SDK path} ?


echo "OpenCV Android SDK path: ${SDK_DIR}"

ANDROID_HOME=${ANDROID_HOME:-${ANDROID_SDK_ROOT:-${ANDROID_SDK?Required ANDROID_HOME/ANDROID_SDK/ANDROID_SDK_ROOT}}}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer using :? to avoid empty values too.

Details: https://tldp.org/LDP/abs/html/parameter-substitution.html

- Added JavaDoc package build and publishing
- Added Source package build and publishing
- More metadata for publishing
- Disable native samples build with aar, because prefab is not complete yet
@asmorkalov asmorkalov force-pushed the as/android_aar_with_gradle branch from 1da8e1b to b59eca2 Compare December 25, 2023 15:40
@asmorkalov asmorkalov merged commit 4679284 into opencv:4.x Dec 25, 2023
@asmorkalov asmorkalov mentioned this pull request Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants