mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Merge pull request #16222 from hannesa2:AndroidMoveVersionInfo
Android move version info to Gradle style * move version info to Gradle style * Use VERSION_NAME in loader * apply review suggestion
This commit is contained in:
committed by
Alexander Alekhin
parent
ccfca869e5
commit
43a91f82fe
+3
-1
@@ -2,6 +2,8 @@ package org.opencv.android;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import org.opencv.BuildConfig;
|
||||
|
||||
/**
|
||||
* Helper class provides common initialization methods for OpenCV library.
|
||||
*/
|
||||
@@ -95,7 +97,7 @@ public class OpenCVLoader
|
||||
/**
|
||||
* Current OpenCV Library version
|
||||
*/
|
||||
public static final String OPENCV_VERSION = "@OPENCV_VERSION_MAJOR@.@OPENCV_VERSION_MINOR@.@OPENCV_VERSION_PATCH@";
|
||||
public static final String OPENCV_VERSION = BuildConfig.VERSION_NAME;
|
||||
|
||||
|
||||
/**
|
||||
Reference in New Issue
Block a user