Skip to content

Commit

Permalink
Update SDK and build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Nov 14, 2016
1 parent 62841ac commit 6662510
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ sudo: false
before_script:
- echo sdk.dir $ANDROID_HOME > local.properties
script:
- jdk_switcher use oraclejdk8
- export TERM=dumb
- export JAVA_OPTS="-XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m"
- ./gradlew build
android:
components:
- platform-tools
- tools
- build-tools-23.0.3
- android-23
- platform-tools
- build-tools-24.0.3
- android-24
- extra-android-m2repository
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
Expand Down
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,21 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.3'
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
}
}

allprojects {
apply plugin: 'idea'
ext.androidBuildVersionTools = "23.0.3"
ext.androidBuildVersionTools = "24.0.3"
}

def androidCompileSdk() { return 23 }
def androidCompileSdk() { return 24 }

def androidTargetSdk() { return 24 }

def androidMinSdk() { return 9 }

subprojects {
repositories {
Expand Down
2 changes: 2 additions & 0 deletions unifiednlp-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ android {

defaultConfig {
versionName getMyVersionName()
minSdkVersion androidMinSdk()
targetSdkVersion androidTargetSdk()
}

compileOptions {
Expand Down
2 changes: 0 additions & 2 deletions unifiednlp-api/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
<manifest package="org.microg.nlp.api"
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-sdk android:minSdkVersion="9"/>

<application>
<meta-data
android:name="org.microg.nlp.API_VERSION"
Expand Down
7 changes: 4 additions & 3 deletions unifiednlp-backend-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.android.tools.build:gradle:2.2.2'
}
}

Expand All @@ -30,6 +31,6 @@ dependencies {
}

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
compileSdkVersion 24
buildToolsVersion "24.0.3"
}
4 changes: 2 additions & 2 deletions unifiednlp-backend-sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-sdk
android:targetSdkVersion="19"
android:minSdkVersion="10" />
android:targetSdkVersion="24"
android:minSdkVersion="9" />
<application
android:allowBackup="false"
android:icon="@drawable/icon"
Expand Down

0 comments on commit 6662510

Please sign in to comment.