BusTO: Fix build.

This commit is contained in:
Boris Kraut 2014-11-22 16:32:00 +01:00
parent 6afe1e6b15
commit 702577a686
2 changed files with 59 additions and 9 deletions

View file

@ -26,17 +26,10 @@ Build:1.2,3
Build:1.3,4 Build:1.3,4
commit=20 commit=20
extlibs=android/android-support-v4.jar gradle=yes
srclibs=1:Support/v7/appcompat@android-5.0.0_r6 patch=bustorino-gradle.patch
target=android-21
prebuild=cp libs/android-support-v4.jar $$Support$$/libs/ && android update lib-project -t "android-21" -p $$Support$$ && echo -e 'java.source=1.7\njava.target=1.7' >> $$Support$$/ant.properties
Maintainer Notes:
Do we need a newer version of support-v4 etc. to build srclib-appcompat-v7?
.
Auto Update Mode:None Auto Update Mode:None
Update Check Mode:Tags Update Check Mode:Tags
Current Version:1.3 Current Version:1.3
Current Version Code:4 Current Version Code:4

View file

@ -0,0 +1,57 @@
=== added file 'build.gradle'
--- old/build.gradle 1970-01-01 00:00:00 +0000
+++ new/build.gradle 2014-11-22 14:59:50 +0000
@@ -0,0 +1,52 @@
+buildscript {
+ repositories {
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:0.12.2'
+ }
+}
+
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 21
+ buildToolsVersion '21.1.1'
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_7
+ targetCompatibility JavaVersion.VERSION_1_7
+ }
+
+ packagingOptions {
+ exclude 'META-INF/LICENSE.txt'
+ exclude 'META-INF/NOTICE.txt'
+ }
+
+ sourceSets {
+ main {
+ manifest.srcFile 'AndroidManifest.xml'
+ java.srcDirs = ['src']
+ resources.srcDirs = ['src']
+ aidl.srcDirs = ['src']
+ renderscript.srcDirs = ['src']
+ res.srcDirs = ['res']
+ assets.srcDirs = ['assets']
+ }
+ }
+
+ lintOptions {
+ abortOnError false
+ }
+
+ repositories {
+ mavenCentral()
+ mavenLocal()
+ }
+
+ dependencies {
+ compile 'com.android.support:support-v4:21.0.+'
+ compile 'com.android.support:appcompat-v7:21.0.+'
+ }
+}