1
0
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:
hannesa2
2020-01-03 17:15:35 +01:00
committed by Alexander Alekhin
parent ccfca869e5
commit 43a91f82fe
5 changed files with 18 additions and 10 deletions
@@ -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;
/**