Skip to content

Commit

Permalink
Version++ for android
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabunin committed Dec 18, 2015
1 parent 4e669f5 commit 8d1f5b5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions modules/java/generator/src/java/android+OpenCVLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ public class OpenCVLoader
*/
public static final String OPENCV_VERSION_3_0_0 = "3.0.0";

/**
* OpenCV Library version 3.1.0.
*/
public static final String OPENCV_VERSION_3_0_0 = "3.1.0";


/**
* Loads and initializes OpenCV library from current application package. Roughly, it's an analog of system.loadLibrary("opencv_java").
Expand Down
2 changes: 1 addition & 1 deletion platforms/android/build_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def build_engine(self, abi, engdest):
# Add extra data
apkxmldest = check_dir(os.path.join(apkdest, "res", "xml"), create=True)
apklibdest = check_dir(os.path.join(apkdest, "libs", abi.name), create=True)
for ver, d in self.extra_packs + [("3.0.0", os.path.join(self.libdest, "lib"))]:
for ver, d in self.extra_packs + [("3.1.0", os.path.join(self.libdest, "lib"))]:
r = ET.Element("library", attrib={"version": ver})
log.info("Adding libraries from %s", d)

Expand Down
4 changes: 2 additions & 2 deletions platforms/android/service/engine/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.opencv.engine"
android:versionCode="300@ANDROID_PLATFORM_ID@"
android:versionName="3.00">
android:versionCode="310@ANDROID_PLATFORM_ID@"
android:versionName="3.10">

<uses-sdk android:minSdkVersion="@ANDROID_NATIVE_API_LEVEL@" android:targetSdkVersion="22"/>
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public String getLibPathByVersion(String version)

@Override
public int getEngineVersion() throws RemoteException {
int version = 3000;
int version = 3100;
try {
version = getPackageManager().getPackageInfo(getPackageName(), 0).versionCode;
} catch (NameNotFoundException e) {
Expand Down
16 changes: 8 additions & 8 deletions platforms/android/service/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ from Google Play.
If Google Play is not available (i.e. on emulator, developer board, etc), you can install it
manually using adb tool:

adb install <path-to-OpenCV-sdk>/apk/OpenCV_3.0.0_Manager_3.00_<platform>.apk
adb install <path-to-OpenCV-sdk>/apk/OpenCV_3.1.0_Manager_3.10_<platform>.apk

Use the list below to determine proper OpenCV Manager package for your device:

- OpenCV_3.0.0-dev_Manager_3.00_armeabi.apk - armeabi (ARMv5, ARMv6)
- OpenCV_3.0.0-dev_Manager_3.00_armeabi-v7a.apk - armeabi-v7a (ARMv7-A + NEON)
- OpenCV_3.0.0-dev_Manager_3.00_arm64-v8a.apk - arm64-v8a (ARM64-v8a)
- OpenCV_3.0.0-dev_Manager_3.00_mips.apk - mips (MIPS)
- OpenCV_3.0.0-dev_Manager_3.00_mips64.apk - mips64 (MIPS64)
- OpenCV_3.0.0-dev_Manager_3.00_x86.apk - x86
- OpenCV_3.0.0-dev_Manager_3.00_x86_64.apk - x86_64
- OpenCV_3.1.0-dev_Manager_3.10_armeabi.apk - armeabi (ARMv5, ARMv6)
- OpenCV_3.1.0-dev_Manager_3.10_armeabi-v7a.apk - armeabi-v7a (ARMv7-A + NEON)
- OpenCV_3.1.0-dev_Manager_3.10_arm64-v8a.apk - arm64-v8a (ARM64-v8a)
- OpenCV_3.1.0-dev_Manager_3.10_mips.apk - mips (MIPS)
- OpenCV_3.1.0-dev_Manager_3.10_mips64.apk - mips64 (MIPS64)
- OpenCV_3.1.0-dev_Manager_3.10_x86.apk - x86
- OpenCV_3.1.0-dev_Manager_3.10_x86_64.apk - x86_64

0 comments on commit 8d1f5b5

Please sign in to comment.