[soc] updated Android example with algorithm 0.2.5
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
compileSdkVersion 27
|
||||
compileSdkVersion 28
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 27
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
}
|
||||
@@ -18,6 +18,6 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile fileTree(include: ['*.jar'], dir: 'libs')
|
||||
compile 'com.android.support:appcompat-v7:25.3.1'
|
||||
api fileTree(include: ['*.jar'], dir: 'libs')
|
||||
api 'com.android.support:appcompat-v7:28.0.0'
|
||||
}
|
||||
|
||||
@@ -18,6 +18,10 @@ public class IRDecode {
|
||||
|
||||
private static final String TAG = IRDecode.class.getSimpleName();
|
||||
|
||||
static {
|
||||
System.loadLibrary("irdecode");
|
||||
}
|
||||
|
||||
private static Object mSync = new Object();
|
||||
|
||||
private native String irGetVersion();
|
||||
@@ -49,12 +53,6 @@ public class IRDecode {
|
||||
return mInstance;
|
||||
}
|
||||
|
||||
private IRDecode() {
|
||||
String libPath = "/data/irext/libirda_decoder.so";
|
||||
System.out.println("loading decode library " + libPath);
|
||||
System.load(libPath);
|
||||
}
|
||||
|
||||
public String getVersion() {
|
||||
return irGetVersion();
|
||||
}
|
||||
@@ -125,4 +123,4 @@ public class IRDecode {
|
||||
// how many directions supported by specific AC
|
||||
return irACGetSupportedWindDirection(acMode);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user