diff --git a/.gitignore b/.gitignore index f3579da9..4edfdfff 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ build gradle .DS_Store *.pyc +local.properties diff --git a/build.gradle b/build.gradle index 9d8df85a..05098822 100644 --- a/build.gradle +++ b/build.gradle @@ -13,11 +13,11 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:3.0.1' + classpath 'com.android.tools.build:gradle:3.2.0' classpath 'me.tatarka:gradle-retrolambda:3.2.5' classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0' classpath "io.realm:realm-gradle-plugin:1.1.1" - classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1' + classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1' classpath "io.realm:realm-gradle-plugin:3.0.0" } } @@ -36,24 +36,16 @@ task clean(type: Delete) { } -subprojects { - def androidHome - - if ((androidHome = System.env.'ANDROID_HOME') - && (androidHome = androidHome as File).exists() - && androidHome.canWrite()) - apply plugin: 'android-sdk-manager' -} +apply plugin: 'android-sdk-manager' -def supportVersion = "26.0.2" +def supportVersion = "26.1.0" def rxVersion = "1.2.1" ext { minSdkVersion = 15 targetSdkVersion = 26 compileSdkVersion = 26 - buildToolsVersion = '26.0.2' libSupportV7 = "com.android.support:appcompat-v7:${supportVersion}" libSupportV4 = "com.android.support:support-v4:${supportVersion}" diff --git a/gradle.properties b/gradle.properties index 6e9a9fd2..84280287 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,4 +16,3 @@ org.gradle.jvmargs=-Xmx2048m #android.useDeprecatedNdk=true org.gradle.daemon=true -android.enableAapt2=false \ No newline at end of file diff --git a/local.properties b/local.properties deleted file mode 100644 index 463527d2..00000000 --- a/local.properties +++ /dev/null @@ -1,12 +0,0 @@ -## This file is automatically generated by Android Studio. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must *NOT* be checked into Version Control Systems, -# as it contains information specific to your local configuration. -# -# Location of the SDK. This is only used by Gradle. -# For customization when using a Version Control System, please read the -# header note. -#Tue Jan 23 17:37:56 CST 2018 -ndk.dir=/Users/yanhecun/Library/Android/sdk/ndk-bundle -sdk.dir=/Users/yanhecun/Library/Android/sdk diff --git a/qpypluginman/build.gradle b/qpypluginman/build.gradle index 14449ce0..33cf653f 100644 --- a/qpypluginman/build.gradle +++ b/qpypluginman/build.gradle @@ -2,7 +2,6 @@ apply plugin: 'com.android.library' android { compileSdkVersion rootProject.ext.compileSdkVersion - buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { minSdkVersion rootProject.ext.minSdkVersion diff --git a/qpysdk/build.gradle b/qpysdk/build.gradle index 44c6b438..c7474e71 100644 --- a/qpysdk/build.gradle +++ b/qpysdk/build.gradle @@ -2,7 +2,6 @@ apply plugin: 'com.android.library' android { compileSdkVersion rootProject.ext.compileSdkVersion - buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { minSdkVersion rootProject.ext.minSdkVersion @@ -11,7 +10,7 @@ android { versionName "1.0" ndk { - abiFilters 'armeabi' + abiFilters 'armeabi-v7a' } } buildTypes { @@ -26,6 +25,9 @@ android { } } + lintOptions { + abortOnError false + } } dependencies { diff --git a/qpysl4a/build.gradle b/qpysl4a/build.gradle index 11a2e931..f0036bfd 100644 --- a/qpysl4a/build.gradle +++ b/qpysl4a/build.gradle @@ -2,7 +2,6 @@ apply plugin: 'com.android.library' android { compileSdkVersion rootProject.ext.compileSdkVersion - buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { minSdkVersion rootProject.ext.minSdkVersion @@ -35,6 +34,9 @@ android { dataBinding { enabled = true } + lintOptions { + abortOnError false + } } dependencies { diff --git a/qpython/build.gradle b/qpython/build.gradle index d883fdbe..55c17af2 100644 --- a/qpython/build.gradle +++ b/qpython/build.gradle @@ -1,11 +1,9 @@ apply plugin: 'com.android.application' //apply plugin: 'me.tatarka.retrolambda' -apply plugin: 'com.jakewharton.butterknife' apply plugin: 'realm-android' android { compileSdkVersion rootProject.ext.compileSdkVersion - buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { minSdkVersion rootProject.ext.minSdkVersion @@ -16,7 +14,7 @@ android { versionName "1.0" ndk { - abiFilters 'armeabi' + abiFilters 'armeabi-v7a' } multiDexEnabled true @@ -48,6 +46,9 @@ android { jniLibs.srcDirs = ['libs'] } } + lintOptions { + abortOnError false + } } @@ -68,8 +69,8 @@ dependencies { //releaseCompile project(path: ':qpysl4a', configuration: 'libraryRelease') compile 'com.umeng.analytics:analytics:latest.integration' - compile 'com.jakewharton:butterknife:8.5.1' - annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1' + compile 'com.jakewharton:butterknife:8.8.1' + annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1' compile rootProject.ext.libSupportDesign compile rootProject.ext.libSupportV7 @@ -83,7 +84,7 @@ dependencies { compile 'org.apmem.tools:layouts:1.9@aar' compile 'com.azeesoft.lib.colorpicker:colorpicker:1.0.8@aar' compile 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3' - compile('com.github.afollestad.material-dialogs:commons:0.8.5.6') { transitive = true } + compile('com.github.afollestad.material-dialogs:commons:0.8.5.7') { transitive = true } compile 'com.daimajia.numberprogressbar:library:1.2@aar' compile rootProject.ext.libRxJava compile rootProject.ext.libRxAndroid diff --git a/qpython/src/main/jni/Android.mk b/qpython/src/main/jni/Android.mk index 82c230c1..4605e24d 100644 --- a/qpython/src/main/jni/Android.mk +++ b/qpython/src/main/jni/Android.mk @@ -7,7 +7,6 @@ LOCAL_LDLIBS := \ -llog \ LOCAL_SRC_FILES := \ - Android.mk \ common.cpp \ fileCompat.cpp \ termExec.cpp \ diff --git a/termemulator/build.gradle b/termemulator/build.gradle index c9d03f6a..a327b54e 100644 --- a/termemulator/build.gradle +++ b/termemulator/build.gradle @@ -2,7 +2,6 @@ apply plugin: 'com.android.library' android { compileSdkVersion rootProject.ext.compileSdkVersion - buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { minSdkVersion rootProject.ext.minSdkVersion diff --git a/termexec/build.gradle b/termexec/build.gradle index 3a4e325b..6d9310c0 100644 --- a/termexec/build.gradle +++ b/termexec/build.gradle @@ -1,11 +1,3 @@ -buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'com.android.tools.build:gradle:3.0.1' - } -} apply plugin: 'com.android.library' repositories { @@ -14,7 +6,6 @@ repositories { android { compileSdkVersion rootProject.ext.compileSdkVersion - buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { minSdkVersion rootProject.ext.minSdkVersion @@ -22,7 +13,7 @@ android { versionCode 1 versionName "1.0" ndk { - abiFilters 'armeabi' + abiFilters 'armeabi-v7a' } } diff --git a/termexec/src/main/jni/process.cpp b/termexec/src/main/jni/process.cpp index 7f062ce8..1f918bad 100644 --- a/termexec/src/main/jni/process.cpp +++ b/termexec/src/main/jni/process.cpp @@ -27,8 +27,6 @@ #include #include -typedef unsigned short char16_t; - class String8 { public: String8() { @@ -41,7 +39,7 @@ class String8 { } } - void set(const char16_t *o, size_t numChars) { + void set(const jchar *o, size_t numChars) { if (mString) { free(mString); }