Get building with Gradle and Android Studio
This commit is contained in:
parent
2e6ed0ea4a
commit
c30b4e38e1
@ -1,4 +1,5 @@
|
|||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
apply plugin: 'com.neenbedankt.android-apt'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 22
|
compileSdkVersion 22
|
||||||
@ -17,10 +18,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main.java.srcDirs += ["../nineoldandroids/library/src"]
|
||||||
java.srcDirs += ["../drag-sort-listview/library/src"]
|
|
||||||
res.srcDirs += ["../drag-sort-listview/library/res"]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
@ -28,10 +26,29 @@ android {
|
|||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
packagingOptions {
|
||||||
|
exclude 'META-INF/LICENSE.txt'
|
||||||
|
exclude 'META-INF/license.txt'
|
||||||
|
exclude 'META-INF/NOTICE.txt'
|
||||||
|
exclude 'META-INF/notice.txt'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
apt {
|
||||||
|
arguments {
|
||||||
|
resourcePackageName "com.dougkeen.bart"
|
||||||
|
androidManifestFile variant.outputs[0].processResources.manifestFile
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
compile 'com.android.support:appcompat-v7:22.2.1'
|
compile project(":holoeverywhere-gradle")
|
||||||
compile 'com.android.support:support-v4:22.2.1'
|
compile project(":holoeverywhere-preferences-gradle")
|
||||||
|
compile project(":drag-sort-listview-gradle")
|
||||||
|
|
||||||
|
apt 'com.googlecode.androidannotations:androidannotations:2.7'
|
||||||
|
compile "com.googlecode.androidannotations:androidannotations-api:2.7"
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -5,6 +5,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:1.3.0'
|
classpath 'com.android.tools.build:gradle:1.3.0'
|
||||||
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.6'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
23
drag-sort-listview-gradle/build.gradle
Normal file
23
drag-sort-listview-gradle/build.gradle
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile 'com.android.support:support-v4:19.1.0'
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
compileSdkVersion 7
|
||||||
|
buildToolsVersion "22.0.1"
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
targetSdkVersion 7
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
main {
|
||||||
|
manifest.srcFile '../drag-sort-listview/library/AndroidManifest.xml'
|
||||||
|
java.srcDirs = ['../drag-sort-listview/library/src']
|
||||||
|
res.srcDirs = ['../drag-sort-listview/library/res']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
24
holoeverywhere-gradle/build.gradle
Normal file
24
holoeverywhere-gradle/build.gradle
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile 'com.android.support:support-v4:13.0.0'
|
||||||
|
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
compileSdkVersion 17
|
||||||
|
buildToolsVersion "22.0.1"
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
targetSdkVersion 17
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
main {
|
||||||
|
manifest.srcFile '../holoeverywhere/library/AndroidManifest.xml'
|
||||||
|
java.srcDirs = ['../holoeverywhere/library/src']
|
||||||
|
res.srcDirs = ['../holoeverywhere/library/res']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
22
holoeverywhere-preferences-gradle/build.gradle
Normal file
22
holoeverywhere-preferences-gradle/build.gradle
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile project(':holoeverywhere-gradle')
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
compileSdkVersion 17
|
||||||
|
buildToolsVersion '22.0.1'
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
targetSdkVersion 17
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
main {
|
||||||
|
manifest.srcFile '../holoeverywhere/addons/preferences/AndroidManifest.xml'
|
||||||
|
java.srcDirs = ['../holoeverywhere/addons/preferences/src']
|
||||||
|
res.srcDirs = ['../holoeverywhere/addons/preferences/res']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
19
nineoldandroids-gradle/build.gradle
Normal file
19
nineoldandroids-gradle/build.gradle
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
|
android {
|
||||||
|
compileSdkVersion 7
|
||||||
|
buildToolsVersion "22.0.1"
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
targetSdkVersion 7
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
main {
|
||||||
|
manifest.srcFile '../drag-sort-listview/library/AndroidManifest.xml'
|
||||||
|
java.srcDirs = ['../drag-sort-listview/library/src']
|
||||||
|
res.srcDirs = ['../drag-sort-listview/library/res']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1 +1,4 @@
|
|||||||
include ':app'
|
include ':app'
|
||||||
|
include ":holoeverywhere-gradle"
|
||||||
|
include ":holoeverywhere-preferences-gradle"
|
||||||
|
include ":drag-sort-listview-gradle"
|
||||||
|
Loading…
Reference in New Issue
Block a user