[soc] updated Android example with algorithm 0.2.5

This commit is contained in:
strawmanbobi
2020-03-11 22:10:15 +08:00
parent 5fdde1a55d
commit 6c0a0953ef
9 changed files with 23 additions and 25 deletions

View File

@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "net.irext.ircontrol"
minSdkVersion 19
targetSdkVersion 27
targetSdkVersion 28
versionCode 6
versionName '0.2.4'
}
@@ -30,10 +30,10 @@ android {
}
dependencies {
compile 'com.android.support:appcompat-v7:27.1.1'
compile 'com.android.support:design:27.1.1'
compile 'com.android.support:support-v4:27.1.1'
compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
compile project(':decodesdk')
compile project(':web-api')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
implementation project(':decodesdk')
implementation project(':web-api')
}

View File

@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":6,"versionName":"0.2.4","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":6,"versionName":"0.2.4","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"app-release.apk","properties":{}}]

View File

@@ -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'
}

View File

@@ -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);
}
}
}

View File

@@ -3,10 +3,10 @@ apply plugin: 'com.android.library'
android {
signingConfigs {
}
compileSdkVersion 27
compileSdkVersion 28
defaultConfig {
minSdkVersion 19
targetSdkVersion 27
targetSdkVersion 28
versionCode 1
versionName "0.1.2"
}
@@ -22,7 +22,7 @@ android {
}
dependencies {
compile files('libs/gson-2.8.0.jar')
compile files('libs/okhttp-3.7.0.jar')
compile files('libs/okio-1.12.0.jar')
api files('libs/gson-2.8.0.jar')
api files('libs/okhttp-3.7.0.jar')
api files('libs/okio-1.12.0.jar')
}