[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' apply plugin: 'com.android.application'
android { android {
compileSdkVersion 27 compileSdkVersion 28
buildToolsVersion '28.0.3' buildToolsVersion '28.0.3'
defaultConfig { defaultConfig {
applicationId "net.irext.ircontrol" applicationId "net.irext.ircontrol"
minSdkVersion 19 minSdkVersion 19
targetSdkVersion 27 targetSdkVersion 28
versionCode 6 versionCode 6
versionName '0.2.4' versionName '0.2.4'
} }
@@ -30,10 +30,10 @@ android {
} }
dependencies { dependencies {
compile 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support:appcompat-v7:28.0.0'
compile 'com.android.support:design:27.1.1' implementation 'com.android.support:design:28.0.0'
compile 'com.android.support:support-v4:27.1.1' implementation 'com.android.support:support-v4:28.0.0'
compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT' implementation 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
compile project(':decodesdk') implementation project(':decodesdk')
compile project(':web-api') 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' apply plugin: 'com.android.library'
android { android {
compileSdkVersion 27 compileSdkVersion 28
defaultConfig { defaultConfig {
minSdkVersion 19 minSdkVersion 19
targetSdkVersion 27 targetSdkVersion 28
versionCode 1 versionCode 1
versionName "1.0" versionName "1.0"
} }
@@ -18,6 +18,6 @@ android {
} }
dependencies { dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs') api fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:25.3.1' 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(); private static final String TAG = IRDecode.class.getSimpleName();
static {
System.loadLibrary("irdecode");
}
private static Object mSync = new Object(); private static Object mSync = new Object();
private native String irGetVersion(); private native String irGetVersion();
@@ -49,12 +53,6 @@ public class IRDecode {
return mInstance; return mInstance;
} }
private IRDecode() {
String libPath = "/data/irext/libirda_decoder.so";
System.out.println("loading decode library " + libPath);
System.load(libPath);
}
public String getVersion() { public String getVersion() {
return irGetVersion(); return irGetVersion();
} }

View File

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