Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More accessible build process #173

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ build
gradle
.DS_Store
*.pyc
local.properties
16 changes: 4 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand All @@ -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}"
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@
org.gradle.jvmargs=-Xmx2048m
#android.useDeprecatedNdk=true
org.gradle.daemon=true
android.enableAapt2=false
12 changes: 0 additions & 12 deletions local.properties

This file was deleted.

1 change: 0 additions & 1 deletion qpypluginman/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand Down
6 changes: 4 additions & 2 deletions qpysdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand All @@ -11,7 +10,7 @@ android {
versionName "1.0"

ndk {
abiFilters 'armeabi'
abiFilters 'armeabi-v7a'
}
}
buildTypes {
Expand All @@ -26,6 +25,9 @@ android {
}

}
lintOptions {
abortOnError false
}
}

dependencies {
Expand Down
4 changes: 3 additions & 1 deletion qpysl4a/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand Down Expand Up @@ -35,6 +34,9 @@ android {
dataBinding {
enabled = true
}
lintOptions {
abortOnError false
}
}

dependencies {
Expand Down
13 changes: 7 additions & 6 deletions qpython/build.gradle
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -16,7 +14,7 @@ android {
versionName "1.0"

ndk {
abiFilters 'armeabi'
abiFilters 'armeabi-v7a'
}

multiDexEnabled true
Expand Down Expand Up @@ -48,6 +46,9 @@ android {
jniLibs.srcDirs = ['libs']
}
}
lintOptions {
abortOnError false
}
}


Expand All @@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion qpython/src/main/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ LOCAL_LDLIBS := \
-llog \

LOCAL_SRC_FILES := \
Android.mk \
common.cpp \
fileCompat.cpp \
termExec.cpp \
Expand Down
1 change: 0 additions & 1 deletion termemulator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand Down
11 changes: 1 addition & 10 deletions termexec/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
apply plugin: 'com.android.library'

repositories {
Expand All @@ -14,15 +6,14 @@ repositories {

android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
ndk {
abiFilters 'armeabi'
abiFilters 'armeabi-v7a'
}
}

Expand Down
4 changes: 1 addition & 3 deletions termexec/src/main/jni/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include <termios.h>
#include <signal.h>

typedef unsigned short char16_t;

class String8 {
public:
String8() {
Expand All @@ -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);
}
Expand Down